Re: PEAR xml_rpc => send an php object
| From: | Jean-Lou Dupont | Date: | Wed, 09 Apr 2008 16:50:54 +0000 |
| Subject: | Re: PEAR xml_rpc => send an php object | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28775@lists.php.net to get a copy of this message | ||
Why don't you "serialize" the object in question?
jld.
On Wed, Apr 9, 2008 at 12:18 PM, P.Schmiel <schmiel@cybernox.net> wrote:
> Hi,
>
> is there a posibility to convert an object to an XML_RPC_Value?
> I noticed the "struct" type for XML_RPC_Value, but a struct can only
> contain variables encapsulated in XML_RPC_Values too
>
> Quote from documentation:
> ---
> The fourth constructor form can be used to compose complex XML-RPC values.
> The first argument is either a simple array in the case of an XML-RPC
> *array* or an associative array in the case of a *struct*. The elements of
> the array /must be *XML_RPC_Value* objects themselves/.
> ---
>
> What I need is a transparent way where I can just take an object and pass
> it to the xml-rpc client.
>
> Thanks
>
> Pascal
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
http://jldupont.com
http://blog.jldupont.com
http://photos.jldupont.com
http://news.jldupont.com