I am trying to access a SAP server :
I have already setup this URL in
When I am trying with
SOAP UI it is working fine that suggests End Point is valid. But, I know
SOAP UI or
browser takes it's own
IP address, that's why it's working.
But when we try to call via
Salesforce server IP address involves.
Any idea, how to solve
String jsonRequest = 'JSON String'; String requestBody = JSON.serializePretty(jsonRequest); HttpRequest req = new HttpRequest(); HttpResponse response = new HttpResponse(); Http myHttp = new Http(); String endpoint = 'http://10.*.*.*:7110/api/***/****'; req.setEndpoint(endpoint); req.setMethod('POST'); req.setBody(requestBody); req.setHeader('Content-Type', 'application/json'); response = myHttp.send(req);
DEBUG|DEBUG: http status -- 403 -- Forbidden
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: *******************
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is