Permalink
Browse files

Merge pull request #89 from sastan/convert-integer-type-to-int

convert xsd:integer to int
  • Loading branch information...
2 parents 406d0bb + 9dc08e3 commit 2b4cb95cecc1f2702b36ceab5e8cb5b647638fdf @milewise milewise committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wsdl.js
View
@@ -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';

0 comments on commit 2b4cb95

Please sign in to comment.