1 Reply Latest reply on Apr 1, 2005 4:30 AM by Anders Hedstrom

    Calling a WS over HTTPS from a SLSB?

    Anders Hedstrom Novice

      Hi,

      I have a SLSB calling a remote webservice. When I'm using the HTTP protocol everything works fine, but when I try to call the webservice using the HTTPS protocol I get the following exception:

      Caused by: java.io.IOException: Unable to tunnel through proxy.mycomp.com:8080. Proxy returns "HTTP/1.0 404 Not Found"
       at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:230)
       at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:162)
       at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118)
       at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
       at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
       at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
       at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
       at org.apache.axis.client.Call.invokeEngine(Call.java:3039)
       at org.apache.axis.client.Call.invoke(Call.java:3024)
       at org.apache.axis.client.Call.invoke(Call.java:2619)
       at org.apache.axis.client.Call.invoke(Call.java:2524)
       at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
       at org.apache.axis.client.Call.invoke(Call.java:1917)
       at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175)
       at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:251)


      I also have a standalone client, and with that one there is no problems calling the webservice over HTTPS . I have a keystore file where I have imported the server certificate.

      I have searched around and have not been able to find any examples how to call a webservice over https from an EJB.

      I do not understand the exception message either, because I have not configured JBoss to use the proxy?

      What I'm I missing? Anyone?

      Cheers

      //Anders =)