A SOAP Example Using Java

Because SOAP relies on Web services, this Java example is going to be significantly more advanced than the Java examples we've already seen. You can use Java on the Internet in the form of Java servlets or JavaServer Pages, and it'll be easier to use servlets here.

SOAP in Java Versus .NET

Another major SOAP user is Microsoft's .NET initiative, of course. In fact, I wrote three complete SOAP examples using Visual Basic .NET for this chapter, but then I realized that the Java way of doing things provides us far greater insight into actually working with SOAP. In .NET, the details are handled behind the scenes (and there's a great deal of .NET-specific code); in Java, you do it yourself (including constructing and unpacking ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.