This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Unexpected XML tag error when using Soap handler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Unexpected XML tag error when using Soap handler" Watch "Unexpected XML tag error when using Soap handler" New topic
Author

Unexpected XML tag error when using Soap handler

Jana Raj
Greenhorn

Joined: Nov 13, 2012
Posts: 1
Hi All,

I am new to web service world. Have created a web service client and want to handle the SOAP request and response XMLs meaning I have to write it in a Excel file for some automation purpose. I tried using SOAP handler with JAX WS but always am getting the below error. If I remove @@HandlerChain then the request works just fine , only thing is am unable to see the SOAP message.

com.sun.xml.internal.ws.streaming.XMLStreamReaderException: unexpected XML tag. expected:

I tested with SOAP UI separately which also works fine. I am sure that there is no issue with WSDL.

Even i tried the below system property and able to see the SOAP request/response but I cannot get a handle with the data.

System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");

Could you please help ?

Regards,
Jana

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unexpected XML tag error when using Soap handler
 
Similar Threads
Problem with the missing namespace
How to get SOAP response as XML in Client Struts or Servlet. ?
calling web service from another web service logging
JAX-WS MessageCreationException