Webservice Follow Redirect False - Error 302 (JAXWS)
This is a link to a question I had asked two days back,
How to make a Webservice request follow a redirect?
I am using jaxws library.
The service forms the URL, and then internally creates the HTTPURLConnection. If I can grab hold of the connection I would be able to set the followRedirect to true.
But not getting a handle开发者_如何学JAVA of the same. Its urgent, any help would be highly appreciated.
You can set
requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, _url);
where url is the real URl (after redirection).
Get a handle of HttpUrlConnection.setforwardRedirect(true)
精彩评论