• olsen
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
HiJ
I have trouble reaching webservice and wondered if anyone here had some ideas on what could be the issue.
 
I’m performing a callout based on the methods generated from a web service WSDL, but it gives me the following exception:
 System.CalloutException: Remote host closed connection during handshake
 
 
I’ve rewritten the callout as a http request, but still the same error.
I also tried a very simple  GET request:
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndPoint('https://url_to_webservice.com/xx/xx/servicename.svc');
 
HttpResponse res = new HttpResponse();
res = h.send(req);
System.Debug(System.LoggingLevel.INFO,  'res:'+res.getbody());
 
The URL displays in a browser, but when I run the code from developer console I still get the handshake error.
I can also reach the service through Fiddler Web Debugger.
 
It looks like I’m not reaching the service at all.
 
I’ve checked
the certificates  - Server has a valid certificate (CA signed)
the SSL version – server supports version recommended by Salesforce, TLS 1.0
that the IPs are white listed in the firewall. IT confirms that the request reaches the firewall and is let through, but are not able to find any trace of it after that.
Any suggestions for what else I could check? 
  • December 04, 2014
  • Like
  • 0
HiJ
I have trouble reaching webservice and wondered if anyone here had some ideas on what could be the issue.
 
I’m performing a callout based on the methods generated from a web service WSDL, but it gives me the following exception:
 System.CalloutException: Remote host closed connection during handshake
 
 
I’ve rewritten the callout as a http request, but still the same error.
I also tried a very simple  GET request:
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndPoint('https://url_to_webservice.com/xx/xx/servicename.svc');
 
HttpResponse res = new HttpResponse();
res = h.send(req);
System.Debug(System.LoggingLevel.INFO,  'res:'+res.getbody());
 
The URL displays in a browser, but when I run the code from developer console I still get the handshake error.
I can also reach the service through Fiddler Web Debugger.
 
It looks like I’m not reaching the service at all.
 
I’ve checked
the certificates  - Server has a valid certificate (CA signed)
the SSL version – server supports version recommended by Salesforce, TLS 1.0
that the IPs are white listed in the firewall. IT confirms that the request reaches the firewall and is let through, but are not able to find any trace of it after that.
Any suggestions for what else I could check? 
  • December 04, 2014
  • Like
  • 0
Hi,
I have  query here:
I consumed the WSDL provided by the 3rd party. Now, I want to ren the WSDL2APEX through anonymous block. I am finding hard to write the anonymous block from developer console because there are many classess/ subclassess ate there. 
Can you please give an example here? Many Thanks...

-Kaity
  • December 03, 2014
  • Like
  • 0