wx.reuqest怎么调用wsdl接口
wx.request({
url: ‘http://’,
method: ‘get’,
data :{
code :res.code
},
success: function (res) {
console.log(res.data)
},
header: {
‘content-type’: ‘application/json’
},
})
url里应该怎么写
wsdl 是建立在 HTTP 基础上的一整套应用协议,不止是一个 url 就能搞定的,随手搜了两份资料供你参考:
Simplest SOAP example
http://stackoverflow.com/questions/124269/simplest-soap-example
JavaScript SOAP Client
https://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client