Lawrence Avery
asked on
ASMX or WCF service using JSON or SOAP
Why do call ASMX or WCF services SOAP services when they be called by AJAX returning JSON?
Isn't that kind of confusing?
Isn't that kind of confusing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you questioning why should anyone use SOAP when we can do the same with a REST service and return JSON?
SOAP and REST services serve in-fact the same purpose but depending on how you use them, you might want to use either of them or actually both.
You can even configure a WCF Service with different endpoits in order to accept both SOAP and REST calls.
If I was to state one main difference between them, I would certainly mention the schema.
While SOAP enforces a schema (WSDL), REST is a much looser protocol. This schema brings as many advantages as restrictions, so you really need to weight the pros and cons.
I feel some frustration in your question. What's exactly your problem? :)