Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

convert xsd:boolean to boolean #90

Merged
merged 1 commit into from

2 participants

@sastan

This patch allows conversion of xsd:boolean to boolean.

@milewise
Collaborator

thanks for all your patches

@milewise milewise merged commit 406d0bb into vpulim:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 17, 2012
  1. @sastan

    convert xsd:boolean to boolean

    sastan authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/wsdl.js
View
2  lib/wsdl.js
@@ -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 {
Something went wrong with that request. Please try again.