Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!