ajax を使用して Web サービスを呼び出そうとしています。すでに仮想マシンに Web サービスをデプロイしています。
URL:
http://www.lumiin.ch:8080/lumiin-service/lumiin/control/vprospects
Rest クライアント Jar でこの URL を試してください
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;
});
});
しかし、上記のコードから応答がありません。これで私を助けてください。
レッツ・カーシック