We help IT Professionals succeed at work.

Axis2 Error While consuming WebService on Eclipse

Hi,

I Create a Web Service Client with Eclipse/WTP/Axis2 wizard, and i generate the stub, but when I execute the WebService I obtain the following error:

org.apache.axis2.AxisFault: Error invoking service: Could not read XML stream.. Nested exception is javax.xml.stream.XMLStreamException: ParseError at [row,col]:[0,0]
Message: Unexpected event type 10
      at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
      at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
      at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
      at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
      at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
      at com.google.www.api.afa.BroadcasterServiceCcrV1Stub.getSpotDetailReport(BroadcasterServiceCcrV1Stub.java:1126)
      at com.google.www.api.afa.Test.main(Test.java:54)

Any idea?

Thanks

Comment
Watch Question

Commented:
i had similar expiriences with corrupted files that looked o.k. in the editor. try to copy the content in a text-editor (notepad). delete the file and create a new one. then paste back the content from the editor.

seems that ecllipse produces sometimes corrupt files.

Author

Commented:
I downgrade Axis2 version to 1.2 and it works, it seems to be an error with axis2 1.3.

Thanks

Explore More ContentExplore courses, solutions, and other research materials related to this topic.