cancel
Showing results for 
Search instead for 
Did you mean: 

webservices in WD??

Former Member
0 Kudos

hi all

I am accessing a webservice via webdynpro (all on the same server)and I am facing this problem. How should I resolve this?? Thanks.

Service call exception; nested exception is: java.lang.Exception: Call to returned http code 500 (Unknown Host) with unacceptable content type (text/html; charset=iso-8859-1). <HTML> <HEAD> <TITLE>Unknown Host</TITLE> </HEAD> <BODY BGCOLOR="white" FGCOLOR="black"> <H1>Unknown Host</H1> <HR> <FONT FACE="Helvetica,Arial"><B> Description: Unable to locate the server named "<EM>iwdf1083</EM>" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again. </B></FONT> <HR> </BODY> java.lang.Exception: Call to returned http code 500 (Unknown Host) with unacceptable content type (text/html; charset=iso-8859-1). <HTML> <HEAD> <TITLE>Unknown Host</TITLE> </HEAD> <BODY BGCOLOR="white" FGCOLOR="black"> <H1>Unknown Host</H1> <HR> <FONT FACE="Helvetica,Arial"><B> Description: Unable to locate the server named "<EM>iwdf1083</EM>" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again. </B></FONT> <HR> </BODY>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

VLN,

Strange, the problem is explained in plain English: in your WSDL there is a definition of default WebService endpoint. This definition points to host you have no acceess to. Either set other endpoint (see setEndpoint on your generated WS model classes) or add an entry in /drivers/etc/hosts that maps iwdf1083 to concrete IP address.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi vln,

did you entered the server name details in "HOSTS" file located at <drive>:\windows\system32\drivers\etc\

Test your web service using web service navigator is that working fine?.

Regards , Suresh KB

Former Member
0 Kudos

hi

I have tested the webservice using the navigator it works fine.

""HOSTS" file located at <drive>:\windows\system32\drivers\etc\" is this to be done in every client machine that i access it from? I have used wsdl url to form a model out of the webservice in WD. All of them (WD appln & Webservice reside on the same server). Thanks.

reg

vln

chintan_virani
Active Contributor
0 Kudos

Vln,

Probably since you are not completely on client side network you will need to map the IP-Servername in <i>hosts </i>file on every machine where u do your testing from.

The users will be in the client network and they will not need a host file entry when they access your application.

<b>- Chintan</b>

former_member189631
Active Contributor
0 Kudos

Vln,

It seems the wsdl file is not valid one.

Regards,

Ramganesan K.