Server did not recognize the value of HTTP Header SOAPAction -
07-23-2007
, 09:00 AM
Hi,
I try with the following Java code to call a .NET Webservice method:
String endpoint = lblURL.getText();
Service service = new Service();
Call call = null;
try {
call = (Call)service.createCall();
} catch (ServiceException e) {
e.printStackTrace();
}
try {
call.setTargetEndpointAddress( new URL(endpoint));
} catch (MalformedURLException e) {
e.printStackTrace(); }
call.setOperationName("Dial");
call.addParameter("Number",
org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);
try {
String ret = (String)call.invoke(new Object[] {"173"});
ret = ret;
} catch (RemoteException e) {
e.printStackTrace();
}
By the invoke-method-call I receive a exception with the errordescription:
"Server did not recognize the value of HTTP Header SOAPAction"
What I do wrong?
Christian |