Skip to content

Commit

Permalink
Merge pull request #89 from sastan/convert-integer-type-to-int
Browse files Browse the repository at this point in the history
convert xsd:integer to int
  • Loading branch information
milewise committed Sep 18, 2012
2 parents 406d0bb + 9dc08e3 commit 2b4cb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wsdl.js
Expand Up @@ -768,7 +768,7 @@ WSDL.prototype.xmlToObject = function(xml) {
var top = stack[stack.length-1];
var name = splitNSName(top.schema).name,
value;
if (name === 'int') {
if (name === 'int' || name === 'integer') {
value = parseInt(text, 10);
} else if (name === 'bool' || name === 'boolean') {
value = text.toLowerCase() === 'true' || text === '1';
Expand Down

0 comments on commit 2b4cb95

Please sign in to comment.