Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sanjay yadav yadav
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
sanjay yadav yadav
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic