You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by nomorems <no...@yahoo.com> on 2002/03/18 15:30:49 UTC

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

Re: SSL + soap message

Posted by Fred Meredith <fm...@nc.rr.com>.
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 ----- 
  From: nomorems 
  To: soap-user@xml.apache.org 
  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

Re: SSL + soap message

Posted by Fred Meredith <fm...@nc.rr.com>.
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 ----- 
  From: nomorems 
  To: soap-user@xml.apache.org 
  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