[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 768
  • Last Modified:

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

0
pzaprianov
Asked:
pzaprianov
1 Solution
 
ragerinoCommented:
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.
0
 
pzaprianovAuthor Commented:
I downgrade Axis2 version to 1.2 and it works, it seems to be an error with axis2 1.3.

Thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now