This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Web Services and the fly likes Problem with webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem with webservice" Watch "Problem with webservice" New topic
Author

Problem with webservice

jyoti mahajan
Greenhorn

Joined: Nov 18, 2010
Posts: 27
hello frnds...

I have created web service and web service client on one PC thn it is working fine.

when i am trying to access the web service from live ip.i am able to create client whn i rum my client it show the following exception...

Ex javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://121.245.225.82:8080/Cal_Tom/CalWSService?wsdl. It failed with: Connection timed out: connect.

http://121.245.225.82:8080/Cal_Tom/CalWSService?wsdl

wsdl is working fine.

Regards

jyoti mahajan
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
The problem is either with host IP or port, you are trying to connect. There should be some server listening on that address(host:port) for successful connection .
If above is not the case then could be firewall problem which might be stopping to create a socket.


SCJP 1.5(97%) My Blog
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you tried to access the web service using soapUI from the client machine?
If soapUI does not work, then perhaps there is some problem with firewall or such, as suggested in another post.
If soapUI works then there is a problem with your client.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
jyoti mahajan
Greenhorn

Joined: Nov 18, 2010
Posts: 27
I have a web service : http://202.93.154.214/railtourismws5/services/EnquiryManager?wsdl which is working fine..
we test the operation it is working fine...
it is taking XML as input and gives output as XML.....
please let me know how to use it in my web service client...

Regards
Jyoti Mahajan
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
You could use axis2 wsdl2java to generate client or for testing purpose use SOAP UI tool.
 
GeeCON Prague 2014
 
subject: Problem with webservice