You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2006/05/04 13:38:52 UTC

svn commit: r399674 - /webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html

Author: chinthaka
Date: Thu May  4 04:38:51 2006
New Revision: 399674

URL: http://svn.apache.org/viewcvs?rev=399674&view=rev
Log:
Improving rest document

Modified:
    webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html

Modified: webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html?rev=399674&r1=399673&r2=399674&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html (original)
+++ webservices/axis2/trunk/java/xdocs/1_0/rest-ws.html Thu May  4 04:38:51 2006
@@ -47,27 +47,22 @@
 
 <h2>Doing REST Web Services with HTTP POST</h2>
 
-<p>The REST default HTTP interface is POST. It can be enabled in the
-Server/Client side by adding the following line to the axis2.xml file.</p>
-<pre>&lt; parameter name="enableREST" locked="false" &gt; true
-&lt;/parameter&gt; </pre>
-
-<p>It however acts as both a REST endpoint and SOAP endpoint. When a Message
+<p>Axis will acts as both a REST endpoint and SOAP endpoint. When a Message
 is received, if the content type is text/xml and if the SOAP Action Headers
 are missing, then the Message is treated as a RESTful Message. Else it is
 treated as a usual SOAP Message.</p>
 
 <p>On sending a message out, the fact that the message is RESTful or not, can
-be decided from the client API or by deployment descriptor of the client.</p>
-<ol>
-  <li>By adding an entry in the client repositories axis2.xml file.</li>
-  <li>Setting as a property in client API e.g. <source>
+be decided from the client API.<br>
+    Set a property in the client api.<br>
+    <source>
     <pre>...
 Options options = new Options();
 options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
 ...</pre>
-    </source></li>
-</ol>
+    </source>
+</p>
+
 <a name="sample"></a>
 
 <h3>Sample REST - HTTP POST Client</h3>