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.
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.