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
ajitvermaajitverma 

System.CalloutException: IO Exception: External server did not return any content

Hi,

I am connecting to a webservice using visualforce controller. I have parsed the WSDL into proxy apex classes and have the service methods exposed. Now when I call the method and try to hit the service I get the error message saying.
System.CalloutException: IO Exception: External server did not return any content

When I call the same service using SOAP UI with same input parameters there is no issue and I get positive response from the service.

I validated from the service provider and came to know that when I make call from SFDC service is not getting hit. 

 

Any help is appreciated.

Ankit AroraAnkit Arora

Just a thought, make sure URL you hitting is publicly accessible.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

ajitvermaajitverma

Yes, this is there.

CertifiedAdminCertifiedAdmin

Ajit,

 

Were you able to find a solution for this?  we are experiencing the same proble.

Lakshmi_lb14447Lakshmi_lb14447
Though it is an old post, I though this info might help someone.

Please make sure that the SOAP message built in the callout conforms to the sample SOAP message given by your service provider. If sample is not available from the service provider compare it with the working SoapUI request message.
Apex callout by default inserts empty SOAP header "<env:Header/>", the issue can be as simple as the callout SOAP message containing this empty header which the server does not expect.
Diego Armando Vargas GuzmanDiego Armando Vargas Guzman
I was able to resolve this issue configuring https instead of http.