my dog learned polymorphism*
The moose likes Web Services and the fly likes WS UNknownHostException error 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 "WS UNknownHostException error" Watch "WS UNknownHostException error" New topic
Author

WS UNknownHostException error

tony kumar
Greenhorn

Joined: Dec 06, 2007
Posts: 3
Hi,

I am trying to configure WS on WSAD. I am using WSDL file which is refering to external URL for output. When ever i run testresult JSP and give inputs, the output i get is UNKnownHostException www.webservicemart.com
It tries to connect to http://www.webservicemart.com for output but gets an error
Please help me in same.

Regards,
tony
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
The Javadocs reveal that you get a java.net.UnknownHostException when the system is unable to determine an IP address for the host part of the URL.

Why are you so sure that the host you are specifying is correct?

Bill
tony kumar
Greenhorn

Joined: Dec 06, 2007
Posts: 3
Bill,

the thing is that i am able to open the referred url through a new browser in WSAD.

Regards,
Tony
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2921
    
    5
Originally posted by tony kumar:
the thing is that i am able to open the referred url through a new browser in WSAD.


Is it possible that the browser is already properly configured to use a proxy in the firewall while your web services client isn't?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WS UNknownHostException error
 
Similar Threads
WS UNknownHostException error
JavaOne ticket: $100
characteristics of JSON web services
JavaOne ticket available on eBay
JavaOne Ticket $100