Authenticator in Axis1.4

Francisco Nobôa <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CALAvcK8=Da4jsWVD0inU-yXBLzTifCbn+=_h1ypsuG5yk=eEDw@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.