Java Reference
In-Depth Information
// 5. Process the response message
SOAPBody respBody = response.getSOAPBody(); Iterator it =
respBody.getChildElements();
SOAPBodyElement
el
=
(SOAPBodyElement)it.next();
LOG
.info(
"resp="
+el.getNodeName());
it = el.getChildElements();
SOAPElement ret = (SOAPElement) it.next();
LOG
.info(String.
format
(
"%s=%s"
,ret.getNodeName(),ret.getTextContent()));
}
catch
(UnsupportedOperationException e) {
LOG
.severe(e.getMessage());
}
catch
(SOAPException e) {
LOG
.severe(e.getMessage());
}
catch
(MalformedURLException e) {
LOG
.severe(e.getMessage());
}
}
}