|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- EN-Revision: 21740 -->
|
|
|
+<!-- EN-Revision: 24249 -->
|
|
|
<!-- Reviewed: no -->
|
|
|
<sect1 id="zend.xmlrpc.server">
|
|
|
<title>Zend_XmlRpc_Server</title>
|
|
|
@@ -434,7 +434,7 @@ $server->setClass('Services_PricingService',
|
|
|
<para>
|
|
|
The arguments passed at <methodname>setClass()</methodname> at server construction time are
|
|
|
injected into the method call <command>pricing.calculate()</command> on remote invokation.
|
|
|
- In the example above, only the argument <code>$purchaseId</code> is expected from the client.
|
|
|
+ In the example above, only the argument <varname>$purchaseId</varname> is expected from the client.
|
|
|
</para>
|
|
|
</example>
|
|
|
|
|
|
@@ -693,24 +693,24 @@ echo $server->handle($request);
|
|
|
<para>
|
|
|
<classname>Zend_XmlRpc_Server</classname> uses
|
|
|
<classname>DOMDocument</classname> of <acronym>PHP</acronym>
|
|
|
- extension <code>ext/dom</code> to generate it's
|
|
|
- <acronym>XML</acronym> output. While <code>ext/dom</code> is
|
|
|
+ extension <emphasis>ext/dom</emphasis> to generate it's
|
|
|
+ <acronym>XML</acronym> output. While <emphasis>ext/dom</emphasis> is
|
|
|
available on a lot of hosts it is is not exactly the fastest.
|
|
|
Benchmarks have shown, that <classname>XMLWriter</classname>
|
|
|
- from <code>ext/xmlwriter</code> performs better.
|
|
|
+ from <emphasis>ext/xmlwriter</emphasis> performs better.
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- If <code>ext/xmlwriter</code> is available on your host, you can
|
|
|
+ If <emphasis>ext/xmlwriter</emphasis> is available on your host, you can
|
|
|
select a the <classname>XMLWriter</classname>-based generator
|
|
|
to leaverage the performance differences.
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
require_once 'Zend/XmlRpc/Server.php';
|
|
|
-require_once 'Zend/XmlRpc/Generator/XMLWriter.php';
|
|
|
+require_once 'Zend/XmlRpc/Generator/XmlWriter.php';
|
|
|
|
|
|
-Zend_XmlRpc_Value::setGenerator(new Zend_XmlRpc_Generator_XMLWriter());
|
|
|
+Zend_XmlRpc_Value::setGenerator(new Zend_XmlRpc_Generator_XmlWriter());
|
|
|
|
|
|
$server = new Zend_XmlRpc_Server();
|
|
|
...
|