Man of Honour
- Joined
- 11 Dec 2002
- Posts
- 10,874
- Location
- Darkest Norfolk
Hey guys, i'm wondering if anyones any good with jsse and can give me an hour or two of there time (I don't mind re-embursing at a reasonable rate) to help sorting out some problems i'm having creating a client to connect to an existing apachi server 
Cheers
Sam
edit: i'll add some more info -
Basically its a SOAP server that takes in messages, i have it all working over http and https however i'm trying to get a SSL connection to it working.
I have the cert for the server in the security container (/lib/security) of the jre and i'm using the following code to form the connection:
and i just keep getting the following error
(197 is the bolded line)

Cheers
Sam
edit: i'll add some more info -
Basically its a SOAP server that takes in messages, i have it all working over http and https however i'm trying to get a SSL connection to it working.
I have the cert for the server in the security container (/lib/security) of the jre and i'm using the following code to form the connection:
Code:
InetAddress addr = InetAddress.getByName(hostname);
SSLSocketFactory sslsocketfactory = (SSLSocketFactory) SSLSocketFactory.getDefault();
[b]SSLSocket socket = (SSLSocket) sslsocketfactory.createSocket(addr, port);[/b]
socket.setSoTimeout(120000);
String path = "/servlet/SomeServlet";
BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), "UTF8"));
and i just keep getting the following error
Code:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(DashoA6275)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA6275)
at com.cogent.SOAP.SoapSend.runReqT(SoapSend.java:197)
at com.cogent.SOAP.SoapSend.run(SoapSend.java:49)
(197 is the bolded line)
Last edited: