Problem with boolean type |
|
Hi all,
I have a similar problem to this one: http://bugs.php.net/bug.php?id=33753&edit=1. My environment is the following: - Web service server with access only through a WSDL - PHP client using nusoap - soap value sent from client to server is a complex type with int, string and boolean values For ex. function mySoapVal($name, $value) { return new soapval($name, $name , $value, false , MY_NAMESPACE); } $param = array('searchCriteria' => array('crit1' => mySoapVal('crit1', true), 'crit2' => mySoapVal('crit2', 'a search string'), 'crit3' => mySoapVal('crit3', 1234)); $soapclient->call('searchThis', $param); If the value for crit1 is true, everything is fine, the server gets a boolean true and gives data back. If the value for crit1 is false, I get the following message: "soap:Server: Invalid boolean value: ". Some tests: - changing mySoapVal() so that I can give the type new soapval($name, $type, $value, false, MY_NAMESPACE), and setting $type to 'boolean' or 'xsd:boolean' gives me the following message from the server: "wsdl error: http://mymyserver:boolean (boolean) is not a supported type." or "[...]xsd:boolean (boolean) is not a supported type." - with a local Java server, I can see that crit1=false on the PHP client side gives null on the server side So my question is: how can I do on the PHP client side to transfer a boolean FALSE value to the server? (I have no access/control on the server.) Thanks for your help. |
||||||||||||
|
Problem with boolean type |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by