You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Francisco NobĂ´a <fn...@gmail.com> on 2013/03/11 08:02:52 UTC
Authenticator in Axis1.4
Hello everybody,
I am facing some Authentication problem using the Axis1.4, I have this
code for Axis2
// Authentication
Options opt = stub._getServiceClient().getOptions();
Authenticator authenticator = new Authenticator();
List<String> auth = new ArrayList<String>();
auth.add(Authenticator.DIGEST);
authenticator.setAuthSchemes(auth);
authenticator.setUsername("username");
authenticator.setPassword("password");
authenticator.setDomain("DOMAIN");
authenticator.setHost("localhost");
opt.setProperty(HTTPConstants.AUTHENTICATE, authenticator);
opt.setSoapVersionURI(org.apache.axiom.soap.SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI);
// SOAP 1.1 required
Using some imports:
import org.apache.axiom.soap.SOAPFaultDetail;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.axis2.transport.http.HttpTransportProperties.Authenticator;
That is not available in the Axis1.4.
Do you know how can I handle this type of authentication in Axis1.4,
considering that I do not have the
transport.http.HttpTransportProperties.Authenticator, available in
Axis1.4?
Thanks in Advance,
Francisco
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org