I am trying to use web service & ajax call. Already i have deployed my web-service in my virtual machine.
URL:
http://www.lumiin.ch:8080/lumiin-service/lumiin/control/lookup/Priority
Try this URL with Rest client Jar
Key = accept value = Application/json
$.ajax({
type: "GET",
url: "http://www.lumiin.ch:8080/lumiin-service/lumiin/control/lookup/Priority",
dataType: "json",
success: function(resp){
// we have the response
alert("Server said123:
'" + resp );
},
error: function(e){
alert('Error121212: ' + e);
}
});
How to display the output from my URL using ajax calls. Any help will be appreciated. i am struggling a lot..
Regards Karthick
Have you tried changing your "dataType" in the $.ajax call to "XML"?
Explanation of jQuery AJAX data types
Also change your $.ajax call's error function to:
error: function (request, errorText, errorCode) {
alert(errorText);
}
This should give you the details of the error being thrown.