在得到XMLRPC服务器的响应后,如何在第三方网站上显示XMLRPC客户端的数组值?

时间:2013-04-30 07:29:58

标签: php codeigniter-2 xml-rpc xmlrpcclient

我使用Codeigniter创建了一个XMLRPC Web服务。我正确地得到了XMLRPC服务器的响应。但我想在第三方网站上列出响应值。我得到响应作为数组值。我在下面添加了XMLRPC客户端结果,

示例网址:http://music-shop.saas.com/xmlrpc_client/listGeneres - 我在此页面中获得XMLRPC响应(仅限localhost网址)。

结果是:

Array
(
    [0] => Array
        (
            [id] => 8
            [parent_id] => 0
            [cart_id] => 2
            [name] => Blues
            [slug] => blues
            [route_id] => 48
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

    [1] => Array
        (
            [id] => 9
            [parent_id] => 0
            [cart_id] => 2
            [name] => Country
            [slug] => country
            [route_id] => 49
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

    [2] => Array
        (
            [id] => 10
            [parent_id] => 0
            [cart_id] => 2
            [name] => Jazz
            [slug] => jazz
            [route_id] => 50
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

    [3] => Array
        (
            [id] => 11
            [parent_id] => 0
            [cart_id] => 2
            [name] => Hip hop
            [slug] => hip-hop
            [route_id] => 51
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

    [4] => Array
        (
            [id] => 12
            [parent_id] => 0
            [cart_id] => 2
            [name] => Audio CDs
            [slug] => audio-cds
            [route_id] => 52
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

    [5] => Array
        (
            [id] => 13
            [parent_id] => 0
            [cart_id] => 2
            [name] => Clothes
            [slug] => clothes
            [route_id] => 53
            [description] => 
            [excerpt] => 
            [sequence] => 0
        )

)

如何从第三方网站的上述网址获取此数组值?我想将数组值废弃到新站点。

提前致谢。

0 个答案:

没有答案