Java Reference
In-Depth Information
If you have worked with DOM before, this should be very straightforward. You are basically
indicating to JAX-WS that you want a view of the message as
SOAPMessage
type, but then
when you invoke the
extractContentAsDocument
method, JAX-WS will create a new DOM
node, remove the
SOAPElement
part, and add the SOAP body as the document element to the
new DOM node.
You can then run XPath queries, use an iterator on the
NodeList
, or whatever you like.