我正在尝试访问soap URL,我遇到了不同的文件类型,即.asmx
和.svc
. 我使用 node-soap 模块来处理.asmx
服务。因为.svc
我在wcf.js
下面遇到的是代码
var BasicHttpBinding = require('wcf.js').BasicHttpBinding
, Proxy = require('wcf.js').Proxy
, binding = new BasicHttpBinding()
, proxy = new Proxy(binding, "https://webservice.kareo.com/services/soap/2.1/")
, message = '<Envelope xmlns=' +
'"http://schemas.xmlsoap.org/soap/envelope/">' +
'<Header />' +
'<Body>' +
'<GetData xmlns="http://tempuri.org/">' +
'<value>GetAppointments</value>' +
'</GetData>' +
'</Body>' +
'</Envelope>'
proxy.send(message, "http://www.kareo.com/api/schemas/KareoServices/GetAppointments", function(response, ctx) {
console.log(response)
});
我无法理解必须将什么作为消息作为wcf
Web 服务的输入传递。
谁能给我一些关于这个的想法?这将非常有帮助。
提前谢谢