Libor Krzyžanek
2013-08-07 09:03:27 UTC
Libor KrzyÅŸanek [https://community.jboss.org/people/lkrzyzanek] replied to the discussion
"Client call to Service behind SSO"
To view the discussion, visit: https://community.jboss.org/message/831646#831646
--------------------------------------------------------------
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
[https://community.jboss.org/message/831646#831646]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
"Client call to Service behind SSO"
To view the discussion, visit: https://community.jboss.org/message/831646#831646
--------------------------------------------------------------
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
[https://community.jboss.org/message/831646#831646]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]