ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nomorems <nomor...@yahoo.com>
Subject Fwd: SSL + soap message
Date Mon, 18 Mar 2002 14:29:39 GMT

 
  nomorems <nomorems@yahoo.com> wrote: Reply-to: "Jakarta WebSite CVS List" 
Date: Mon, 18 Mar 2002 06:27:36 -0800 (PST)
From: nomorems 
Subject: SSL + soap message
To: general@jakarta.apache.org, site-cvs@jakarta.apache.org,
tomcat-user@jakarta.apache.org, tomcat-dev-help@jakarta.apache.org,
soap-user-help@xml.apache.org, soap-dev-help@xml.apache.org


I Try to convert my program to handle with SSL but I get this error: cannot opening socket...
Who can help me?
Every tip is useful...
Thanx, nomorems

System.setProperty("javax.net.ssl.trustStore","C:\\client2.keystore");

System.setProperty("javax.net.ssl.keyStorePassword","changeit");

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

//SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
//SSLSocket socket = (SSLSocket)factory.createSocket("localhost", 8443);

// What can I do here??????

Envelope msgEnv = Envelope.unmarshall (doc1.getDocumentElement ());
Message msg = new Message();

// msg.send (new URL ("http://localhost:8080/soap/servlet/messagerouter"), "", msgEnv);


// ** SSL supply *********************
msg.send (new URL ("https://localhost:8443/soap/servlet/messagerouter"), "", msgEnv);
// ** SSL supply ******************* 

SOAPTransport st = msg.getSOAPTransport();

// Resonse
BufferedReader br = st.receive();

InputSource inpSource = new InputSource(br);
inpSource.setCharacterStream(br);.

... etc...



---------------------------------
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage


---------------------------------
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
Mime
View raw message