Handle soap response at servlet
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns1:getPr开发者_C百科ice xmlns:ns1="urn:xmethods-BNPriceCheck">
<isbn>0672383839</isbn>
</ns1:getPrice>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How do I handle this data on the servlet side?
I'd suggest using a web service framework for handling SOAP. Like JAX-WS implementations (CXF, Metro).
Apart from that, I guess you can use anything that's lower level, like SAAJ or even DOM/SAX, but it's not advisable.
精彩评论