Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Calling web service with SSL (HTTPS) hangs client stub

Calling web service with SSL (HTTPS) hangs client stub

From: Mike <mikea_730_at_yahoo.com>
Date: 19 May 2003 16:08:54 -0700
Message-ID: <39f5fc53.0305191508.1c477186@posting.google.com>


If anyone can help it would make my day! I've spent way too much time on this!!!

I'm running:

I've successfully installed and run the web security demo
"ws_security" at http://otn.oracle.com/sample_code/tech/java/web_services/wssecurity/ws_security.jar.

This demo goes through installing the web service, certificates, etc... and the demo runs fine. I'm also able to connect to the web service from a browser using
https://server1:4443/CreditCardValidator/CreditCardValidator. I can download the proxy, look at the WSDL, etc...

Now I've written my own very simple stateless java class web service, deployed it to 9iAS , and then downloaded the proxy stub jar. Using the proxy stub I can call my web service and everything works fine.

Then I configure the web service to use HTTPS by making the following changes to the proxy stub (per the ws_security demo).

  1. Copy the following 5 lines to the proxy stub
  System.setProperty("ssl.SocketFactory.provider","oracle.security.ssl.OracleSSLSocketFactoryImpl");
  System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryImpl");
  System.setProperty("java.protocol.handler.pkgs","HTTPClient");
  System.setProperty("oracle.wallet.location","C:\\Data\\Oracle\\WALLETS\\ws_security\\wallet.txt");
  System.setProperty("oracle.wallet.password","thewalletpassword");

2) modify the "m_soapURL" by changing "http" to "https" and the port number to 4443

3) add the following 3 jar files to my projects library class list:

C:\Program Files\jdev9031\jlib\jssl-1_2.jar
C:\Program Files\jdev9031\jdk\jre\lib\ext\jcert.jar
C:\Program Files\jdev9031\lib\jsse.jar;C:\Program
Files\jdev9031\jlib\javax-ssl-1_2.jar

When I run the proxy stub it just hangs. I've traced the hang to the
"Response response = call.invoke(new URL(m_soapURL), soapActionURI);"
statement in the "makeSOAPCallRPC" method in the proxy stub.

Again, this works fine if I simply change the "m_soapURL" to use
"http" instead of "https". It looks like it's hanging on the client
side and the call is never making it to the server.

Any help is GREATLY appreciated!!!!! Received on Mon May 19 2003 - 18:08:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US