1

I have made a web service client importing a third party wsdl in eclipse.

But I got this exception:

javax.xml.ws.WebServiceException: Connection IO Exception. Check nested exception for details. (Unable to connect to 1X.XXX.X.XX:X0 - Connection timed out). 

I hope this exception occurred for the proxy only.

There is a proxy server between me and that third party. I don't know how to do the proxy authentication and where in coding I need to this proxy authentication.

Abhishek
  • 2,095
  • 2
  • 21
  • 25

2 Answers2

1

Is your end point on HTTPS? There different ways proxies support HTTPS - one ways is SSL bridging and the other is SSL Tunneling..

May be your client side libraries you used to connect may not support the one being used by the proxy...

Prabath Siriwardena
  • 5,891
  • 1
  • 27
  • 34
0

You must explicitly set the proxy server in Java, the JRE does not retrieve it from the OS configuration. You can find the detailed explanation here. As per the link, a standard configuration may look like this:

System.setProperty("http.proxyHost", "myproxy.com");
System.setPropery("http.proxyPort", "8080");

Obviously, you can also define the system properties as VM arguments during startup.

home
  • 12,468
  • 5
  • 46
  • 54
  • System.setProperty("https.proxyHost", "myproxyhost"); System.setProperty("https.proxyPort", "proxyport"); System.setProperty("proxySet", "true"); System.setProperty("https.proxyUser", "proxyUser"); System.setProperty("https.proxyPassword", "proxyPassword"); I used these statements. But still it is giving error `(Unable to connect to 1x.2xx.x.xx:80 - Connection timed out). ` – Abhishek Sep 22 '11 at 14:38
  • Can you perform ping, trace route or telnet to the server? – home Sep 22 '11 at 15:45