Re: Mapping incoming object to PHP class

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

 



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

-- 
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