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 JAX-WS MessageCreationException 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 "JAX-WS MessageCreationException" Watch "JAX-WS MessageCreationException" New topic
Author

JAX-WS MessageCreationException

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
I have create a simple web service which return a response but i getting a MessageCreationException due to unexpected EOF for .

This is a simple JAX-WS web service.
I got four methods inside this webservice only method with return response has this problem.

I had generate the web service using wsgen.

com.sun.xmlns.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element

cause by com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element

cause by com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element

Any idea how to solve this. What is the root cause of this problem? I guess the create soap message failed due to did not add the end tag. Why is this happen?

I don't know how to debug further from here.

Please help.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAX-WS MessageCreationException
 
Similar Threads
issue creating an element
Extract SOAP object from HttpServletRequest
Unable to return a two dimensional object array.
org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag
JAX-WS: when input soap validation fails