Hello guys,
I created a Axis2 webservice client which
calls a webservice deployed on a Axis1 server.
When I run the client I get this error message.
04.02.2007 16:21:41 org.apache.commons.httpclient.auth.AuthChallengeProcessor
selectAuthScheme
INFO: basic authentication scheme selected
org.apache.axis2.AxisFault: HTTP Transport error : '501' - 'Method 0
POST is not defined in RFC 2068 and is not supported by the Servlet API'
Is this error caused due to an incompatibility between Axis 2's and
Axis 1's sub components? Or did I simply miss something?
The deployed webservice uses basic HTTP authentication.
I am using Axis2 1.1 and Axis1 1.4. This is the client code
which causes the error.
try {
String endpoint = "http://localhost:/jboss-net/services/billing";
RPCServiceClient client = new RPCServiceClient();
client.setTargetEPR(new EndpointReference(endpoint));
Options options = client.getOptions();
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
auth.setUsername("admin");
auth.setPassword("jbilling");
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
client.setOptions(options);
QName operation = new QName("http://localhost/jboss-net/services/billing",
"getUserWS");
Object[] arguments = new Object[] { new Integer(1) };
Class[] returnTypes = { UserWS.class };
Object[] result =
client.invokeBlocking(operation, arguments, returnTypes);
UserWS user = (UserWS) result[0];
} catch (Exception e) {
e.printStackTrace();
}
The code is correct in general. I tested it with a different endpoint
executing the getVersion method of the Version sample webservice of
Axis 2.
Can someone help?
Cheers.
--
Martin Hoffmann
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]