|
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Mobile Web Services Adding Reliability to Occasionally Connected Computing in Mobile Devices
Leveraging Web Services Reliable Messaging for persistence
By: Dr. Srinivas Padmanabhuni; Abhishek Malay Chatterjee; Terance Dias; Geo Philips Kuravakal; Varun Poddar
Apr. 17, 2006 03:30 PM
The user interface lets the user enter inputs into the system. The mobile client application will handle the events generated by the user's interaction. It will also make sure that the application works normally even if the device isn't connected (offline mode). This can require keeping the application state information and caching some content in the mobile device storage (depending on the scenario). The application will call the Web Service residing in a remote server using the SOAP serializer and WSRM in Figure 3. The SOAP serializer will create a SOAP request message as required by the service and send the message to the WSRM component for reliable communication. The response is passed from the WSRM to the SOAP deserializer to convert the SOAP response to the application-specific format. WSRM ensures that the reliability level (exactly once, at least once, etc.) of the communication during the Web Service invocation is attained. Depending on the requirements of the application the reliability level for the Web Service invocation can be set. In the case of a reliability level being set at 'at most once,' the application can switch over to offline mode if a response isn't available. It's also possible that the application may not have to have an offline execution mode. In that case the user is kept oblivious of the connection status of the device and the WSRM component will ensure that the Web service is called whenever the connection is available. Figure 4 shows the flow of the request process for placing an order. The first flowchart depicts the flow of placing an order with the server. Here two Web Services are used. The first one is the QueryInventory Web Service for checking the status of the inventory. This Web Service uses a "at most once" delivery assurance profile. So if the WSRM component tries to send it once and it fails, it informs the application. Depending on the whether the response has arrived from this Web Service, the application decides whether to use the inventory value or the quota. The second Web Service is for placing the order, i.e., the SubmitOrder Web Service. This Web Service uses the 'exactly once' delivery assurance profile. Once the application has created the request, the WSRM component tries to send it; if it fails, it tries twice more and then tries again after some specified period of time.
Implementation Details The WSRM component of the client application installed on these mobile devices creates the WSRM-compliant messages and stores them in files. The application resends messages in case of failure. The WSRM component takes care of the 'once and only once' and 'at most once' delivery assurance depending on the configuration file associated with each Web Service.
Conclusions and Future Work Our framework stores data in files, which is not optimal in enterprise applications. Future work can include more optimal ways of storing data on the client side. References
Reader Feedback: Page 1 of 1
Your Feedback
Latest Cloud Developer Stories
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week
Breaking Cloud Computing News
|
||||||||||||||||||||||||||||||||||||||||||||||||||||