This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag " Watch "org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag " New topic
Author

org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 229
Hi All,
I'm trying to create some web services using Axis2 version:1.5
I have created a client that attempts to make a call to my webservice
using the axis2 generated stub (i.e. MyServiceStub.java).

MyServiceStub.java


I debuged the stub and found that the soap package (i.e. env) was correct (i.e. xml well-formed) as shown below:-


The Stub _operationClient.execute(true) passes this request to a filter.
The filter extracts the soap package out of request as follows:-


The content of the soap package at (i.e. soapPackage ) was found to be not well-formed.


On passing this onto m y webservice I get the following error:-
org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag

Note that:-


I have spent serveral days trying to get my head arround this one.

Can anybody help

Mat


William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5


That only reads a single line. Why do you expect the entire SOAP package to be in a single line?


Try SoapUI to TCP-MON to capture the exact text of request and response.

Bill

Java Resources at www.wbrogden.com
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 229
Hi William,
thanks for the response , you were correct

On getting a WS request to one of my operations, I have noticed within the
web service skeleton the in parameter is of type java.util.xsd.Set.

I need to be able to extract the data out of this and pass it to an
internal spring service (i.e. one of its methods) that takes a java.util.Set.

How to I get the content of java.util.xsd.Set into a java.util.Set.

Sorry for asking

Mat
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 229
Hi William,
Sorry for asking prev question, just noticed that I can use the java.util.xsd.impl.SetImpl object to obtain my objects.

Thanks for all your help.

Mat
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.axis2.AxisFault: Unexpected EOF; was expecting a close tag
 
Similar Threads
how to return user defined faultcode
Adding payload to SOAP body
Axis2, client handler not getting called
axis2: set SC_BAD_REQUEST with AxisFault
axis2/webshpere response != axis2/glassfish response........ why?