fetch("http://xxx.com/services/ResultService?wsdl", {
"headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en,zh;q=0.9,zh-CN;q=0.8,zh-TW;q=0.7,ja;q=0.6",
"cache-control": "no-cache",
"pragma": "no-cache",
"upgrade-insecure-requests": "1"
},
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2003/XMLSchema-instance\" "
+"xmlns:web=\"http://webservice.sztce.apusic.com/\" "
+"xmlns:xsd=\"http://www.w3.org/2003/XMLSchema\" "
+"xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+"<soap:Body>"
+"<web:query>"
+"<idCardNo>"
+"440301197804200945"
+"</idCardNo>"
+"</web:query>"
+"</soap:Body>"
+"</soap:Envelope>",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
// 参数说明
+"<web:query>" // 方法名
+"<idCardNo>" // 参数名
+"440301197804200945" // 参数值
+"</idCardNo>"
+"</web:query>"
js调用webservice接口
于 2022-03-22 16:46:40 首次发布