[UPHPU] SoapClient woes

Scott Mattocks scott at crisscott.com
Wed Oct 22 11:43:44 MDT 2008


Beau Scott wrote:
> A colleague was able to make a reallllllly dirt workaround in modifying the
> actual XML of the request to include the nil property, but come on... there
> has to be an easier method
> // Null param working, but very cumbersome
> $cl->getCatgories (new SoapVar('<ns1:parentId xsi:nil="true"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />', XSD_ANYXML), "1")

This is one of the fun things about strongly typed languages. We 
recently had to modify our WSDL to allow Java clients to use our web 
service. Java clients are very picky about types. If the WSDL says 
string, it will be string regardless of what you send.

-- 
Scott Mattocks
Author: Pro PHP-GTK
http://www.crisscott.com


More information about the UPHPU mailing list