File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Plain XML Vs SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Plain XML Vs SOAP" Watch "Plain XML Vs SOAP" New topic


James Gordon
Ranch Hand

Joined: Aug 09, 2002
Posts: 106

Why not we just exchange plain XML over HTTP?
It's going to be platform independent as well.

As such, can someone please enlighthen me as to
why we use SOAP instead of just plain XML.

Thanks in advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41186
That's a fair question. The answer is that doing without SOAP is in fact gaining momentum, and that approach is known as "REST". The links to many introductory articles on that subject.

Ping & DNS - my free Android networking tools app
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1169

SOAP vs. POX vs. REST says -

So if you want security, reliability etc., you need SOAP (or you have to invent your own version of it and convince others to use it too .. good luck). Obviously not every scenario needs all that muscle ...


POX/HTTP means exchanging plain old XML documents over HTTP. RESTful POX, i.e. using XML in a RESTful manner, would mean POX is a subset of REST. Many, if not most POX applications don't care about REST very much, though � they'd thus be part of a distinct set of applications.


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1169

I work with an enterprise Search product called Autonomy and content management systems for the enterprise in which XML over HTTP is the standard practice.

It is sorta covered in the JavaRanch Style Guide.
subject: Plain XML Vs SOAP
Similar Threads
Conversion of message to SOAP in web service
quote from J.Gosling
only 4 questions about WS?
Regarding interface