Re: [SOAP] changes to pear::soap

From: Date: Tue, 25 Jun 2002 17:05:10 +0000
Subject: Re: [SOAP] changes to pear::soap
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-146@lists.php.net to get a copy of this message
You couldn't use objects at all prior to the last update. Structs were equivelant to hashes. So <SOAPStruct> <varString>xxx</varString <varInt>123</varInt> <varFloat>1.1</varFloat> </SOAPStruct> was turned into a hash $soapstruct['varString']='xxx'; etc. Now it is $soapstruct->varString='xxx'; pear::soap doesn't handle hashes or maps at this time. Shane Brad LaFountain wrote:
So you mean that if you $ret->some_var = 1; $ret->some_other_var = 2; return ret; would have returned a hashtable? And just curious how does pear::soap return hashtables? Apache Style or MS Style? - brad --- Shane Caraveo <shane@caraveo.com> wrote:
Hi everyone, In order to make pear::soap operate closer to php-soap I have changed it's behaviour to returning objects for structs rather than hashes. This moves towards being able to create a wrapper object that will allow for easy transition from pear::soap to php-soap. I've also added the ability to serialize objects into soap messages. Since this is a significant change, the old behaviour is depricated, however can still be used by setting the global $SOAP_OBJECT_STRUCT = FALSE; after including the soap files in your script. If you want to use the current CVS but not change code, you must set that variable to false. Regards, Shane -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
__________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com


« previous php.soap (#146) next »