So the situation is an application deployed on JBoss 5.1.0.GA (running on JDK6) needs to make a call to a WebService that is deployed behind an SSO layer. Not so big a deal(I thought). I managed to get the certificates and aliases configured to do the SSL negotiation but then started getting the following:
java.net.HttpRetryException: cannot retry due to redirection, in streaming mode
at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2337)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1556)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at org.jboss.remoting.transport.http.HTTPClientInvoker.getResponseCode(HTTPClientInvoker.java:1238)
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:339)
at org.jboss.remoting.transport.http.HTTPClientInvoker.makeInvocation(HTTPClientInvoker.java:231)
The problem is that the SSO layer uses a redirect to accomlish authentication which does not lend itself to using URL.openStream()
I know how to code the http handling so that the redirect is followed and the correct stream is obtained what I don't know is how to get JBossWS to use custom code for this.
Thanks in advance,
Chalrie