Hi,
i am trying to invoke a webservice which is developed .NET with Dynamic Invocation Interface Technique using AXIS 1.4. But i am unable to invoke. I am getting the following Exception.
Error:
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Service wsdl url as follows.
http://www.webservicex.net/SendSMS.asmx?WSDL and my invocation client code as follows
String endpoint = "http://www.webservicex.net/SendSMS.asmx";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://www.webserviceX.NET", "SendSMSToIndia"));
Object ret = (Object) call.invoke(new Object[] {"98000000", "test@rediffmail.com","Igone this Message"} );
System.out.println("Hello");
System.out.println("Request sended successfully, got reaponse as '" + ret + "'");
System.out.println("Number of elements = " + ret);
}
Any suggestion appreciated.