node-soap icon indicating copy to clipboard operation
node-soap copied to clipboard

Cannot read property '$name' of undefined

Open tanqhnguyen opened this issue 15 years ago • 3 comments

I can create a client using the wsdl url. then I called client.describe() and I got the following output

{ PublicCall: { BasicHttpBinding_IPublicCall: { DoWork: [Object], projectName: [Object], GetCustomers: [Object], getAdds: [Object], GetTimeDelay: [Object], UpdateClick: [Object], GetAllWords: [Object], AddPublisher: [Object], CheckPublisherExist: [Object], GetPublisherStat: [Object], AddDomain: [Object] } } }

Then I do client.PublicCall.BasicHttpBinding_IPublicCall.projectName(function(error, result){});

But I got "Cannot read property '$name' of undefined"

Full error log

TypeError: Cannot read property '$name' of undefined at [object Object]._invoke (/project/node_modules/soap/lib/client.js:84:23) at Object.projectName (/project/node_modules/soap/lib/client.js:57:14)

tanqhnguyen avatar Nov 01 '11 13:11 tanqhnguyen

can you post the wsdl file?

vpulim avatar Nov 01 '11 15:11 vpulim

It is http://service.livecommon.com/PublicCall.svc?wsdl

tanqhnguyen avatar Nov 02 '11 03:11 tanqhnguyen

you should no longer get that error with the latest version of node-soap. however, it looks like it may be using some advanced SOAP features that are not yet supported.

milewise avatar Dec 16 '11 09:12 milewise