---------- Forwarded message ----------
From: Navnit Jindal <[EMAIL PROTECTED]>
Date: Jul 29, 2007 11:57 AM
Subject: org.apache.axis2.AxisFault: problem accessing the parser. Parser
already accessed!
To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[email protected]

Appreciate your help with this issue. Is there a revised code that can be
used?

org.apache.axis2.AxisFault: problem accessing the parser. Parser already
accessed!
 at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
CommonsHTTPTransportSender.java:221)
 at org.apache.axis2.engine.AxisEngine.send (AxisEngine.java:452)
 at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:330)

=======================================================================
Code I am using to set the Authentication using Axis2

options.setProperty(HTTPConstants.AUTHENTICATE, getAuthenticator(username,
password));


    private HttpTransportProperties.Authenticator getAuthenticator(String
_username, String _password)
    {
        HttpTransportProperties.Authenticator authenticator = new
HttpTransportProperties.Authenticator ();

        //HttpTransportProperties. basicAuthentication

        authenticator.setUsername(_username);
        authenticator.setPassword(_password);
        authenticator.setPreemptiveAuthentication(true);
        authenticator.setAllowedRetry(true);

        return authenticator;
    }

Reply via email to