Re: How to parse the xml response returned from send
Gaetano Giunta <[email protected]> Wed, 22 Aug 2007 17:15:38 +0200
| Newsgroups | gmane.comp.php.xml-rpc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------040503090009000405070403 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------040503090009000405070403 Content-Type: message/rfc822; name="Re: [phpxmlrpc] How to parse the xml response returned from send.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="Re: [phpxmlrpc] How to parse the xml response returned from "; filename*1="send.eml" X-Account-Key: account2 X-Mozilla-Keys: Received: by 10.64.209.3 with HTTP; Tue, 21 Aug 2007 08:04:28 -0700 (PDT) Message-ID: <[email protected]> Date: Tue, 21 Aug 2007 17:04:28 +0200 From: "Gaetano Giunta" <[email protected]> To: "Bosky, Dave" <[email protected]> Subject: Re: [phpxmlrpc] How to parse the xml response returned from send In-Reply-To: <[email protected]> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27234_26323066.1187708668731" References: <[email protected]> Delivered-To: [email protected] ------=_Part_27234_26323066.1187708668731 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline just check out the examples in the distribution or the manual, there is plenty of code tht does that. $resp = $client->send(...) if (!$resp->faultcode()) $decoded_responde = php_xmlrpc_decode($resp->value()); On 8/21/07, Bosky, Dave <[email protected]> wrote: > > After I execute the send method and how can I parse the response to > check if errors occurred or extract specific values? > > I can't really find an example of how to do this. > > Everything works great but I need to extract values from the response. > > Can the response be converted to a PHP array and extracted? > > Thanks, > > Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax: > 843-369-7178 | [email protected] > > ********************************************************************** > HTC Disclaimer: The information contained in this message may be > privileged and confidential and protected from disclosure. If the reader of > this message is not the intended recipient, or an employee or agent > responsible for delivering this message to the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify us immediately by replying to the > message and deleting it from your computer. Thank you. > ********************************************************************** > > _______________________________________________ > phpxmlrpc mailing list > [email protected] > http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc > ------=_Part_27234_26323066.1187708668731 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline just check out the examples in the distribution or the manual, there is plenty of code tht does that.<br><br>$resp = $client->send(...)<br>if (!$resp->faultcode())<br> $decoded_responde = php_xmlrpc_decode($resp->value()); <br><br><div><span class="gmail_quote">On 8/21/07, <b class="gmail_sendername">Bosky, Dave</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> After I execute the send method and how can I parse the response to<br>check if errors occurred or extract specific values?<br><br>I can't really find an example of how to do this.<br><br>Everything works great but I need to extract values from the response. <br><br>Can the response be converted to a PHP array and extracted?<br><br>Thanks,<br><br>Dave Bosky | Information Services | HTC | direct: 843-369-8613 | fax:<br>843-369-7178 | <a href="mailto:[email protected]">[email protected] </a><br><br>**********************************************************************<br>HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. <br>**********************************************************************<br><br>_______________________________________________<br>phpxmlrpc mailing list<br><a href="mailto:[email protected]">[email protected] </a><br><a href="http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc">http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc</a><br></blockquote></div><br> ------=_Part_27234_26323066.1187708668731-- --------------040503090009000405070403 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ phpxmlrpc mailing list [email protected] http://lists.usefulinc.com/cgi-bin/mailman/listinfo/phpxmlrpc --------------040503090009000405070403--