You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/10/07 07:51:44 UTC

svn commit: r307026 - in /webservices/axis2/trunk/java/xdocs: images/userguide/http-get-ws.png rest-ws.html

Author: saminda
Date: Thu Oct  6 22:51:36 2005
New Revision: 307026

URL: http://svn.apache.org/viewcvs?rev=307026&view=rev
Log:
REST docs changed to cope with the current situation

Modified:
    webservices/axis2/trunk/java/xdocs/images/userguide/http-get-ws.png
    webservices/axis2/trunk/java/xdocs/rest-ws.html

Modified: webservices/axis2/trunk/java/xdocs/images/userguide/http-get-ws.png
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/images/userguide/http-get-ws.png?rev=307026&r1=307025&r2=307026&view=diff
==============================================================================
Binary files - no diff available.

Modified: webservices/axis2/trunk/java/xdocs/rest-ws.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/rest-ws.html?rev=307026&r1=307025&r2=307026&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/rest-ws.html (original)
+++ webservices/axis2/trunk/java/xdocs/rest-ws.html Thu Oct  6 22:51:36 2005
@@ -26,9 +26,9 @@
 
 <h2>Doing REST web services with HTTP POST</h2>
 
-<p>REST support can be enabled in the Server side by adding the following
+<p>REST's 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>
-<font color="blue">&lt; parameter name="enableREST" locked="xsd:false" &gt;
+<font color="blue">&lt; parameter name="enableREST" locked="false" &gt;
 true &lt;/parameter&gt; </font>
 
 <p>But it acts both as a REST endpoint as well as a SOAP endpoint. When a
@@ -40,8 +40,8 @@
 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>Through client API e.g. <source>
-    <pre>call.setDoREST(true);</pre>
+  <li>Setting as a property in client API e.g. <source>
+    <pre>call.set(Constants.Configuration.ENABLE_REST,Constants.VALUE_TRUE);</pre>
     </source></li>
 </ol>
 
@@ -61,7 +61,7 @@
                 Call  call = new Call();
                 call.setTo(new EndpointReference(toEpr));
                 call.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_HTTP,false);
-                call.setDoREST(true);
+                call.set(Constants.Configuration.ENABLE_REST,Constants.VALUE_TRUE);
                         
                 OMElement result = call.invokeBlocking("thiscanbeanything", payload);
                 .... use the result