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 ...