1
votes

How should i parse SOAP response? Do i have to write LogicalHandler (like here http://www.java-tips.org/java-ee-tips/java-api-for-xml-web-services/writing-a-handler-in-jax-ws.html) to get the payload of response and then use SAX to parse it or are there any other handy methods in JAX to do this?

I only need data from some xml tags in response?

1

1 Answers

0
votes

If you use any JAX-WS implementation (CXF, Axis2, Metro) you shouldn't really have to parse responses. You can generate JAXB annotated classes from the WSDL of the web service you want to access and have marshallers to bind the XML payload to generated java beans.