Hi Folks!
I have some problems with a webservice that uses a relative redirect.
This is what is happening:
1. I send a request to http://mydomain.com/webservice.asmx
2. The webservice answers with a HTTP 302 and sets the location to
/(12323123312)/webservice.asmx
3. CXF autmatically redirects and send a second request to
http://mydomain.com/webservice.asmx/(12323123312)/webservice.asmx
Instead of replacing the root of my path it simply adds the relative
redirection at the end of the original request.
This code I use to enable autoredirection:
<snippet>
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(MyWebServiceSoap.class);
factory.setAddress("http://mydomain.com/webservice.asmx");
service = (GensysWebServiceSoap) factory.create();
Client client = ClientProxy.getClient(service);
((HTTPConduit) (client.getConduit())).getClient().setAutoRedirect(true);
client.getBus().getProperties().put("http.redirect.relative.uri", true);
</snippet>
Does anyone knows how to fix this?
Thanks in advance!!!
Greetz,
Marco Mans