Help please! I've spent several hours trying to get Axis2 (1.3) client side HTTP (DIGEST) security working to no avail - I continue to get an exception: org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized.
I wasn't having this problem with Axis 1 (1.4). Here's the client code: Options options = core._getServiceClient().getOptions(); HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); java.util.List<String> authSchemes = new java.util.ArrayList<String>(); authSchemes.add(HttpTransportProperties.Authenticator.DIGEST); auth.setAuthSchemes(authSchemes); auth.setUsername(username); auth.setPassword(password); auth.setRealm("Power Xpert"); auth.setHost(endPointURL); auth.setPreemptiveAuthentication(true); auth.setAllowedRetry(true); options.setProperty(HTTPConstants.AUTHENTICATE, auth); options.setProperty(HTTPConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10); //options.setProperty(HTTPConstants.CHUNKED,false); //options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "true"); //options.setTo(new org.apache.axis2.addressing.EndpointReference(endPointURL)); I also have a simple axis2.xml - is it necessary? <?xml version="1.0" encoding="UTF-8"?> <axisconfig name="AxisJava2.0"> <transportSender name="http" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> <parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter> <parameter name="Transfer-Encoding" locked="false">chunked</parameter> </transportSender> <transportSender name="https" class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> <parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter> <parameter name="Transfer-Encoding" locked="false">chunked</parameter> </transportSender> </axisconfig> Also why do I get "org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required" if I don't specify HTTP 1.0? -- View this message in context: http://www.nabble.com/Minimal-Axis2-%281.3%29-client-HTTP-Authentication-setup-for-DIGEST---tp16467481p16467481.html Sent from the Axis - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]