I am trying to use ajax to call my web services. Already i have deployed my web-service in my virtual machine.
URL:
http://www.lumiin.ch:8080/lumiin-service/lumiin/control/vprospects
Try this URL with Rest client Jar
Method = GET
Key = accept
value = Application/json
**My Code below**
$.ajax({
type: "GET", //GET or POST or PUT or DELETE verb
url: "http://www.lumiin.ch:8080/lumiin-service/lumiin/control/vprospects", // Location of the service
data: "", //Data sent to server
contentType: "application/json", // content type sent to server
dataType: "json", //Expected data format from server
processdata: true, //True or False
success: function (data) {//On Successfull service call
var result = json.name;
alert("result===" + result);
$("#dvAjax").html(result);
},
error: ServiceFailed// When Service call fails
});
return false;
});
});
But I am getting no response from the above code. Please help me out in this.
Regd's Karthick