Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 stub error when accessing a .NET web service

 
S Mak
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a stub from a WSDL file that was created by .NET. When I call a method, I get the following error:

org.apache.axis2.AxisFault: Object reference not set to an instance of an object.
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.qliktech.ws.executionservice._8.WebServiceHelper2Stub.HelloWorld(WebServiceHelper2Stub.java:786)
at com.ldes.qlikview.QlikViewAPI.executeMethod(QlikViewAPI.java:44)
at com.ldes.qlikview.QlikViewAPI.main(QlikViewAPI.java:101)

Any ideas why this is happening? What is interesting, is that I did the exact same steps in creating the stubs for another web service (3rd party). That worked flawlessly.

Thanks.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

How to Get Help with SOAP web services.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic