wx.reuqest怎么调用wsdl接口

发布于 7 年前作者 xia298417 次浏览最后编辑 7 年前来自 ask

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里应该怎么写

1 回复
leixiong
leixiong1 楼5 年前

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