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
OmerOmer 

3rd Party Web Services

Can we call external web services (non-SalesForce) through AJAX in applications build on AppExchange or not? An example will be greatly appreciated.

Thanks.
DevAngelDevAngel
Depends. If you need to use XMLHttpRequest you will run into security issues. Google maps for instance does not make an XHR request, but uses google's map api with returns a bunch of image tiles and does some rendering. If you do need XHR then you need to make the 3rd party endpoint a trusted site in IE and allow for cross domain data requests for your trusted sites. FF you can do some configuration gymnastics.

In either case, if you need XHR or cross frame communication you will need to configure each browser to a allow this.
iSpaceiSpace

Can you please provide an example. Say for example i am trying to call and external SOAP based web service and I run into "Permission denied" while making an XmlHttpRequest. How can i configure my browser to accept the response that i obtain from the external web service.

Any help is appreciated.

Thanks,

Abhilash