我正在使用node-soap通过 Express NodeJS 应用程序进行 SOAP 调用。我已经连接了非常基本的 SOAP 服务,其中大部分都可以正常工作。
然而,有一个返回“找不到资源”消息(注意这是来自服务的有效消息)。然而,当我在 Boomerang 中使用完全相同的标题和正文时,资源会很好地返回。有没有办法记录通过 node-soap 本身发送的完整请求(......而不是像 fiddler 一样安装嗅探器)?
我正在使用的代码示例:
soap.createClient(config.wsdl, (error, client) => {
client.addSoapHeader(config.soapHeader());
client[config.webMethodName](config.soapBody(policyNumber, agentNumber), (error, soapResponse) => {
//do stuff
});
});