Error trying to consume a Web Service Axis

1

When I try to consume the functionality of a web service, the following exception occurs:

org.apache.axis2.AxisFault: Stream write error
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

I've researched the internet but found nothing.

    
asked by anonymous 27.02.2014 / 03:21

1 answer

1

Groping in the dark, I see the following possibilities:

  • A "hidden" error in the exception. Are there no other exception cells before they can give clues to the true cause of the error?

  • Incorrect libraries. Something common with axis is missing a dependency or having a classpath conflict, that is, an incorrect version of a library.

  • Server problem related to webservice implementation or configuration that returns some corrupted or invalid data.

  • Incompatible versions of stub and skeleton server ).

    >
  • Incompatible SOAP protocol summers.

  • Tips for debugging:

  • Use SoapUI to test the service. It works? Make sure the client is correct. Does not work? Arrange the server.

  • Create a separate client , that is, a simple and minimal project with a main method and only the required dependencies. This will help you isolate the problem.

  • In the latter case, create another fictitious webservice from scratch and see if the problem repeats itself. If you continue, post this code here for analysis, including dependencies used.

  • 27.02.2014 / 15:24