0
点赞
收藏
分享

微信扫一扫

js调用webservice接口

忍禁 2022-03-22 阅读 160
javascript

fetch("http://www.0755tt.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>"  

举报

相关推荐

0 条评论