2
我正在使用node-soap模塊,它工作正常,除了當我在代理之後工作。我無法設法找到設置該代理的方式,因此我可以請求API。通過代理與節點肥皂客戶端調用SOAP API
soap.createClient(url, function(err, client) {
client.MyFunction(args, function(err, result) {
console.log(result);
});
});
這是寫在docs:
The options argument allows you to customize the client with the following properties:
request: to override the request module.
httpClient: to provide your own http client that implements request(rurl, data, callback, exheaders, exoptions).
是不是要走的路?