Re: Mapping incoming object to PHP class

From: Date: Sun, 01 Jan 2006 18:45:45 +0000
Subject: Re: Mapping incoming object to PHP class
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-2065@lists.php.net to get a copy of this message
On Sat, 31 Dec 2005 13:23:56 +0200, Ville Mattila wrote: > I'd like to send a CustomerEntry object to the PHP5 SoapServer and call > the CustomerEntry->SaveToDb() function to save this customer information > to the database. With proper WSDL definitions, I am able to get > CustomerEntry properties available in the client side (at .NET framework) > and can set them and build a CustomerEntry object. Sending the object in > an input message to SoapServer works and data moves, but the object is > typed as stdClass at PHP - even I define a classmap for SoapServer. Is > there any possibility to map or copy the incoming object to an existing > PHP class to get all class functions available? Have you tried static casting? $foe = new Foe; foe = (Foe) $SoapServer->getCustomerEntry(); -- Hilsen/Regards Michael Rasmussen http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917

« previous php.soap (#2065) next »