hi...
i'm trying to use axis2 to call a dotnet web service..
public class Service : System.Web.Services.WebService
{
public Service () {}
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
the java code is this:
public static String execute(final String endPoint,final String
serviceNS,final String method,Object[] prms) throws AxisFault{
RPCServiceClient client=new RPCServiceClient();
client.getOptions().setAction(serviceNS+method);
client.setTargetEPR(new EndpointReference(endPoint));
return client.invokeBlocking(new QName(serviceNS,method),
prms).toString();
}
the soap request looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<HelloWorld xmlns="http://tempuri.org/" />
</soapenv:Body>
</soapenv:Envelope>
http headers:
<HTTPHeaders>
<content-type>text/xml; charset=UTF-8</content-type>
<soapaction>"http://tempuri.org/HelloWorld"</soapaction>
<user-agent>Axis2</user-agent>
<host>localhost</host>
<transfer-encoding>chunked</transfer-encoding>
</HTTPHeaders>
but i get an AxisFault: The input stream for an incoming message is
null.
i've placed a break point on the server, and i see the service is not
being activated at all. what am i missing?