Bibble
Bibble

Reputation: 103

XML Request from strong-soap

I am using strong-soap, and it is working well.

How do I locate the request and response XML that strong-soap has generated?

I would like to review and possibly log the XML, so that I can use the converted XML while testing the WSDL directly.

Upvotes: 0

Views: 985

Answers (1)

Mattia Costamagna
Mattia Costamagna

Reputation: 424

It may be late, but for people that may have the same problem in the future, here is how you can log your inbound and outbound requests in XML format:

server = soap.listen(...)
server.log = function(type, data) {
    // type is 'received' or 'replied'
    // data is the xml sent or received
};

References: strong-soap Github repo

Upvotes: 0

Related Questions