Choosing between SOAP and REST services

The choice of adopting SOAP rather than REST depends on your application's requirements. SOAP web services are exposed using its own well-defined protocol and focus on exposing pieces of application logic as services. So if your requirement is to consume business services that are exposed using a well-defined and negotiated contract (between the service consumer and the service provider), SOAP web services are a perfect match.

On the other hand, if you need to access some server resources using stateless HTTP invocations and as little as the navigation bar of your browser, you should probably go with RESTful web services.

That being said, there may still be some scenarios that could fit both the options, and you are free to choose whichever web service suits your requirements the best. Since I have never been able to cure my adversity for SOAP-based Java clients (which are inherently more complex to code than other languages), I'd go for REST web services; however, that's just one man's opinion!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.204.186