s***@gmail.com
2018-04-09 09:11:18 UTC
hi, i'm using a soap client for node.js found here:
https://www.npmjs.com/package/soap
I'm calling my method:
soapResult = sync.await(client.authenticate( methodArgs, sync.defer()));
but soapResult is null
However, when i take a look at client.lastResponse i can see the xml
response i would expect:
<?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>
I'm wondering if soapResult is null because authenticateResponse is null,
and it expects the value to be there? The value is in fact returned in the
header, i want to return BinarySecurityToken but i'm not sure how.
thanks
--
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/ebcd0788-701a-4aed-ad65-df67a8183bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
https://www.npmjs.com/package/soap
I'm calling my method:
soapResult = sync.await(client.authenticate( methodArgs, sync.defer()));
but soapResult is null
However, when i take a look at client.lastResponse i can see the xml
response i would expect:
<?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>
I'm wondering if soapResult is null because authenticateResponse is null,
and it expects the value to be there? The value is in fact returned in the
header, i want to return BinarySecurityToken but i'm not sure how.
thanks
--
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/ebcd0788-701a-4aed-ad65-df67a8183bab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.