September 2002
Intermediate to advanced
608 pages
14h 20m
English
After our JaxmClient requests either conference or division standings, and the JaxmStandingsServlet has built a reply using either SAX or DOM, the reply is received back in the JaxmClient. The JaxmClient will now use yet a third XML API, JDOM, to parse the result. JDOM, as the name implies, has far more in common with DOM than with SAX. We pick up the code in Listing 14.8 at the point immediately following our message passing, to which we receive a SOAPMessage called reply in return.
//Optional; allow visual inspection
try {
reply.writeTo(System.out);
System.out.println();
System.out.flush();
} catch (IOException e) {
e.printStackTrace();
}
SOAPPart soap = reply.getSOAPPart();
StreamSource ... |
Read now
Unlock full access