feda alshahwan wrote:What is better for implementing mobile web services : SOAP or REST
In most cases SOAP is not required because its flexibity, extensibility (and therefore associated complexity) isn't required for the mobile to service interaction. And in any case the web service can always act a proxy for the mobile client, taking the burden of the necessary conversions.
RESTful web services can be accessed with simple HTTP interactions and aren't restricted to XML content either. So when appropriate, your mobile client can set the HTTP-request Accept header to
text/plain and receive, for example, a comma separated list of values, provided of course that the resource supports the
text/plain media type with that representation format.
The point is that a resource can be implemented to support any number of
IANA MIME Media Types (simultaneously).
Java-based RESTful web service frameworks:
Jersey (JAX-RS (
JSR-311)),
Restlet.
It seems however that mobile clients prefer
web servers that are capable of flushing the HTTP reponse headers separately from the HTTP response body. That gives the client environment a chance to properly prepare for the receipt of potentially large amounts of data.