axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mirwais Turjalei" <turja...@gmx.de>
Subject Re: org.apache.axis2.AxisFault: Transport error: 302 Error: Object Moved
Date Thu, 24 Jan 2008 09:46:30 GMT
Hi Martin,

thanks for reply. But in my axis2.xml the HTTP-Protocol is already set to HTTP/1.1:

<transportSender name="http"                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>

<transportSender name="https"                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>

Same behaviour. I also tried to set chunked to false.

Regards Mirwais


-------- Original-Nachricht --------
> Datum: Wed, 23 Jan 2008 18:28:09 -0500
> Von: "Martin Gainty" <mgainty@hotmail.com>
> An: turjalei@gmx.de
> Betreff: Re: org.apache.axis2.AxisFault: Transport error: 302 Error: Object Moved

> On all your transports defined in axis2.xml change your protocol to HTTP
> 1.1
> e.g.
>     <transportSender name="http"
> 
> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
>         <parameter name="PROTOCOL">HTTP/1.1</parameter>
> then you should see 303 See Other (since HTTP/1.1)
> The response to the request can be found under another URI using a GET
> method.
> or
> 307 Temporary Redirect (since HTTP/1.1)
> In this occasion, the request should be repeated with another URI, but
> future requests can still be directed to the original URI. In contrast to
> 303, the request method should not be changed when reissuing the original
> request. For instance, a POST request must be repeated using another POST
> request.
> 
> Viel Gluck
> Martin-
> ----- Original Message -----
> From: <turjalei@gmx.de>
> To: <axis-user@ws.apache.org>
> Sent: Wednesday, January 23, 2008 5:56 PM
> Subject: org.apache.axis2.AxisFault: Transport error: 302 Error: Object
> Moved
> 
> 
> > 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:29
> 8)
> >
> >       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.writeMessageWithC
> ommons(CommonsHTTPTransportSender.java:327)
> >
> >       at
> >
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTT
> PTransportSender.java:206)
> >
> >       at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
> >
> >       at
> >
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
> n.java:374)
> >
> >       at
> >
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
> peration.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: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >

-- 
Dipl.-Inf. Mirwais Turjalei
Rieckhoffstr 14
21073 Hamburg
- Germany -
Tel.: +49 (0)40 24887533
Mobil: +49 (0)179 2273166
E-Mail: turjalei@gmx.de


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message