{"action":"created","issue":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/318","labels_url":"https://api.github.com/repos/vpulim/node-soap/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/vpulim/node-soap/issues/318/comments","events_url":"https://api.github.com/repos/vpulim/node-soap/issues/318/events","html_url":"https://github.com/vpulim/node-soap/issues/318","id":31107124,"number":318,"title":"this.element undefined","user":{"login":"louis77","id":1240462,"avatar_url":"https://avatars.githubusercontent.com/u/1240462?v=3","gravatar_id":"","url":"https://api.github.com/users/louis77","html_url":"https://github.com/louis77","followers_url":"https://api.github.com/users/louis77/followers","following_url":"https://api.github.com/users/louis77/following{/other_user}","gists_url":"https://api.github.com/users/louis77/gists{/gist_id}","starred_url":"https://api.github.com/users/louis77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louis77/subscriptions","organizations_url":"https://api.github.com/users/louis77/orgs","repos_url":"https://api.github.com/users/louis77/repos","events_url":"https://api.github.com/users/louis77/events{/privacy}","received_events_url":"https://api.github.com/users/louis77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vpulim/node-soap/labels/needs%20pull%20request","name":"needs pull request","color":"bfe5bf"},{"url":"https://api.github.com/repos/vpulim/node-soap/labels/WSDL%20Bug","name":"WSDL Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-04-08T20:43:52Z","updated_at":"2015-09-16T18:20:23Z","closed_at":"2015-09-16T18:20:23Z","body":"With this WSDL:\r\nhttp://www.tomas.ch/tws220/services/TwsBook20?wsdl\r\n\r\ncreateClient throws this:\r\n\r\n```\r\n~/soap/lib/wsdl.js:414\r\n    this.element.targetNSAlias = ns;\r\n                               ^\r\nTypeError: Cannot set property 'targetNSAlias' of undefined\r\n    at MessageElement.postProcess (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:414:32)\r\n    at OperationElement.postProcess (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:452:13)\r\n    at PortTypeElement.postProcess (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:472:11)\r\n    at BindingElement.postProcess (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:486:12)\r\n    at ServiceElement.postProcess (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:521:15)\r\n    at /Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:693:26\r\n    at /Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:753:7\r\n    at WSDL._processNextInclude (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:737:12)\r\n    at null.callback (/Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:752:10)\r\n    at /Users/louis77/Git/test/node_modules/soap/lib/wsdl.js:721:12\r\n```\r\n\r\nWhen I wrap this.element like this\r\n```\r\nif (this.element) {\r\n    this.element.targetNSAlias = ns;\r\n    this.element.targetNamespace = definitions.xmlns[ns];\r\n}\r\n```\r\ncreateClient() seems to work and I can execute .describe() ."},"comment":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/comments/140830953","html_url":"https://github.com/vpulim/node-soap/issues/318#issuecomment-140830953","issue_url":"https://api.github.com/repos/vpulim/node-soap/issues/318","id":140830953,"user":{"login":"jsdevel","id":2605980,"avatar_url":"https://avatars.githubusercontent.com/u/2605980?v=3","gravatar_id":"","url":"https://api.github.com/users/jsdevel","html_url":"https://github.com/jsdevel","followers_url":"https://api.github.com/users/jsdevel/followers","following_url":"https://api.github.com/users/jsdevel/following{/other_user}","gists_url":"https://api.github.com/users/jsdevel/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdevel/subscriptions","organizations_url":"https://api.github.com/users/jsdevel/orgs","repos_url":"https://api.github.com/users/jsdevel/repos","events_url":"https://api.github.com/users/jsdevel/events{/privacy}","received_events_url":"https://api.github.com/users/jsdevel/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T18:20:23Z","updated_at":"2015-09-16T18:20:23Z","body":"Closing for lack of activity."}}