Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

convert xsd:integer to int
  • Loading branch information...
commit 2b4cb95cecc1f2702b36ceab5e8cb5b647638fdf 2 parents 406d0bb + 9dc08e3
@milewise milewise authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wsdl.js
View
2  lib/wsdl.js
@@ -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';
Please sign in to comment.
Something went wrong with that request. Please try again.