This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes exception: java.net.ConnectException: Connection timed out: connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "exception: java.net.ConnectException: Connection timed out: connect " Watch "exception: java.net.ConnectException: Connection timed out: connect " New topic
Author

exception: java.net.ConnectException: Connection timed out: connect

sanjay yadav yadav
Greenhorn

Joined: May 05, 2008
Posts: 9
Hi to all,
I m new to web services. i am creating client in eclipse using wsdl file build from Domino Notes.
When i access method from client, i get some error like--

exception: java.net.ConnectException: Connection timed out: connect
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
It sounds like your client is unable to connect to the service.
You should check the WSDL and make sure that the address of the service is correct.
An excerpt of a WSDL may look like this:

In the above snippet, the address of the web service to which requests are made is found in the <soapbind:address> element on row 3:
http://www.somedomain.com/xyz/BookQuote
To check if the service is alive at that address, paste the address into a browser.
Best wishes!
sanjay yadav yadav
Greenhorn

Joined: May 05, 2008
Posts: 9
Hi thanks for reply.
When i add this line
<soapbind:address location="http://192.168.0.69:80/yogesh/mywebservice.nsf/mywebservice?OpenWebService"/>

to the wsdl file in eclipse it shows some error message like
"the frefix soapbind for element soapbind:addess is not bound"

how can i recover from it.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

"sanjay yadav yadav " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
sanjay yadav yadav
Greenhorn

Joined: May 05, 2008
Posts: 9
Hi amit,
What you sent me to see. what ever you sent, i din't get. Is it related to the topic sent by me?
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
The error means that you have not assigned a XML schema for the prefix soapbind.
In order to tell you which prefix to use, I need to see the <definitions> element from your WSDL - can you post that element only?
Best wishes!
 
wood burning stoves
 
subject: exception: java.net.ConnectException: Connection timed out: connect
 
Similar Threads
Unable to connect using JavaMail
Java Mail
exception: java.net.ConnectException: Connection timed out: connect while consuming a web service
JNDI Connection refused
java.net.ConnectException: Connection timed out: connect