| Author |
.NET web service consumption in java | HTTPS
|
Sandeep saahil
Greenhorn
Joined: Jan 09, 2008
Posts: 12
|
|
Hi All, I m facing problems while calling a web service, available on https and developed in dot net, in java. I m able to call the same web service through standalone java program. But when I try to call the service through web application, it fails. The web application is developed in JBoss4.0.4. Stack Trace: 2008-09-24 19:26:08,622 DEBUG [org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Error invoking http client invoker.java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230) �. I have set following system properties: System.setProperty("javax.net.ssl.trustStore","C:\\TestKeystores\\mail.expert-24.com.keystore"); System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); System.setProperty("org.jboss.security.ignoreHttpsHost", "true"); Please guide
|
Dreams are not what you get when you sleep...It is something which don't let you sleep
|
 |
 |
|
|
subject: .NET web service consumption in java | HTTPS
|
|
|