At the moment, Axis2 does not support redirects AFAIK.

Azeez

On Jan 24, 2008 4:26 AM, <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> i'm starting my generated client (wsdl2java) to access a WebService over
> https with Basic Auth.
> I'm using axis2 1.3 with Tomcat 5.5. I also add the default axis2.xml to
> my client config.
> At runtime i set the following options to the client:
>
>        HttpTransportProperties.Authenticator authenticator
>            = *new* HttpTransportProperties.Authenticator();
>
>        List<String> schemas = *new* ArrayList<String>();
>
>        schemas.add(Authenticator./BASIC/);
>
>        authenticator.setAuthSchemes(schemas);
>
>        authenticator.setUsername(userID);
>
>        authenticator.setPassword(password);
>
>        authenticator.setPreemptiveAuthentication(*true*);
>
>        options.setProperty(HTTPConstants./AUTHENTICATE/, authenticator);
>
> But i get the following exception:
>
> Caused by: org.apache.axis2.AxisFault: Transport error: 302 Error:
> Object Moved
>
>      at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java
> :298)
>
>      at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java
> :192)
>
>      at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java
> :77)
>
>      at
>
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons
> (CommonsHTTPTransportSender.java:327)
>
>      at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
> CommonsHTTPTransportSender.java:206)
>
>      at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
>
>      at
> org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:374)
>
>      at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)
>
>      at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>
> So whats wrong? Do Axis2 1.3 handle redirects?
> Thanks!
>
> Regards Mirwais
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Afkham Azeez

http://azeez78.blogspot.com
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Reply via email to