0
我試圖訪問soap URL,我遇到了不同的文件類型,即.asmx
和.svc
。我使用node-soap模塊來處理.asmx
服務。對於.svc
我碰到wcf.js
來到下面是代碼從nodejs處理wcf服務
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服務的輸入傳遞。
任何人都可以提供一些關於這方面的想法嗎?這將是非常有益的。
高級謝謝
你可以幫我做一個實例。 – user87267867 2013-09-02 03:45:46
您粘貼了一個工作示例之上......您只需要根據需要更改消息,您可以向服務供應商索取exmaple – 2013-09-02 17:02:12