Permalink
Browse files

Merge pull request #90 from sastan/convert-boolean

convert xsd:boolean to boolean
  • Loading branch information...
2 parents 91d421a + cd93538 commit 406d0bbfea6d0d87abfb5ac6c86771048c646c9b @milewise milewise committed Sep 18, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/wsdl.js
View
@@ -770,6 +770,8 @@ WSDL.prototype.xmlToObject = function(xml) {
value;
if (name === 'int') {
value = parseInt(text, 10);
+ } else if (name === 'bool' || name === 'boolean') {
+ value = text.toLowerCase() === 'true' || text === '1';
} else if (name === 'dateTime') {
value = new Date(text);
} else {

0 comments on commit 406d0bb

Please sign in to comment.