Hi, I was now able to create the client and list all the functions in the webservice. When trying to invoke the method now i get the different error. I am not creatting a soap server.. I want to consume a soap client. The error is
Error: soap:Server: Value cannot be null. Parameter name: input at finish (C:\Users\Documents\Node\DBConnectnode\node_modules\soap\lib\wsdl.js:1518:21) at WSDL.xmlToObject (C:\Users\Documents\Node\DBConnectnode\node_modules\soap\lib\wsdl.js:1501:10) at parseSync (C:\Users\Documents\Node\DBConnectnode\node_modules\soap\lib\client.js:368:23) at C:\Users\mfarzana\Documents\Node\DBConnectnode\node_modules\soap\lib\client.js:361:14 at Request._callback (C:\Users\Documents\Node\DBConnectnode\node_modules\soap\lib\http.js:117:5) at Request.self.callback (C:\Users\Documents\Node\DBConnectnode\node_modules\request\request.js:186:22) at emitTwo (events.js:125:13) at Request.emit (events.js:213:7) at Request.<anonymous> (C:\Users\\Documents\Node\DBConnectnode\node_modules\request\request.js:1163:10) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at IncomingMessage.<anonymous> (C:\Users\Documents\Node\DBConnectnode\node_modules\request\request.js:1085:12) at Object.onceWrapper (events.js:314:30) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1059:12) Please help on this. On Monday, 22 January 2018 00:31:30 UTC+5:30, Muhammad Wasim wrote: > > 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" <farza...@gmail.com > <javascript:>> 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 nodejs+un...@googlegroups.com <javascript:>. >> To post to this group, send email to nod...@googlegroups.com >> <javascript:>. >> 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 nodejs+unsubscr...@googlegroups.com. To post to this group, send email to nodejs@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f418c6a4-2b51-4065-a9e5-1c1002387012%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.