I know there is big debate going over the net about REST against
SOAP. I would like to ask few questions on the top of that.
I am using JAX-WS (SOAP) for quiet few years and It took me no time to learn and it becomes difficult to fit REST on top of SOAP because I could not find a single reason that will convince me that REST is better than SOAP.
People say that REST is easier than SOAP. But according to me, I don't see any learning curve difference between the two.
Suppose I add 1 field in say 10 domain object which is not null, how will I notify my webservice clients if I am using REST. In SOAP generally we publish WSDL. But there is no WSDL here.
How to publish URIs to the client. Let me explain this point in detail.
Say I want to expose cancel order service in REST. My URI is
http://mydomain.com/orders/{orderId}. How will my client know that they have to use DELETE and not GET as I have only cancelOrder method and not getOrder method. Also how to publish these different URIs. In SOAP, we publish WSDL. I agree that client need to be recompiled. But publishing the changes to the client is easier in the SOAP. 4. Also people say REST is architecture style. What does this mean?
I am neither against REST nor favouring SOAP. But I am not getting convinced to the extent at which people favour REST. So I think I must be missing some good points of SOAP.
I hope this is not a duplicate question. I tried to search about these specific questions and didn't find answer.