node-soap返回错误"没有这样的操作"

时间:2016-11-04 15:17:11

标签: node.js web-services soap

我尝试使用node-soap包设置soap客户端。我必须连接到ADVCash支付系统的API。

所以,我这样创建客户端:

try
  client = Soap.createClient("https://wallet.advcash.com/wsm/merchantWebService?wsdl")      
catch error
  console.log error

然后致电

client.getBalances(params)

结果我有错误

error: 'soap-method',
reason: 'Soap method call failed',
details: { [Error: soap:Server: No such operation:  (HTTP GET PATH_INFO: /wsm/merchantWebService)] stack: [Getter] },
message: 'Soap method call failed [soap-method]',

我已经询问了支付系统对此错误的支持,他们告诉我可能是使用HTTP GET方法而不是HTTP POST。 我在node-soap软件包的文档中找不到任何有关如何检查/设置http方法包使用的说明。 有人可以帮我解决这个问题吗? 如何为请求设置http方法POST?

0 个答案:

没有答案
相关问题