Expand Boolean from '1' to 'true' in PHP 5 SOAP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm working on a SOAP client that is talking to a SOAP server that does not
accept '1' or '0' for true and false boolean values.  The SOAP client MUST
send these values as the words 'true' or 'false'.  How does one get PHP 5's
SOAP extension to send boolean values in this manner?

I suspect that this is what is happening: The server's WSDL specifies that
the values for the field I am working with is a boolean value so PHP is auto
magically sending what it understands boolean to mean... How do I get around
this?

Thanks!

Gil


Code snippets:

What I set in my array:

'RequestImmediate' => true,

What my SOAP client sends:

<ns1:RequestImmediate>1</ns1:RequestImmediate>

What their server wants:

<ns1:RequestImmediate>true</ns1:RequestImmediate>

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux