|
Is this a typo?:
msg.send (new URL ("https://localhost:8443/soap/! servlet/messagerouter"),
"", msgEnv);
There shouldn't be a "!" between the soap and servlet
directory...
----- Original Message -----
Sent: Monday, March 18, 2002 9:30
AM
Subject: SSL + soap message
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
|