How to view request and response data in node soap?

I am trying to use api soap using node soap . My answer cannot be analyzed, and I am wondering how to view the request and response data for the console to facilitate the process of finding errors.

+3
source share
2 answers

As a node soap uses a query library, it can be debugged with:

NODE_DEBUG=request node src/index.js

as indicated by request Readme.md :

Debugging

There are at least three ways to debug an operation request:

  • Run the node process, for example NODE_DEBUG=request node script.js( lib,request,otherlib).

  • require('request').debug = true ( , # 1).

  • - .

+2

XML SOAP, this:

. lastRequest - ,

+1

Source: https://habr.com/ru/post/1669187/


All Articles