How can I consume CrossDomaine services from my code behind using jsonp data.
I did it with javascript and it works just fine.
$.ajax({
type: "POST",
crossDomain: true,
timeout: 10000,
url: getUrl() + "ExecuteAction?callback=?",
data: { action: "HelloWorld", args: 'test'},
contentType: "application/json; charset=utf-8",
dataType: "jsonp"
}).done(function (msg) {alert("success");}).fail(function () {alert("error");});
Thanks.