Discussion:
[nodejs] Node soap null result but client.lastResponse contains required xml
s***@gmail.com
2018-04-09 11:10:15 UTC
Permalink
My Node request is coming back null:

soapResult = sync.await(client.authenticate( methodArgs, sync.defer
()));

But client.lastResponse does contain the xml i want, but the method
response (authenticateResponse) is null. I want to access the security
token passed in the header:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security>
<wsse:BinarySecurityToken>123456789</wsse:BinarySecurityToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<authenticateResponse xmlns=""/>
</soapenv:Body>
</soapenv:Envelope>
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/47c5a4bd-cf2d-42d1-b325-aeda762ac10f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...