Monday, February 6, 2012

Web service Consumption in Android

   It’s about time that we get some real data in our application instead of a boring, static set of data. There are two different types of web services: SOAP (Simple* Object Access Protocol) and REST.


Web Service Types

SOAP services typically have a defined contract associated with all data structures, service methods, and more. This contract is written in WSDL (Web Services Description Language) and published for consumers who use the web service. Also, these types of services heavily use XML for data requests and responses.

REST services are more ad-hoc than SOAP services since they don’t use WSDL and they rely on pre-established standards (ex. XML and HTTP). These types of services are free to return data in any format and communication between them is more “lightweight”.


No comments:

Post a Comment