NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Boolean type


Joined: 22 Sep 2003
Posts: 10
Location: Spain
Reply with quote
I think this is a very simple question....

I need to send a boolean parameter in the format 'true' or 'false'... (it's the format accepted in my SOAP server)
When I did it, in the xml request appears a boolean tag with 1 or 0 value instead true or false...
How can I do to send a xml request with true or false values instead 1 or 0?

Thanks
View user's profileFind all posts by nunezjjSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
try to change following lines in XMLSchema::serializeType method:

if ($uqType == 'boolean' && !$value) {
$value = 0;
} elseif ($uqType == 'boolean') {
$value = 1;
}

to

if ($uqType == 'boolean' && !$value) {
$value = "false";
} elseif ($uqType == 'boolean') {
$value = "true";
}
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Thanks


Joined: 22 Sep 2003
Posts: 10
Location: Spain
Reply with quote
Thanks for your help Very Happy
It works fine now with this change

Bye2
View user's profileFind all posts by nunezjjSend private message
Boolean type
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic