Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8532499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:43:46+00:00 2026-06-11T09:43:46+00:00

i am using the PHP XML RPC Class from http://phpxmlrpc.sourceforge.net . I created a

  • 0

i am using the PHP XML RPC Class from http://phpxmlrpc.sourceforge.net.
I created a Client and send my method with a struct/array to the server and i got some response, but i don’t have a clue how to handle the response to work with an foreach() or get the responded values directly.

Maybe some of you may help me with that?

My Code:

include("../../lib/xmlrpc.inc");
$GLOBALS['xmlrpc_internalencoding'] = 'UTF-8';
$client=new xmlrpc_client("/xmlrpc.php", "www.domain.de", 443);
$client->setDebug(0);
$auth= new xmlrpcval(
    array(
    "username" => new xmlrpcval("user"),
    "password" => new xmlrpcval('pw'),
), "struct");

$search = new xmlrpcval(
    array(
    'EMAIL'=> new xmlrpcval('info@domain.de')
),'struct');

$message=new xmlrpcmsg('doProfileFindBy',
    array(
        $auth,
        new xmlrpcval(964296, "int"),
        $search

    ),'struct'
);

$r = $client->send($message, 0, 'https');
echo '<pre>';
var_dump($r);
echo '</pre>';

I do receive a response with the Data i am looking for but it is not formatted to use it as an array or so.

Hope someone can help me with that.
Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:43:47+00:00Added an answer on June 11, 2026 at 9:43 am

    Based on Your var_dump and on the documentation to the XML RPC class http://phpxmlrpc.sourceforge.net/doc-2/ch07s04.html You should do something like this:

    $r = $client->send($message, 0, 'https');
    $value = $r->value();
    

    Then regarding to http://phpxmlrpc.sourceforge.net/doc-2/ch07.html and the structure of the response You should be able to parse out the values You need. The structure of Your response is kinda complicated, containing object that has a property of array type that contains another object with array property and again and again until there is array of values You probably want to parse out…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Zend XML-RPC Client library to send XML requests to another non-PHP XML
I am using the php XML_Serializer library from Pear. http://pear.php.net/manual/en/package.xml.xml-serializer.php I would like to
I am using the Zend library's XML RPC Client in a PHP application to
Currently I'm creating my XML-RPC using (xml-rpc.net) interfaces statically with the following statement: [XmlRpcUrl(http://dillieodigital.wordpress.com/xmlrpc.php)]
I'm using PHP to echo out 50 video id's from an XML file. I
I have an XML file which I need to parse using PHP and send
I am trying to load a xml document I created using PHP and DOM
I am using SoapClient to send some data from a PHP site to a
I have something like: $client = new Zend_XmlRpc_Client('<XML-RPC URL>'); $result = $client->call('<method name>', array(
I am using php's simple xml and xpath to parse an rdf xml file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.