on 03-23-2007 6:11 AM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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>
Vln,
It seems the wsdl file is not valid one.
Regards,
Ramganesan K.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.