You need to sign in to do that
Don't have an account?
Sarada RVS 2
Urgent:How to add client certificate to HTTP soap request to external webservice
I have added client .jks file into salesforce as CA certificate.
Below is the request i have used ,.It gives 200 response but error in debig log : "Unable to send authentication token"
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint('https://secure.wasp.uat.uk.experian.com/WASPAuthenticator/tokenService.asmx ');
req.setClientCertificateName('ncfltddsuat01u');
req.setMethod('POST');
req.setTimeout(120000);
req.setHeader('SOAPAction','http://www.uk.experian.com/WASP/LoginWithCertificate');
req.setHeader('Content-Type', 'text/xml; charset=utf-8');
req.setBody('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><LoginWithCertificate><application>WASP TEST</application><checkIP>true</checkIP></LoginWithCertificate></Body></Envelope>');
HttpResponse res = h.send(req);
system.debug(res.getBody());
Please assist me in this.???
Below is the request i have used ,.It gives 200 response but error in debig log : "Unable to send authentication token"
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint('https://secure.wasp.uat.uk.experian.com/WASPAuthenticator/tokenService.asmx ');
req.setClientCertificateName('ncfltddsuat01u');
req.setMethod('POST');
req.setTimeout(120000);
req.setHeader('SOAPAction','http://www.uk.experian.com/WASP/LoginWithCertificate');
req.setHeader('Content-Type', 'text/xml; charset=utf-8');
req.setBody('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><LoginWithCertificate><application>WASP TEST</application><checkIP>true</checkIP></LoginWithCertificate></Body></Envelope>');
HttpResponse res = h.send(req);
system.debug(res.getBody());
Please assist me in this.???
Sarada RVS 2
Could someone please assist me???