Tuesday, August 23, 2011

Microsoft Webservices Error

 


Getting Error When trying to consume svc webservice from .net in Java


org.apache.axis2.AxisFault: The input stream for an incoming message is null.
    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)
    at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
    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)
    at org.tempuri.ServiceStub.getData(ServiceStub.java:461)
    at com.MainClass.main(MainClass.java:22)

4 comments:

  1. Get the stub and set this property

    serviceStub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, "false");

    Reply if it doesn't work

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  2. I'm having exactly the same problem and Chunked=false does not help me either. Please advise...

    ReplyDelete