Main Differences between SOAP and REST
Posted: Tue Sep 23, 2014 9:05 pm
Hey guys, one my journey through API's and web services i've encountered probably the most famous ones, SOAP and REST.
I've started out with SOAP, which PHP has a class already built to handle requests to wsdl links, and it all works smooth and great. But I've noticed that the web services with SOAP are not well maintained and REST is taking its place, so I was searching REST tutorials and guides and I found one that wasn't more than a file_get_contents/curl request that could handle POST, GET, PUT and DELETE requests and would send a HTTP Code and a body as a response.
My question is, is there all there is?
What are the key differences between the two, and is REST only a handler for the type of request and response?
I've started out with SOAP, which PHP has a class already built to handle requests to wsdl links, and it all works smooth and great. But I've noticed that the web services with SOAP are not well maintained and REST is taking its place, so I was searching REST tutorials and guides and I found one that wasn't more than a file_get_contents/curl request that could handle POST, GET, PUT and DELETE requests and would send a HTTP Code and a body as a response.
My question is, is there all there is?
What are the key differences between the two, and is REST only a handler for the type of request and response?