This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con" Watch "WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con" New topic
Author

WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Can anyone help me please? I have a wsdl file, which was created by a third party. I use it to generate the java classes. The problem is (IMO) : we have to use security as defined here and this file makes reference to several other files and I get the connection timeout. I mean I have a huge xsd file in the local also, which is very well-formed and valid. I don't have any problems with it.... and with this security thing in scene it just crashes. The xsd schema of the security thing is security xsd
It takes around 26 seconds to get the "Connection timed out". not even reaches the 45 seconds of the default by wsdl2java..
I use ant to build. so there exists a setproxy ant taskhere setproxy but it seems it takes no effect to the wsdl2java ; wsdl2javaseems to be using the default ones: always 45000 milliseconds and proxyhost proxyport and always equals null..
BY the way, do I really need socket proxy explicitly , or only http proxy ? Any help or light or idea will be appreciated. and the port numbers also esp. for the socks case if ever really needed?

Regards,
R�stem e Zal
http://schemas.xmlsoap.org/ws/2003/06/secext/xsdant setProxy taskherewsdl2javasocksproxyhostheresetProxy

[ November 16, 2004: Message edited by: R�stem e Zal ]

[ November 16, 2004: Message edited by: R�stem e Zal ]

[ November 16, 2004: Message edited by: R�stem e Zal ]

[ November 16, 2004: Message edited by: R�stem e Zal ]
[ November 16, 2004: Message edited by: R�stem e Zal ]
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
I had similiar exceptions earlier. I specified the proxy and port options when generating the stubs for the wsdl and also in the standalone web services java client program that I wrote I specified below code snippet and it worked :

System.setProperty("http.proxyHost", "10.236.235.7");
System.setProperty("http.proxyPort", "3128");


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con
 
Similar Threads
WSDL2Java throwing IOException
SocketException in WSAD
Error while using WSDL2Java
WSDL2Java Protocol Exception
Access to website using Java Code