Cannot read property '$name' of undefined
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)
can you post the wsdl file?
It is http://service.livecommon.com/PublicCall.svc?wsdl
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.