git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
3 lines
17 KiB
HTML
3 lines
17 KiB
HTML
<html><head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>XML-RPC for PHP</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="XML-RPC for PHP"><link rel="next" href="ch01.html" title="Chapter 1. Introduction"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">XML-RPC for PHP</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch01.html">Next</a></td></tr></table><hr></div><div class="book" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e3"></a>XML-RPC for PHP</h1></div><div><h2 class="subtitle">version 2.2</h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Edd</span> <span class="surname">Dumbill</span></h3></div><div class="author"><h3 class="author"><span class="firstname">Gaetano</span> <span class="surname">Giunta</span></h3></div><div class="author"><h3 class="author"><span class="firstname">Miles</span> <span class="surname">Lott</span></h3></div><div class="author"><h3 class="author"><span class="firstname">Justin R.</span> <span class="surname">Miller</span></h3></div><div class="author"><h3 class="author"><span class="firstname">Andres</span> <span class="surname">Salomon</span></h3></div></div></div><div><p class="copyright">Copyright © 1999,2000,2001 Edd Dumbill, Useful Information Company</p></div><div><div class="legalnotice"><a name="d0e42"></a><p>All rights reserved.</p><p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><div class="itemizedlist"><ul type="disc"><li><p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</p></li><li><p>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p></li><li><p>Neither the name of the "XML-RPC for PHP" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</p></li></ul></div><p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="ch01.html">1. Introduction</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch01s01.html">1. Acknowledgements</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch02.html">2. What's new</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch02s01.html">1. 2.2</a></span></dt><dt><span class="sect1"><a href="ch02s02.html">2. 2.1</a></span></dt><dt><span class="sect1"><a href="ch02s03.html">3. 2.0 final</a></span></dt><dt><span class="sect1"><a href="ch02s04.html">4. 2.0 Release candidate 3</a></span></dt><dt><span class="sect1"><a href="ch02s05.html">5. 2.0 Release candidate 2</a></span></dt><dt><span class="sect1"><a href="ch02s06.html">6. 2.0 Release candidate 1</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch03.html">3. System Requirements</a></span></dt><dt><span class="chapter"><a href="ch04.html">4. Files in the distribution</a></span></dt><dt><span class="chapter"><a href="ch05.html">5. Known bugs and limitations</a></span></dt><dt><span class="chapter"><a href="ch06.html">6. Support</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch06s01.html">1. Online Support</a></span></dt><dt><span class="sect1"><a href="ch06s02.html">2. The Jellyfish Book</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch07.html">7. Class documentation</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch07s01.html">1. xmlrpcval</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch07s01.html#d0e815">1.1. Notes on types</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s01.html#d0e818">1.1.1. int</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e838">1.1.2. base64</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e843">1.1.3. boolean</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e860">1.1.4. string</a></span></dt></dl></dd><dt><span class="sect2"><a href="ch07s01.html#xmlrpcval-creation">1.2. Creation</a></span></dt><dt><span class="sect2"><a href="ch07s01.html#xmlrpcval-methods">1.3. Methods</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s01.html#d0e997">1.3.1. addScalar</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1058">1.3.2. addArray</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1109">1.3.3. addStruct</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1160">1.3.4. kindOf</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1172">1.3.5. serialize</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1184">1.3.6. scalarVal</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1199">1.3.7. scalarTyp</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1220">1.3.8. arrayMem</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1251">1.3.9. arraySize</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1269">1.3.10. structMem</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#d0e1297">1.3.11. structEach</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#structreset">1.3.12. structReset</a></span></dt><dt><span class="sect3"><a href="ch07s01.html#structmemexists">1.3.13. structMemExists</a></span></dt></dl></dd></dl></dd><dt><span class="sect1"><a href="ch07s02.html">2. xmlrpcmsg</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch07s02.html#d0e1373">2.1. Creation</a></span></dt><dt><span class="sect2"><a href="ch07s02.html#d0e1427">2.2. Methods</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s02.html#d0e1430">2.2.1. addParam</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1452">2.2.2. getNumParams</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1464">2.2.3. getParam</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1483">2.2.4. method</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1503">2.2.5. parseResponse</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1529">2.2.6. parseResponseFile</a></span></dt><dt><span class="sect3"><a href="ch07s02.html#d0e1555">2.2.7. serialize</a></span></dt></dl></dd></dl></dd><dt><span class="sect1"><a href="ch07s03.html">3. xmlrpc_client</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch07s03.html#d0e1572">3.1. Creation</a></span></dt><dt><span class="sect2"><a href="ch07s03.html#d0e1657">3.2. Methods</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s03.html#xmlrpc-client-send">3.2.1. send</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#multicall">3.2.2. multicall</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e1872">3.2.3. setAcceptedCompression</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e1894">3.2.4. setCaCertificate</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e1944">3.2.5. setCertificate</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e1981">3.2.6. setCookie</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2023">3.2.7. setCredentials</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2053">3.2.8. setDebug</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2076">3.2.9. setKey</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2103">3.2.10. setProxy</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2157">3.2.11. setRequestCompression</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2176">3.2.12. setSSLVerifyHost</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2194">3.2.13. setSSLVerifyPeer</a></span></dt></dl></dd><dt><span class="sect2"><a href="ch07s03.html#d0e2218">3.3. Variables</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s03.html#d0e2223">3.3.1. no_multicall</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#d0e2228">3.3.2. request_charset_encoding</a></span></dt><dt><span class="sect3"><a href="ch07s03.html#return-type">3.3.3. return_type</a></span></dt></dl></dd></dl></dd><dt><span class="sect1"><a href="ch07s04.html">4. xmlrpcresp</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch07s04.html#d0e2262">4.1. Creation</a></span></dt><dt><span class="sect2"><a href="ch07s04.html#d0e2308">4.2. Methods</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s04.html#d0e2311">4.2.1. faultCode</a></span></dt><dt><span class="sect3"><a href="ch07s04.html#d0e2321">4.2.2. faultString</a></span></dt><dt><span class="sect3"><a href="ch07s04.html#d0e2334">4.2.3. value</a></span></dt><dt><span class="sect3"><a href="ch07s04.html#d0e2364">4.2.4. serialize</a></span></dt></dl></dd></dl></dd><dt><span class="sect1"><a href="ch07s05.html">5. xmlrpc_server</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch07s05.html#d0e2386">5.1. Method handler functions</a></span></dt><dt><span class="sect2"><a href="ch07s05.html#d0e2422">5.2. The dispatch map</a></span></dt><dt><span class="sect2"><a href="ch07s05.html#signatures">5.3. Method signatures</a></span></dt><dt><span class="sect2"><a href="ch07s05.html#d0e2508">5.4. Delaying the server response</a></span></dt><dt><span class="sect2"><a href="ch07s05.html#d0e2538">5.5. Modifying the server behaviour</a></span></dt><dd><dl><dt><span class="sect3"><a href="ch07s05.html#d0e2543">5.5.1. setDebug()</a></span></dt><dt><span class="sect3"><a href="ch07s05.html#d0e2548">5.5.2. allow_system_funcs</a></span></dt><dt><span class="sect3"><a href="ch07s05.html#d0e2559">5.5.3. compress_response</a></span></dt><dt><span class="sect3"><a href="ch07s05.html#d0e2569">5.5.4. response_charset_encoding</a></span></dt></dl></dd><dt><span class="sect2"><a href="ch07s05.html#d0e2578">5.6. Fault reporting</a></span></dt><dt><span class="sect2"><a href="ch07s05.html#d0e2695">5.7. 'New style' servers</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch08.html">8. Global variables</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch08s01.html">1. "Constant" variables</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch08s01.html#d0e2729">1.1. $xmlrpcerruser</a></span></dt><dt><span class="sect2"><a href="ch08s01.html#d0e2739">1.2. $xmlrpcI4, $xmlrpcInt, $xmlrpcBoolean, $xmlrpcDouble, $xmlrpcString, $xmlrpcDateTime, $xmlrpcBase64 , $xmlrpcArray, $xmlrpcStruct, $xmlrpcValue, $xmlrpcNull</a></span></dt><dt><span class="sect2"><a href="ch08s01.html#d0e2746">1.3. $xmlrpcTypes, $xmlrpc_valid_parents, $xmlrpcerr, $xmlrpcstr, $xmlrpcerrxml, $xmlrpc_backslash, $_xh, $xml_iso88591_Entities, $xmlEntities, $xmlrpcs_capabilities</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch08s02.html">2. Variables whose value can be modified</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch08s02.html#xmlrpc-defencoding">2.1. xmlrpc_defencoding</a></span></dt><dt><span class="sect2"><a href="ch08s02.html#d0e2776">2.2. xmlrpc_internalencoding</a></span></dt><dt><span class="sect2"><a href="ch08s02.html#d0e2789">2.3. xmlrpcName</a></span></dt><dt><span class="sect2"><a href="ch08s02.html#d0e2799">2.4. xmlrpcVersion</a></span></dt><dt><span class="sect2"><a href="ch08s02.html#d0e2809">2.5. xmlrpc_null_extension</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch09.html">9. Helper functions</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch09s01.html">1. Date functions</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch09s01.html#iso8601encode">1.1. iso8601_encode</a></span></dt><dt><span class="sect2"><a href="ch09s01.html#iso8601decode">1.2. iso8601_decode</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch09s02.html">2. Easy use with nested PHP values</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch09s02.html#phpxmlrpcdecode">2.1. php_xmlrpc_decode</a></span></dt><dt><span class="sect2"><a href="ch09s02.html#phpxmlrpcencode">2.2. php_xmlrpc_encode</a></span></dt><dt><span class="sect2"><a href="ch09s02.html#d0e3056">2.3. php_xmlrpc_decode_xml</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch09s03.html">3. Automatic conversion of php functions into xmlrpc methods (and vice versa)</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch09s03.html#d0e3092">3.1. wrap_xmlrpc_method</a></span></dt><dt><span class="sect2"><a href="ch09s03.html#wrap_php_function">3.2. wrap_php_function</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch09s04.html">4. Functions removed from the library</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch09s04.html#xmlrpcdecode">4.1. xmlrpc_decode</a></span></dt><dt><span class="sect2"><a href="ch09s04.html#xmlrpcencode">4.2. xmlrpc_encode</a></span></dt></dl></dd><dt><span class="sect1"><a href="ch09s05.html">5. Debugging aids</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch09s05.html#d0e3319">5.1. xmlrpc_debugmsg</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch10.html">10. Reserved methods</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch10s01.html">1. system.getCapabilities</a></span></dt><dt><span class="sect1"><a href="ch10s02.html">2. system.listMethods</a></span></dt><dt><span class="sect1"><a href="ch10s03.html">3. system.methodSignature</a></span></dt><dt><span class="sect1"><a href="ch10s04.html">4. system.methodHelp</a></span></dt><dt><span class="sect1"><a href="ch10s05.html">5. system.multicall</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch11.html">11. Examples</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch11s01.html">1. XML-RPC client: state name query</a></span></dt><dt><span class="sect1"><a href="ch11s02.html">2. Executing a multicall call</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch12.html">12. Frequently Asked Questions</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch12s01.html">1. How to send XML as payload of a method call</a></span></dt><dt><span class="sect1"><a href="ch12s02.html">2. Is there any limitation on the size of the requests / responses that can be successfully sent?</a></span></dt><dt><span class="sect1"><a href="ch12s03.html">3. My server (client) returns an error whenever the client (server) returns accented characters</a></span></dt><dt><span class="sect1"><a href="ch12s04.html">4. My php error log is getting full of "deprecated" errors on different lines of xmlrpc.inc and xmlrpcs.inc</a></span></dt><dt><span class="sect1"><a href="ch12s05.html">5. How to enable long-lasting method calls</a></span></dt><dt><span class="sect1"><a href="ch12s06.html">6. My client returns "XML-RPC Fault #2: Invalid return payload: enable debugging to examine incoming payload": what should I do?</a></span></dt><dt><span class="sect1"><a href="ch12s07.html">7. How can I save to a file the xml of the xmlrpc responses received from servers?</a></span></dt></dl></dd><dt><span class="appendix"><a href="apa.html">A. Integration with the PHP xmlrpc extension</a></span></dt><dt><span class="appendix"><a href="apb.html">B. Substitution of the PHP xmlrpc extension</a></span></dt><dt><span class="appendix"><a href="apc.html">C. 'Enough of xmlrpcvals!': new style library usage</a></span></dt><dt><span class="appendix"><a href="apd.html">D. Usage of the debugger</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> Chapter 1. Introduction</td></tr></table></div></body></html> |