0

尝试使用下面提到的代码调用 SOAP Web 服务。似乎正在命中错误回调函数

var soapEnv = '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><Add xmlns="http://tempuri.org/"><intA>3</intA><intB>3</intB></Add></soap:Body></soap:Envelope>';

$.ajax({
  url: "http://www.dneonline.com/calculator.asmx",
  type: "POST",
  contentType: "text/xml; charset=\"utf-8\"",
  data: soapEnv,
  processData: false,
  dataType: "xml",
  success: function(res, status, xhr) {
    return;
  },
  error: function(res) {}
});
}
4

0 回答 0