I had a previous question can jquery ajax call external webservice?
and some good developers answered me to use jsonp, but i don\'t know how to use it, i am tr
The point with JSONP is the P! P as in padding. You are padding the JSON object literal with a function call - invoking a function on the calling page taking the data object as an argument.
I.e. if you request the webservice, send the desired callback function name in the query string
...service/?callback=hello
Then the service should answer (using appropriate mime type):
hello({a: 17, b: 4117});
For a more in-depth explanation, see: http://www.stpe.se/2008/10/cross-site-data-retrieval-using-jsonp/