Are you using Axis2 1.2 ?. Please do try this scenario using latest Axis2 trunk.
Thank you, Saminda On 7/29/07, Navnit Jindal <[EMAIL PROTECTED]> wrote: > > > > ---------- 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; > } > -- Saminda Abeyruwan Software Engineer WSO2 Inc. - www.wso2.org
