Follow up question to this post:
For now I have a slight idea about the differences between SOAP and RESTful Services.
My question is when I should use SOAP, and when I should use RESTful; which one is "better" when it comes to performance/speed or request handling?
I'm implementing for the first time in RESTful(java) and I want know more about it; I've dealt with SOAP before.
SOAP
Simple Object Access Protocol (SOAP) standard an XML language defining a message architecture and message formats, is used by Web services it contain a description of the operations. WSDL is an XML-based language for describing Web services and how to access them. will run on SMTP,HTTP,FTP etc. Requires middleware support, well defined mechanisam to define services like WSDL+XSD, WS-Policy SOAP will return XML based data
REST Representational State Transfer (RESTful) web services. they are second generation Web Services. RESTful web services, communicate via HTTP than SOAP-based services and do not require XML messages or WSDL service-API definitions. for REST no middleware is required only HTTP support is needed.WADL Standard, REST can return XML, plain text, JSON, HTML etc
Soap Web-services :
RestWeb-Services :
Freitag, P. (2005). "REST vs SOAP Web Services". Retrieved from http://www.petefreitag.com/item/431.cfm on June 13, 2010
REST is easier to use for the most part and is more flexible.Unlike SOAP, REST doesn’t have to use XML to provide the response. We can find REST-based Web services that output the data in Command Separated Value (CSV), JavaScript Object Notation (JSON) and Really Simple Syndication (RSS). We can obtain the output we need in a form that’s easy to parse within the language we need for our application.REST is more efficient(use smaller message formats),fast and closer to other Web technologies in design philosophy
REST is an architecture. REST will give human-readable results. REST is stateless. REST services are easily cacheable.
SOAP is a protocol. It can run on top of JMS, FTP, Http.