Re: PEAR xml_rpc => send an php object

From: Date: Wed, 09 Apr 2008 16:53:21 +0000
Subject: Re: PEAR xml_rpc => send an php object
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28776@lists.php.net to get a copy of this message
I can't transfer it serialized because the server have to applie some filters on the received XML. Thats why I can't use serialize() or some sort of encoding. - Pascal Jean-Lou Dupont schrieb:
Why don't you "serialize" the object in question? jld. On Wed, Apr 9, 2008 at 12:18 PM, P.Schmiel <schmiel@cybernox.net <mailto: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


« previous php.pear.general (#28776) next »