on 09-02-2005 5:40 AM
Hi,
In my webDynpro Application I was trying to comsume this webservice.
http://PWDF2696.wdf.sap.corp:50076/sap/bc/srt/xip/sap/EmployeeAbsenceList_WSD?sap-client=800
When I try to run the application I get the following error.
Service call exception; nested exception is: java.lang.Exception: Call to returned http code 500 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>PWDF2696.wdf.sap.corp</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>
Is this a authentication error. How do I handle do I gain the access... I mean where do I need to pass the username and password.
Thanks a lot,
Tarun.
Hi Tarun,
Have you made entry in "HOSTS" file for your hostname "PWDF2696.wdf.sap.corp"?
Its required to make entry for hostname resolution.
Make following entry in "HOSTS" file located at <drive>:\windows\system32\drivers\etc\
PWDF2696.wdf.sap.corp <IPaddress>
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks so much for that.
Althoug I have one more issue now.
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
This is the execption that I have received now. Could I know how to provide the user name password...???
Hi Tarun,
You can also write properties file and read User info from this properties file and pass that string here.
Other option for this is to create HTTP destination from Visual administrator and then specify this HTTP destination in your code. So, your user information lies on server not in your code.
Regards,
Bhavik
Hi Friends,
I was trying the same code but i am constantly getting this error even after putting username and password dynamically.
Error : Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ).
Could someone help me on this ?
Hi Tarun,
"500 with unacceptable content type " !!!
I think your webservice is not returning XML format whereas it is returning of type HTML.Please verify the webservice once again.
Regards, Anilkumar
Message was edited by: Anilkumar Vippagunta
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.