After some research, It is my understanding that you can not call a web service in javascript that is on an external domain.
What about a sub domain?
My website is on http://example.com and i have some web services on http://services.example.com.
Is this case, would I be able to call them?
Thank you.
Normally you can’t call webservices in other domains (different domain name or port).
However if you control the webservice it’t possible to wrap it using JSONP. Technically,
with every call a script is embedded in your page, wchich calls a function already defined within your page passing it the data returned from the webservice call.
Most libraries support this kind of cross domain communication including jQuery.