+ Start a Discussion

How to integrate Salesforce with locally deployed system


We are trying to integrate Salesforce with SQL database.  Our Deveopment(Non prod) SQL database is locally host and production database is publically host.

While development, we are integrating Salesforce Sandbox with SQL non production database(which is locally host) using SOAP. Its result in following error.
System.CalloutException: IO Exception: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint.

I already added our url in remote site setting but still it is giving same error.
Make sure you have added both subdomain and domain name.

like if your endpoint is https://mydomain.com then there can be chances that app is calling out to https://otherdomain.mydomain.com, In that case you have to add that endpoint too. Make sure it has same protocol also.
Hi Thanks for your reply.

Now I have added Otherdomain.mydomain.com. It started giving another error now.
System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'