You have to check for 'err' object. It must have the reason of undefined client.
On 21 Jan 2018 9:49 p.m., "farzana mustafa" <[email protected]> wrote: > > Hi, >> > > I am new to node.js and am learning how to consume soap based asmx > webservice in node.js. > > The above mentioned example is working fine for me. > In the similar line i tried for my webservice just by Creating the client > and printing the client, it gives the value as undefined. > soap.createClient(url, function(err, client) { > console.log(client); > }); > > > > When trying to access the methods from the client, it throws error cannot > find the property 'xxx' of undefined. > Any idea why my soap client is not getting created. > Is there any authentication that needs to be provided. When i try to > access the same webservice with Credentials in .Net it is working fine. > Please some one help on this as I am clueless on how to proceed further. > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/nodejs/bb8066a9-7750-4718-8923-d8aeda0842a6%40googlegroups.com > <https://groups.google.com/d/msgid/nodejs/bb8066a9-7750-4718-8923-d8aeda0842a6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAHWx-HDoSRe1khSc4G_ux0RsMjsA%2B6N8q%2BbzJOnmEECdc7nVwg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
