Hello,
 
I wrote a small SOAP client to call a .NET web service 'getServerTime' @ http://www.nanonull.com/TimeService/TimeService.asmx. It works great. On the other hand, when I call another service 'getCityTime' that needs a parameter, I get an error message saying:
Server was unable to process request. --> Object reference not set to an instance of an object.
 
Can't figure out what is the problem??
 
Here is my code:
 
 =========
      Service service = new Service();
      Call call = (Call) service.createCall();
 
      call.setTargetEndpointAddress(new java.net.URL(endpoint));
      call.setSOAPActionURI("http://www.Nanonull.com/TimeService/getCityTime");
 
      call.setOperationName("getCityTime");
 
      call.addParameter("city", org.apache.axis.Constants.XSD_STRING, javax.xml.rpc.ParameterMode.IN);
      call.setReturnType(org.apache.axis.Constants.XSD_STRING);
 
      String ret = (String) call.invoke(new Object[] {"LONDON"});
=========
 
Thanks!
Fady

Reply via email to