milewise/node-soap — Issue #7: Cannot read property '$name' of undefined
Author: laoshanlung
Created: 2011-11-01 13:56:09+00:00
State: open

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)