0

I am integration salesforce with SAP system using SOAP API. SAP Provided the Username and Password SO I have created a NamedCreditials in salesforce and used that in my apex class as endpoint.

like public String endpoint_x ='callout:SAP_Callout';

As per salesforce doc https://help.salesforce.com/HTViewSolution?id=000003652 we have whitlisted the Salesforce IP ranges in Firewall on SAP End.

But during callout, still we are getting Error,

System.Callout Exception Unexpected end of file from server

Named Credentials: http://prntscr.com/l28ba7 Snapshot of IP ranges which is configured in firewall. enter image description here enter image description here enter image description here enter image description here

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

If you can, try the same callout from a Developer Edition org with the Debug Log capturing the Callout logging.

That will capture the raw SOAP request and response in CALLOUT_REQUEST and CALLOUT_RESPONSE entries. Those will likely reveal the underlying problem in the response.

  • I tied to put callout finest debug log but didn't got anything to identify exact issue. – Amol Oct 5 '18 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.