Reputation: 1278
I m developing app using android-phonegap.
its working fine when i call webservice hosted on my pc.
But when i deploy it on ssl server, i a not getting any output.
my code is :
function CallService() {
$.ajax({
type: "GET",
url: "http://devpc4:5566/Service1.asmx/GetItems",
dataType: "json",
data: "{}",
contentType: "application/json; charset=utf-8",
success: OnSuccess,
error: OnError
});
}
can any one help me?
Upvotes: 3
Views: 337
Reputation: 19
You have to add some headers on your server which will allow you to call web-service from other server.
I mean to say, When your web-service is hosted on one server and you are calling it from other server then your server may not allow this.
So you have to add some "header permissions" on your server
Upvotes: 1