4

I'm trying to consume a soap service in java. If I import the wsdl url in SOAPUI, I get the :java.net.ConnectException connection timed out exception.

I saved the WSDL to a file and successfully inported it into SOAPUI. In SOAPUI, I'm able to consume it.

In java however, i still get the java.net.ConnectException connection timed out exception when trying to consume it, having tried with a number of different libraries that work on other webservices in the same network.

I've also tried putting my entreprise proxy in java with no effect.

However, if i put a local proxy, like Fiddler, in front of java, I cat invoke the webservice successfully. The server where it's hosted has ping (ICMP) blocked. Event if I make a simple get for the WSDl address I get the java.net.ConnectException connection timed out exception.

Does anyone have any suggestions on how to troubleshoot this?

  • SoapUI uses the location from ``. Are you sure your Java client uses the same URL? Seems your client is connecting to non-existing endpoint. – Dormouse Jul 23 '14 at 09:30
  • Yes, I'm using that same address. That's the weird part, event if I make a simple GET for the WSDL url in java, I still get the timeout, and soapui has the same behaviour when importing the wsdl – user1019880 Jul 23 '14 at 09:47
  • [Global Java proxy?](https://www.java.com/en/download/help/proxy_setup.xml) – Dormouse Jul 23 '14 at 09:53
  • No, i used this: System.setProperty("http.proxyHost","url"); System.setProperty("http.proxyPort","80"); System.setProperty("useSystemProxies", "true"); – user1019880 Jul 23 '14 at 09:54
  • The link isn't broken for me... – Dormouse Jul 23 '14 at 09:56
  • After you edited it, It was working. I just tried the way it's described in the link with the same results. – user1019880 Jul 23 '14 at 10:02

0 Answers0