[
https://issues.apache.org/jira/browse/AXIS2-2809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas resolved AXIS2-2809.
-------------------------------------
Resolution: Won't Fix
> redirection pb with Axis2
> -------------------------
>
> Key: AXIS2-2809
> URL: https://issues.apache.org/jira/browse/AXIS2-2809
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: transports
> Affects Versions: 1.2
> Reporter: Stephane Roy
>
> I have a web service deployed in Axis2.1.2/Tomcat5.5 at
> 'http://localhost:8080/axis2/services/myService'
> I have set the endpoint to 'http://localhost:8080/axis2/services/myService'
> in the client and everything's working fine.
> Now I need to implement a redirection mechanism. For this, I first downloaded
> and installed a free URL rewrite module (http://tuckey.org/urlrewrite/),
> similar to mod_rewrite of Apache.
> In this module, I configured a redirection rule with something like this:
> from=http://localhost:8080/axis2/services/myNewService
> to=http://localhost:8080/axis2/services/myService
> I also changed the endpoint used by the client to
> 'http://localhost:8080/axis2/services/myNewService'.
> Note that the web service is still deployed at
> 'http://localhost:8080/axis2/services/myService'.
> I started the updated client and I received the following error when the
> client calls an operation of the web service:
> Jun 14, 2007 5:07:27 PM org.apache.commons.httpclient.HttpMethodDirector
> isRedirectNeeded
> INFO: Redirect requested but followRedirects is disabled
> org.apache.axis2.AxisFault: Transport error: 302 Error: Moved Temporarily
> 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)
> at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
> at
> com.alcatel.lucent.awspt.sws.PhonebookServiceStub.addEntry(PhonebookServiceStub.java:173)
> at
> com.alcatel.lucent.awspt.sws.SwsClient.addEntryDeckard(SwsClient.java:109)
> at com.alcatel.lucent.awspt.sws.SwsClient.<init>(SwsClient.java:67)
> at com.alcatel.lucent.awspt.sws.SwsClient.main(SwsClient.java:194)
> Caused by: org.apache.axis2.AxisFault: Transport error: 302 Error: Moved
> Temporarily
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
> ... 7 more
> Caused by: org.apache.axis2.AxisFault: Transport error: 302 Error: Moved
> Temporarily
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
> at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
> ... 8 more
> Caused by: org.apache.axis2.AxisFault: Transport error: 302 Error: Moved
> Temporarily
> at
> org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:320)
> at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:177)
> ... 10 more
> I made the same test with TCPmon. The incoming request looks like this:
> ----------------------------------------------------------------------
> POST /axis2/services/myNewService HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "myOperation"
> User-Agent: Axis2
> Host: localhost:9090
> Transfer-Encoding: chunked
> 2ae
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Header>
> <wsa:To>http://localhost:9090/axis2/services/myNewService</wsa:To>
>
> <wsa:MessageID>urn:uuid:6774F9EFDB67A1F15A1181830925356</wsa:MessageID>
> <wsa:Action>myOperation</wsa:Action>
> </soapenv:Header>
> <soapenv:Body>
> ...
> </soapenv:Body>
> </soapenv:Envelope>0
> ----------------------------------------------------------------------
> ... and the response looks like this
> ----------------------------------------------------------------------
> HTTP/1.1 302 Moved Temporarily
> Server: Apache-Coyote/1.1
> Location: http://localhost:9090/axis2/services/myService
> Content-Length: 0
> Date: Thu, 14 Jun 2007 14:22:05 GMT
> ----------------------------------------------------------------------
> I searched the mailing list archives for this kind of error but I didn't find
> any solution for this.
> I submitted my problem on the mailing list
> (http://marc.info/?l=axis-user&m=118183443102268&w=2) and was asked to log a
> JIRA.
> Thanks in advance.
> Stephane Roy
> Alcatel-Lucent
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]