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.

2 Answers 2

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...

Sign up to request clarification or add additional context in comments.

3 Comments

third party's webservice is on 'https'. But my server is simple 'https' only.
What do you mean by simple https - how does the proxy server handle https traffic?
ohh sorry that would be 'http' only..typing mistake :(
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.

2 Comments

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).
Can you perform ping, trace route or telnet to the server?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.