JBoss Community

Client call to Service behind SSO

reply from Libor Krzyžanek in JBoss Web Services - View the full discussion

The situation is an application deployed on JBoss 5.1.0.GA(running JDK6) needs to make a call to a webservice that is deployed behind and SSO layer.  I've managed to get the SSL configuration accomlished and the started getting this error:

 

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 the SSO layer uses a redirect which doesn't work with URL.openStreamI().

 

If I was coding the transport myself coding around the redirect would not be a problem.

 

What I'm trying to figure out is the best way to tell JBossWS to use some custom code there.

 

Ideas??

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community