Permalink
Browse files

convert xsd:integer to int

  • Loading branch information...
1 parent 8dd03b0 commit 9dc08e3c2f7efba85579b0d1281127c37e789608 @sastan sastan committed Sep 17, 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 === 'dateTime') {
value = new Date(text);

0 comments on commit 9dc08e3

Please sign in to comment.