瀏覽代碼

[MANUAL] English:

- manual fixes

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19614 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 年之前
父節點
當前提交
b75ab12049
共有 1 個文件被更改,包括 36 次插入20 次删除
  1. 36 20
      documentation/manual/en/module_specs/Zend_XmlRpc_Server.xml

+ 36 - 20
documentation/manual/en/module_specs/Zend_XmlRpc_Server.xml

@@ -66,7 +66,6 @@ echo $server->handle();
         <title>Anatomy of a webservice</title>
         <title>Anatomy of a webservice</title>
 
 
         <sect3 id="zend.xmlrpc.server.anatomy.general">
         <sect3 id="zend.xmlrpc.server.anatomy.general">
-
             <title>General considerations</title>
             <title>General considerations</title>
 
 
             <para>
             <para>
@@ -91,8 +90,7 @@ echo $server->handle();
             </para>
             </para>
         </sect3>
         </sect3>
 
 
-        <sect3 id="zend.xmlrpc.server.anatomy.general">
-
+        <sect3 id="zend.xmlrpc.server.anatomy.expose">
             <title>What to expose?</title>
             <title>What to expose?</title>
 
 
             <para>
             <para>
@@ -104,8 +102,9 @@ echo $server->handle();
                 the best webservice calls are those not happening. Therefore
                 the best webservice calls are those not happening. Therefore
                 service calls need to be more coarse-grained than usual business
                 service calls need to be more coarse-grained than usual business
                 logic is. Often an additional layer in front of your business
                 logic is. Often an additional layer in front of your business
-                objects makes sense. This layer is sometimes referred to as
-                <ulink url="http://martinfowler.com/eaaCatalog/remoteFacade.html">Remote Facade.</ulink>.
+                objects makes sense. This layer is sometimes referred to as <ulink
+                    url="http://martinfowler.com/eaaCatalog/remoteFacade.html">Remote
+                    Facade</ulink>.
                 Such a service layer adds a coarse grained interface on top of
                 Such a service layer adds a coarse grained interface on top of
                 your business logic and groups verbose operations into smaller
                 your business logic and groups verbose operations into smaller
                 ones.
                 ones.
@@ -314,21 +313,25 @@ Zend_XmlRpc_Server_Fault::attachFaultException('My_Project_Exception');
 
 
     <sect2 id="zend.xmlrpc.server.caching">
     <sect2 id="zend.xmlrpc.server.caching">
         <title>Caching Server Definitions Between Requests</title>
         <title>Caching Server Definitions Between Requests</title>
+
         <para>
         <para>
             Attaching many classes to an <acronym>XML-RPC</acronym> server instance can utilize a
             Attaching many classes to an <acronym>XML-RPC</acronym> server instance can utilize a
             lot of resources; each class must introspect using the Reflection
             lot of resources; each class must introspect using the Reflection
             <acronym>API</acronym> (via <classname>Zend_Server_Reflection</classname>), which in
             <acronym>API</acronym> (via <classname>Zend_Server_Reflection</classname>), which in
             turn generates a list of all possible method signatures to provide to the server class.
             turn generates a list of all possible method signatures to provide to the server class.
         </para>
         </para>
+
         <para>
         <para>
             To reduce this performance hit somewhat, <classname>Zend_XmlRpc_Server_Cache</classname>
             To reduce this performance hit somewhat, <classname>Zend_XmlRpc_Server_Cache</classname>
             can be used to cache the server definition between requests. When
             can be used to cache the server definition between requests. When
             combined with <methodname>__autoload()</methodname>, this can greatly increase
             combined with <methodname>__autoload()</methodname>, this can greatly increase
             performance.
             performance.
         </para>
         </para>
+
         <para>
         <para>
             An sample usage follows:
             An sample usage follows:
         </para>
         </para>
+
         <programlisting language="php"><![CDATA[
         <programlisting language="php"><![CDATA[
 function __autoload($class)
 function __autoload($class)
 {
 {
@@ -352,6 +355,7 @@ if (!Zend_XmlRpc_Server_Cache::get($cacheFile, $server)) {
 
 
 echo $server->handle();
 echo $server->handle();
 ]]></programlisting>
 ]]></programlisting>
+
         <para>
         <para>
             The above example attempts to retrieve a server definition from
             The above example attempts to retrieve a server definition from
             <property>xmlrpc.cache</property> in the same directory as the script. If unsuccessful,
             <property>xmlrpc.cache</property> in the same directory as the script. If unsuccessful,
@@ -363,11 +367,13 @@ echo $server->handle();
 
 
     <sect2 id="zend.xmlrpc.server.use">
     <sect2 id="zend.xmlrpc.server.use">
         <title>Usage Examples</title>
         <title>Usage Examples</title>
+
         <para>
         <para>
             Below are several usage examples, showing the full spectrum of
             Below are several usage examples, showing the full spectrum of
             options available to developers. Usage examples will each build
             options available to developers. Usage examples will each build
             on the previous example provided.
             on the previous example provided.
         </para>
         </para>
+
         <example id="zend.xmlrpc.server.use.attach-function">
         <example id="zend.xmlrpc.server.use.attach-function">
             <title>Basic Usage</title>
             <title>Basic Usage</title>
 
 
@@ -419,6 +425,7 @@ echo $server->handle();
                 methods and passing arguments to its methods. This can be used to specify certain
                 methods and passing arguments to its methods. This can be used to specify certain
                 defaults when registering service classes.
                 defaults when registering service classes.
             </para>
             </para>
+
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 class Services_PricingService
 class Services_PricingService
 {
 {
@@ -551,9 +558,8 @@ echo $server->handle();
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>
 
 
-        <title>Utilizing custom request and response objects</title>
-
         <example id="zend.xmlrpc.server.use.custom-request-object">
         <example id="zend.xmlrpc.server.use.custom-request-object">
+            <title>Utilizing custom request and response objects</title>
 
 
             <para>
             <para>
                 Some use cases require to utilize a custom request object.
                 Some use cases require to utilize a custom request object.
@@ -593,6 +599,8 @@ echo $server->handle($request);
         </example>
         </example>
 
 
         <example id="zend.xmlrpc.server.use.custom-response-object">
         <example id="zend.xmlrpc.server.use.custom-response-object">
+            <title>Specifying a custom response class</title>
+
             <para>
             <para>
                 The example below illustrates specifying a custom response class
                 The example below illustrates specifying a custom response class
                 for the returned response.
                 for the returned response.
@@ -623,11 +631,10 @@ $server->setResponseClass('Services_Response');
 echo $server->handle($request);
 echo $server->handle($request);
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>
-     </sect2>
-
-     <sect2 id="zend.xmlrpc.server.performance">
+    </sect2>
 
 
-         <title>Performance optimization</title>
+    <sect2 id="zend.xmlrpc.server.performance">
+        <title>Performance optimization</title>
 
 
         <example id="zend.xmlrpc.server.performance.caching">
         <example id="zend.xmlrpc.server.performance.caching">
             <title>Cache server definitions between requests</title>
             <title>Cache server definitions between requests</title>
@@ -664,6 +671,7 @@ $server->setResponseClass('Services_Response');
 
 
 echo $server->handle($request);
 echo $server->handle($request);
 ]]></programlisting>
 ]]></programlisting>
+
             <note>
             <note>
                 The server cache file should be located outside the document root.
                 The server cache file should be located outside the document root.
             </note>
             </note>
@@ -701,18 +709,26 @@ $server = new Zend_XmlRpc_Server();
 ]]></programlisting>
 ]]></programlisting>
 
 
             <note>
             <note>
-                Performance is determined by a lot of parameters and
-                benchmarks only apply for the specific test case. Differences
-                come from PHP version, installed extensions, webserver and
-                operating system just to name a few. Please make sure to
-                benchmark your application on your own and decide which
-                generator to use based on <emphasis>your</emphasis> numbers.
+                <title>Benchmark your application</title>
+
+                <para>
+                    Performance is determined by a lot of parameters and
+                    benchmarks only apply for the specific test case. Differences
+                    come from PHP version, installed extensions, webserver and
+                    operating system just to name a few. Please make sure to
+                    benchmark your application on your own and decide which
+                    generator to use based on <emphasis>your</emphasis> numbers.
+                </para>
             </note>
             </note>
 
 
             <note>
             <note>
-                This optimization makes sense for the client side too. Just
-                select the alternate <acronym>XML</acronym> generator before
-                doing any work with <classname>Zend_XmlRpc_Client</classname>.
+                <title>Benchmark your client</title>
+
+                <para>
+                    This optimization makes sense for the client side too. Just
+                    select the alternate <acronym>XML</acronym> generator before
+                    doing any work with <classname>Zend_XmlRpc_Client</classname>.
+                </para>
             </note>
             </note>
 
 
         </example>
         </example>