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/10/20 16:42:23 UTC
svn commit: r466130 - in /webservices/axis2/branches/java/1_1/xdocs/1_1:
images/userguide/http-get-ws.jpg rest-ws.html
Author: chatra
Date: Fri Oct 20 07:42:22 2006
New Revision: 466130
URL: http://svn.apache.org/viewvc?view=rev&rev=466130
Log:
applied, reviewed and comiitting patch in Jira AXIS2-1217. Thanks Evanthika. Also updated image in rest-ws.html.
Modified:
webservices/axis2/branches/java/1_1/xdocs/1_1/images/userguide/http-get-ws.jpg
webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html
Modified: webservices/axis2/branches/java/1_1/xdocs/1_1/images/userguide/http-get-ws.jpg
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/xdocs/1_1/images/userguide/http-get-ws.jpg?view=diff&rev=466130&r1=466129&r2=466130
==============================================================================
Binary files - no diff available.
Modified: webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html?view=diff&rev=466130&r1=466129&r2=466130
==============================================================================
--- webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html (original)
+++ webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html Fri Oct 20 07:42:22 2006
@@ -56,12 +56,11 @@
be decided from the client API.<br>
Set a property in the client api.<br>
</p>
-<source>
<pre>...
Options options = new Options();
options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
...</pre>
-</source><a name="sample"></a>
+<a name="sample"></a>
<h3>Sample REST - HTTP POST Client</h3>
@@ -72,7 +71,7 @@
<p>of the samples.The class source will be as follows:</p>
<source><pre>public class RESTClient {
- private static String toEpr = "http://localhost:8080/axis2/rest/MyService";
+ private static String toEpr = "http://localhost:8080/axis2/services/MyService";
public static void main(String[] args) throws AxisFault {
@@ -104,7 +103,7 @@
"http://example1.org/example1", "example1");
OMElement method = fac.createOMElement("echo", omNs);
OMElement value = fac.createOMElement("Text", omNs);
- value.addChild(fac.createOMText(value, "Axis2 Echo String "));
+ value.addChild(fac.createText(value, "Axis2 Echo String "));
method.addChild(value);
return method;
@@ -121,7 +120,7 @@
<source><pre>http://127.0.0.1:8080/axis2/rest/version/getVersion</pre>
</source>
<p>Result can be shown in the browser as follows:</p>
-<img src="images/userguide/http-get-ws.jpg" alt="">
+<img src="images/userguide/http-get-ws.jpg"/><br clear="all"/>
<p>For example, the following request,</p>
<source><pre>http://127.0.0.1:8080/axis2/rest/version/getVersion</pre>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org