Actually i have tried to find out the difference between
SOAP and REST. I understood upto some extent, but was not able to understand/visualise the differences in real time scenarios.
I have few question based on things i read:
1)
book says Use soap when architecture must address complex non functional requirement.(eg transaction,security etc)
My question on above Does that mean SOAP is used when we need more security? For eg banking trasnactions and all? Also what about security in REST.Are REST less secure?
2)
an article saysRest services provide more scalablity and are much faster.The reason what they say is that with SOAP messages,Intermediate Servers will use SOAP's header's body,and each intermediate server will manipulate SOAP message, update soap header etc, therefore SOAP are slower than REST
My question on aboveWhy dont this happen for REST services,i mean why intermediate servers dont manipulate REST message
3) Finally,
if REST is always better than SOAP, will we ever need SOAP in future projects?