Skip to Content

getting error 404 while consuming external REST web service

Jan 15 at 12:30 PM


avatar image

Hi Experts,

I have written a program where i have to send Json format to external REST web service using HTTP-POST method. But i am getting error http_communication_fail and response code is 404 with reason = 'hostname is unknown'. i am not using any proxy method and RFC.

Is there any thing needs to be done before consuming an external REST web service through link.

sample code and advice is highly appriciated.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bartosz Jarkowski Jan 15 at 12:51 PM

Looks like you have a communication error. The hostname to which you are trying to connect is not known.

There might be a various reasons why that's the case. The best choice would be to contact one of your system administrators as they are in a position to help you.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Thanks for your response. Is there any configuration we have to do before calling External REST web service in SAP.


I would check if I can connect to the external service firstly. It might be that your SAP system is disconnected from the internet...


Hi Bartosz,

I need to know one thing at the time of receive- > i am getting connection failed error that host name is unknown. Do I need to do setup port and host name in SMICM tcode in sap. There is something related to configuration in sap due to this connection is failing to receive request from internet . Please help me out in this.

Thanks .