micahhoover
micahhoover

Reputation: 2160

When does ReST become SOAP?

Let's say I have a server somewhere that takes HTTP gets and returns JSON responses.

Pretty clearly a ReST service, right?

Now let's say it returns XML. Still ReSTful, right?

Okay, now let's say it's an HTTP POST with a payload of XML that returns XML.

And let's also say there's a WSDL in there that defines the service.

And then let's say the XML isn't really messages (which I guess both SOAP and ReST facilitate) but more like passing objects/ontologies.

And then let's say human beings never go to that URL to look at anything, it's only used by apps, browsers, cyborgs, etc.

At what point does my ReSTful service become a SOAP service?

Is there a common place to draw the line, or is it more like a general feel kind of thing?

Are there more better factors that can determine this than the criteria I mentioned?

Upvotes: 0

Views: 56

Answers (1)

user1907906
user1907906

Reputation:

Presence of a WSDL file clearly is a mark of SOAP. All the other points you mention are not against the REST principles.

Upvotes: 1

Related Questions