Reputation: 2828
What are benefits of Soap?Why it is widely used in Web Services?
Upvotes: 0
Views: 516
Reputation: 11316
The question could be equivalent to: What are the benefits of English over the English/Lating abecedary?
Soap is a standard to invoke remote methods with relatively low overhead (it comes from Simple Object Access Protocol), at least lower than other remote distributed logic systems such as plain old RPC, DCOM, Corba, etc. It uses XML as format, others used binary propietary formats, which has some advantages, such as reusing already existing XML-Processing code, and being easily transported over text-oriented-protocols such as HTTP.
The main benefit comes from being a widely used standard, which is there is a whole lot of support on many languages/platforms.
If you plan to use plain XML in a REST style service, you have to do it all yourself (data conversions, object instantiation and invokation, etc.). With SOAP you can concentrate on just writing the logic.
Upvotes: 1