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/09/20 12:12:33 UTC
svn commit: r290408 - /webservices/axis2/trunk/java/xdocs/rest-ws.html
Author: saminda
Date: Tue Sep 20 03:12:19 2005
New Revision: 290408
URL: http://svn.apache.org/viewcvs?rev=290408&view=rev
Log:
Update to cope with axis2-alpha
Modified:
webservices/axis2/trunk/java/xdocs/rest-ws.html
Modified: webservices/axis2/trunk/java/xdocs/rest-ws.html
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/xdocs/rest-ws.html?rev=290408&r1=290407&r2=290408&view=diff
==============================================================================
--- webservices/axis2/trunk/java/xdocs/rest-ws.html (original)
+++ webservices/axis2/trunk/java/xdocs/rest-ws.html Tue Sep 20 03:12:19 2005
@@ -27,7 +27,7 @@
<h2>Doing REST web services with HTTP POST</h2>
<p>REST support can be enabled in the Server side by adding the following
-line to the axis.xml file.</p>
+line to the axis2.xml file.</p>
<font color="blue">< parameter name="enableREST" locked="xsd:false" >
true </parameter> </font>
@@ -39,8 +39,7 @@
<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.xml file similar to that of the
- axis.xml.</li>
+ <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>
</source></li>
@@ -55,7 +54,7 @@
<pre>userguide.example1.MyService</pre>
</source>of the samples. And the class source will be as follows <source>
<pre>public class MyServiceClient {
- private static String toEpr = "http://localhost:9080/axis2/services/MyService/echo";
+ private static String toEpr = "http://localhost:8080/axis2/services/MyService/echo";
public static void main(String[] args) throws AxisFault {
OMElement payload = ...
@@ -76,13 +75,13 @@
the HTTP GET. For example following URL requests the version service Via HTTP
GET. But the Web Services arrived via GET assumes REST . Other parameter are
converted in to the XML and put them in to the SOAP Body.</p>
-<source><pre>http://127.0.0.1:8080/axis2/services/Version/getVersion</pre>
+<source><pre>http://127.0.0.1:8080/axis2/services/version/getVersion</pre>
</source>
<p>Result can be shown in the browser as follows.</p>
<img src="images/userguide/http-get-ws.png">
<p>For an example request <source></p>
-<pre>http://127.0.0.1:8080/axis2/services/Version/getVersion</pre>
+<pre>http://127.0.0.1:8080/axis2/services/version/getVersion</pre>
</source>will be converted to the following SOAP Message for processing by
Axis2<source>
<pre>