You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Navnit Jindal <na...@gmail.com> on 2007/07/29 18:01:25 UTC

Fwd: org.apache.axis2.AxisFault: problem accessing the parser. Parser already accessed!

---------- Forwarded message ----------
From: Navnit Jindal <na...@gmail.com>
Date: Jul 29, 2007 11:57 AM
Subject: org.apache.axis2.AxisFault: problem accessing the parser. Parser
already accessed!
To: paul@wso2.com, jeffling@google.com, saminda@opensource.lk,
axis-dev@ws.apache.org

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;
    }