Big Webservice
Big web service uses SOAP standard to communicate between client and server. SOAP is a XML based protocol running on top of HTTP. SOAP(Simple Object Access Protocol) is a communication protocol allow us to bypass firewall, main advantage is a platform independent and language independent.
SOAP Message is a XML document
Four Tags in SOAP are
By using online tool http://sudzc.com/ we can convert our WSDL to ObjectiveC for iOS Project. This will automatically create and handle SOAP request , SOAP response respectively based on the WSDL.
RESTful Webservice
REST stands for Representational State Transfer . RESTful web services are based on HTTP protocol and its methods are GET, POST,PUT and DELETE. REST is not a protocol and not a standard just a architecture style to communicate between client and server.
Big web service uses SOAP standard to communicate between client and server. SOAP is a XML based protocol running on top of HTTP. SOAP(Simple Object Access Protocol) is a communication protocol allow us to bypass firewall, main advantage is a platform independent and language independent.
SOAP Message is a XML document
Four Tags in SOAP are
- An Envelope (required) element that identifies the XML document as a SOAP message
- An optional Header element that contains header information
- A Body (required) element that contains call and response information
- An optional Fault element containing errors and status information
<?
xml
version
=
"1.0"
?>
<
soap:Header
>
</
soap:Header
>
<
soap:Body
>
<
soap:Fault
>
</
soap:Fault
>
</
soap:Body
>
</
soap:Envelope
>
RESTful Webservice
REST stands for Representational State Transfer . RESTful web services are based on HTTP protocol and its methods are GET, POST,PUT and DELETE. REST is not a protocol and not a standard just a architecture style to communicate between client and server.