{"action":"created","issue":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/625","labels_url":"https://api.github.com/repos/vpulim/node-soap/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/vpulim/node-soap/issues/625/comments","events_url":"https://api.github.com/repos/vpulim/node-soap/issues/625/events","html_url":"https://github.com/vpulim/node-soap/issues/625","id":67800989,"number":625,"title":" Cannot read property of undefined in lib/client.js","user":{"login":"Himanshu4","id":8264341,"avatar_url":"https://avatars.githubusercontent.com/u/8264341?v=3","gravatar_id":"","url":"https://api.github.com/users/Himanshu4","html_url":"https://github.com/Himanshu4","followers_url":"https://api.github.com/users/Himanshu4/followers","following_url":"https://api.github.com/users/Himanshu4/following{/other_user}","gists_url":"https://api.github.com/users/Himanshu4/gists{/gist_id}","starred_url":"https://api.github.com/users/Himanshu4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Himanshu4/subscriptions","organizations_url":"https://api.github.com/users/Himanshu4/orgs","repos_url":"https://api.github.com/users/Himanshu4/repos","events_url":"https://api.github.com/users/Himanshu4/events{/privacy}","received_events_url":"https://api.github.com/users/Himanshu4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-11T15:51:56Z","updated_at":"2015-04-26T16:26:15Z","closed_at":null,"body":"We have an api which sends json embedded in soap body. We are frequently getting this error where obj is {} (empty) and obj.Body is undefined after xml conversion in lib/client.js. Seems like an issue with xml to object conversion.\r\n\r\nUncaught Error: Cannot read property 'ConfirmationSeatBookingSoapOut' of undefined\r\nTypeError: Cannot read property 'ConfirmationSeatBookingSoapOut' of undefined\r\n    at releases/source/node_modules/soap/lib/client.js:245:24\r\n    at Request._callback (releases/source/node_modules/soap/lib/http.js:61:7)\r\n    at Request.self.callback (/releases/source/node_modules/request/request.js:121:22)\r\n    at Request.EventEmitter.emit (events.js:98:17)\r\n    at Request.<anonymous> (releases/source/node_modules/request/request.js:985:14)\r\n    at Request.EventEmitter.emit (events.js:117:20)\r\n    at IncomingMessage.<anonymous> (releases/source/node_modules/request/request.js:936:12)\r\n    at IncomingMessage.EventEmitter.emit (events.js:117:20"},"comment":{"url":"https://api.github.com/repos/vpulim/node-soap/issues/comments/96404789","html_url":"https://github.com/vpulim/node-soap/issues/625#issuecomment-96404789","issue_url":"https://api.github.com/repos/vpulim/node-soap/issues/625","id":96404789,"user":{"login":"Himanshu4","id":8264341,"avatar_url":"https://avatars.githubusercontent.com/u/8264341?v=3","gravatar_id":"","url":"https://api.github.com/users/Himanshu4","html_url":"https://github.com/Himanshu4","followers_url":"https://api.github.com/users/Himanshu4/followers","following_url":"https://api.github.com/users/Himanshu4/following{/other_user}","gists_url":"https://api.github.com/users/Himanshu4/gists{/gist_id}","starred_url":"https://api.github.com/users/Himanshu4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Himanshu4/subscriptions","organizations_url":"https://api.github.com/users/Himanshu4/orgs","repos_url":"https://api.github.com/users/Himanshu4/repos","events_url":"https://api.github.com/users/Himanshu4/events{/privacy}","received_events_url":"https://api.github.com/users/Himanshu4/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T16:26:15Z","updated_at":"2015-04-26T16:26:15Z","body":"@evanshortiss : yes, I am referring to https://github.com/vpulim/node-soap/blob/master/lib/client.js#L246 in lib/client.js. In this case, obj.Body is coming undefined."}}