Hi,
I have Tomcat and axis 1.2 RC installed. client has .Net web service
and they have sent us WSDL file, from this WSDL i have generated client
Stub. I am invoking their service.
i am getting NullPointerException.
Code to invoke :
String url = "https://san.go.ca/travel/book.asmx";
SampleStub objStub = new SampleStub;
objStub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, url);
if(objbooking!=null)
{
objStub.statusUpdate(objbooking);
}
And the code from where I got the NullPointerException ( code from
SampleStub that invoking )-
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {booking});
when invoking - call.invoke then it's return nulll. in _resp it stored null
.......so nullpointerexception given..
see the code-----
public boolean statusUpdate(com.kedintive.goptvel.repnse.Booking booking)
throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("http://sancom.com/dhk/poptravel/XXX/SampleUpdate/StatusUpdate");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,
Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,
Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new
javax.xml.namespace.QName("http://sancom.com/dhk/poptravel/order",
"StatusUpdate"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[]
{booking});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return ((java.lang.Boolean) _resp).booleanValue();
} catch (java.lang.Exception _exception) {
return ((java.lang.Boolean)
org.apache.axis.utils.JavaUtils.convert(_resp,
boolean.class)).booleanValue();
}
}
}
>From last return line from here the NullPointerException given....
what to do... i have checked the jar files................
please help............
santosh
--
View this message in context:
http://www.nabble.com/from-axis-1.2-RC-invoking-.net-web-service-getting-NullPinterException-tf4576102.html#a13062105
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]