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/18 13:26:05 UTC

svn commit: r465215 - in /webservices/axis2/branches/java/1_1: modules/samples/src/userguide/clients/RESTClient.java xdocs/1_1/rest-ws.html

Author: chinthaka
Date: Wed Oct 18 04:26:05 2006
New Revision: 465215

URL: http://svn.apache.org/viewvc?view=rev&rev=465215
Log:
Applying the patch in http://issues.apache.org/jira/browse/AXIS2-1415. Thanks Ruwan. 


Modified:
    webservices/axis2/branches/java/1_1/modules/samples/src/userguide/clients/RESTClient.java
    webservices/axis2/branches/java/1_1/xdocs/1_1/rest-ws.html

Modified: webservices/axis2/branches/java/1_1/modules/samples/src/userguide/clients/RESTClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/src/userguide/clients/RESTClient.java?view=diff&rev=465215&r1=465214&r2=465215
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/src/userguide/clients/RESTClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/src/userguide/clients/RESTClient.java Wed Oct 18 04:26:05 2006
@@ -37,7 +37,7 @@
  */
 public class RESTClient {
 
-    private static String toEpr = "http://localhost:8080/axis2/services/MyService";
+    private static String toEpr = "http://localhost:8080/axis2/rest/MyService";
 
     public static void main(String[] args) throws AxisFault {
 

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=465215&r1=465214&r2=465215
==============================================================================
--- 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 Wed Oct 18 04:26:05 2006
@@ -55,7 +55,8 @@
 <p>On sending a message out, the fact that the message is RESTful or not, can
 be decided from the client API.<br>
 Set a property in the client api.<br>
-<source></p>
+</p>
+<source>
 <pre>...
 Options options = new Options();
 options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
@@ -71,7 +72,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/services/MyService";
+    private static String toEpr = "http://localhost:8080/axis2/rest/MyService";
     
     public static void main(String[] args) throws AxisFault {
 
@@ -103,7 +104,7 @@
                 "http://example1.org/example1", "example1");
         OMElement method = fac.createOMElement("echo", omNs);
         OMElement value = fac.createOMElement("Text", omNs);
-        value.addChild(fac.createText(value, "Axis2 Echo String "));
+        value.addChild(fac.createOMText(value, "Axis2 Echo String "));
         method.addChild(value);
 
         return method;
@@ -117,13 +118,13 @@
 via HTTP GET. For example the following URL requests the Version Service via
 HTTP GET. But the Web service arriving via GET assumes REST. Other parameters
 are converted in to XML and put 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/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="">
 
 <p>For example, the following request,</p>
-<source><pre>http://127.0.0.1:8080/axis2/services/version/getVersion</pre>
+<source><pre>http://127.0.0.1:8080/axis2/rest/version/getVersion</pre>
 </source>will be converted to the following SOAP Message for processing by
 Axis2.<source>
 <pre> 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org