这里我写了我的ajax调用。通过相同的格式(在我写的像http://xxx.yyy.z.a/WebService1/Service.asmx/add时的url)我可以访问我的webservice.But我无法访问wsdl webservice.Please帮助我。< / p>
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
url: "https://lifesathi.com/services/MobileAppsService.svc?wsdl",
data: '{username:"XXXX",password:"YYYY"}',
success: function(msg) {
alert(msg.d);
},
error: function(msg) {
alert("Error");
}});