function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ranalsheikhranalsheikh 

Calling external Web service with HTTPS from managed package

Our organization created a managed package that consumes a web service hosted by our own company.

The web service methods are called using an HTTPS endpoint.

 

After installation, the code that executes a call one of the web service's method is getting the following error:

 

"Web service callout failed: Unable to find header type info forconfig".

 

If we change the web service URL to use "http" instead of "https", the web method call works.

 

 

So what does it mean this error message? How we can use "https" protocol, instead of "http" for the web service calls? 

 

cgosscgoss
Did you add an external site for https and http? Sometimes the error messages are misleading.
ranalsheikhranalsheikh

Yes. The web service URL had already been added to the Remote Site Settings of the organization, using Administration Setup -> Security Controls -> Remote Site Settings.

 

Anyone knows what does this message mean and how to make the web service call work using HTTPS?