client.authenticate doesn't appear to be a method in this library. It may 
be making some kind of request that's populating lastRequest, but I think 
you need client.setSecurity(). See the docs here for an example:

I'd also suggest skip the `sync.await` library. I'm not sure what it's 
doing but it may be why lastResult is populated but the response doesn't 
come back as you'd expect. Try it first the normal async way, then 
promisify it later when you're sure it works.


On Monday, April 9, 2018 at 8:01:22 AM UTC-7, wrote:
> hi, i'm using a soap client for node.js found here:  
> 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="
> ">
>     <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:
New group rules:
Old group rules:
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 post to this group, send email to
To view this discussion on the web visit
For more options, visit

Reply via email to