
88 Enterprise Business Portals II with IBM Tivoli Access Manager
In the next section, we introduce the details of the Java code for parsing the
variables. We named this code MsgHandler.java.
The Java code for parsing SOAP data
This Java bean parses the SOAP data and returns the result as a vector object.
The whole source code of the MsgHandler.java bean is shown in Example 3-6.
Some of the details are explained after the sample code.
Example 3-6 MsgHandler.java
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
import java.io.StringReader.*;
import java.util.Vector;
public class MsgHandler extends DefaultHa ...