я перепробовал много примеров, но, к сожалению, безуспешно,
вот код, который я сейчас пытаюсь использовать,
Код: Выделить всё
login("abc@gmail.com", "123456");
var productServiceUrl = 'http://localhost:50575/Service1.asmx?op=test'; // Preferably write this out from server side
function login(Email, Password) {
var soapMessage = ' \
\
\
' + Email + ' \
' + Password + ' \
\
\
';
$.ajax({
url: productServiceUrl,
type: "GET",
dataType: "xml",
data: soapMessage,
complete: endSaveProduct,
error: function (a, b, c) {
alert(a + "\n" + b + "\n" + c);
},
contentType: "text/xml; charset=\"utf-8\""
});
return false;
}
function endSaveProduct(xmlHttpRequest, status) {
$(xmlHttpRequest.responseXML)
.find('loginResult')
.each(function () {
alert( $(this).find('Message').text());
});
}
Заранее спасибо.
Подробнее здесь: https://stackoverflow.com/questions/118 ... -or-jquery
Мобильная версия