0

我正在使用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
  });
});
4

1 回答 1

1

这可能会有所帮助:

https://github.com/vpulim/node-soap#clientlastrequest---the-property-that-c​​ontains-last-full-soap-request-for-client-logging

虽然我确信在node-soap某个地方的实现中隐藏了一个正常的请求对象,但soapResponse最终回调中的对象也可能用于调试。

于 2017-03-14T10:52:47.463 回答