[Salesforce Connector] Response content type of 'text/html;charset=UTF-8', but expected 'text/xml'

[Salesforce Connector] Response content type of 'text/html;charset=UTF-8', but expected 'text/xml'

  
Forge Component
(9)
Published on 19 Oct by OutSystems
9 votes
Published on 19 Oct by OutSystems
I am unable to login to our test URI at https://test.salesforce.com/services/Soap/c/34.0

SForce_Login always returns the following message:
  • Client found response content type of 'text/html;charset=UTF-8', but expected 'text/xml'.

Could anyone shed some light on it?

Thanks
Hi Caio,
That's usually because the response of the webservice request to authenticate is giving an error and giving back an HTML.

Something I noticed is that you're using a newer version of Salesforce API. There may be some incompatibility in the contract. Can you try instead using https://test.salesforce.com/services/Soap/u/25.0 as the server Url? 

Let us know