+ Start a Discussion

rest web service call fom apex is giving internal server error 500



I am trying to make http call out to a rest web service like "https://************.com/*******/*****/***"

my code snippet is like



httpreq.setclientcertificatename('certificate name');

httpsres= http.send(httpreq);


i have uploaded a CA certificate.  if i exclude that certificate it is giving bad certificate, if i include the certificate it is giving internal server error 500.


Experts please help. i need to develop this soon to deploy ... Please help

Best Answer chosen by Admin (Salesforce Developers) 

This is not a problem from salesforce. Problem is at the webservice WSM end. so its resolved.