This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
when i try to invoke it gives me a the following exception.
exception: java.net.ConnectException: Connection timed out: connect
I have tried several things from google but none of them seem to respond. i can nopt even route the request through tcptrace.
Can anyone help???
Is "http://www.webservicex.net/stockquote.asmx" the service you are trying to invoke? Have you tried accessing the service through eclipse webservice explorer? What is the error you see there.
How did you generate the client and please post your client code ? Also at what point you see ConnectException? What do you see in stack ?
Thanks & Regards, Ravi C.Kota
SCJP 5.0, OCDJWS 5.0
Joined: Dec 15, 2010
Yes it is the same service that you're talking of. I am trying to use eclipse web services explorer.
I generated the client by right clicking on the WSDL file and selecting generate client. and then testing it using TestClient.jsp and invoking the getQuote() method. On the result page i get this exception. I also tried creating my own servlet and routing the request through the same by invoking the getQuote method in the stockQuoteSoapProxy class. But tht gave the same reply too.
The following is the StockQuoteServlet code:
I think I'm going wrong somewhere but don't know it exactly.
Ravi C Kota
Joined: Jan 29, 2008
I have tried this URL, through eclipse webservice explorer, but I too get the connection refused exception. I tried SOAPUI and it also gives me same exception. So I'm thinking it is nothing wrong you are doing, but the endpoint service is not allowing any connections. Or may be Firewalls blocking to reach the service.
One thing which I really did not understand here why this is allowed when accessing through browser, but not through client.....
Let me know, if you figured this out, as I'm very curious on this issue.
Not sure if you are still interested in this post. It could be a temporary problem with the service or bad internet service. If the request exceeds prescribed duration of time, the web service may time out. Not a helpful answer though!
Joined: Dec 15, 2010
I'm still interested as I haven't found the solution and it seems not just to be a temporary problem. It still persists. Moreover, I haven't been able to find any other free webservice which gives me the solution. Let me know if you have any.