Hi,

I have an Axis2 service which include the functionality that
a SOAP Client can send a remote url and a path to a local stored file
and then the Service reads the request and copy the file to the remote
location
using HTTP PUT protocol using Jakarta Commons HttpClient API.

At first I got the following error in the class that do the HTTP-PUT
transfer:

*May 9, 2008 4:33:05 PM org.apache.commons.httpclient.HttpMethodDirector
isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
HTTP-PUT transfer status: HTTP/1.1 301 Moved Permanently*

I fixed it by setting "httpPutmethod.setFollowRedirects(true)" in my code
but now it seems
Axis2 is reporting the same problem as I am getting this error message:

*"org.apache.axis2.AxisFault: Entity enclosing requests cannot be redirected
without user intervention"

*Why is this happening?
Is is possible to execute a HTTP-PUT request inside the code of an Axis2
service?
How can I set in my Service  that redirections are enabled?

I have done too another method that performs an HTTP-GET request and it
works fine!

Thanks in advance!

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Para atras, solo para tomar impulso!

http://moleyharey.blogspot.com/

Reply via email to