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 2007/05/25 11:56:11 UTC
svn commit: r541605 - in /webservices/axis2/trunk/java:
modules/samples/servicelifecycle/doc/servicelifecycleguide.html
xdocs/@axis2_version_dir@/rest-ws.html
Author: chatra
Date: Fri May 25 02:56:10 2007
New Revision: 541605
URL: http://svn.apache.org/viewvc?view=rev&rev=541605
Log:
resolving issues in https://issues.apache.org/jira/browse/AXIS2-2440
Modified:
webservices/axis2/trunk/java/modules/samples/servicelifecycle/doc/servicelifecycleguide.html
webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/rest-ws.html
Modified: webservices/axis2/trunk/java/modules/samples/servicelifecycle/doc/servicelifecycleguide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/servicelifecycle/doc/servicelifecycleguide.html?view=diff&rev=541605&r1=541604&r2=541605
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/servicelifecycle/doc/servicelifecycleguide.html (original)
+++ webservices/axis2/trunk/java/modules/samples/servicelifecycle/doc/servicelifecycleguide.html Fri May 25 02:56:10 2007
@@ -84,20 +84,21 @@
steps given below to make sure that the sample works as it should:</p>
<p><strong>Step 1</strong>:- View all the available books in the library,
-just type the URL http://127.0.0.1:8080/axis2/rest/Library/listAvailableBook
-on your favorite browser.</p>
+just type the URL
+http://127.0.0.1:8080/axis2/services/Library/listAvailableBook on your
+favorite browser.</p>
<p>You will see all the available books in the system.</p>
<p><strong>Step 2</strong> : View all the books in the system at
-http://127.0.0.1:8080/axis2/rest/Library/listAllBook</p>
+http://127.0.0.1:8080/axis2/services/Library/listAllBook</p>
<p>In this case you will get exactly the same result for both the request,
since no one has borrowed the book.</p>
<p><strong>Step 3</strong>: Now look at all the lent books in the system. And
you will see an empty list at
-http://127.0.0.1:8080/axis2/rest/Library/listLendBook</p>
+http://127.0.0.1:8080/axis2/services/Library/listLendBook</p>
<p><strong>Step 4</strong> : Register a user. To lend a book or return a
book, you need to register first. Do not register twice, if you try to do so
@@ -108,7 +109,7 @@
what you need to pass in)</p>
<p>So let's create a user called 'foo' with the password '123'
-(http://127.0.0.1:8080/axis2/rest/Library/register?userName=foo&passWord=123)</p>
+(http://127.0.0.1:8080/axis2/services/Library/register?userName=foo&passWord=123)</p>
<p>Then you will get the following response, if everything has gone well.</p>
<pre><ns:registerResponse>
@@ -117,13 +118,13 @@
<p><strong>Step 5</strong> : Log into system. To log in you need to pass user
name and password. So let's try to login to system. The request will be
-http://127.0.0.1:8080/axis2/rest/Library/login?userName=foo&passWord=123</p>
+http://127.0.0.1:8080/axis2/services/Library/login?userName=foo&passWord=123</p>
<p><strong>Step 6</strong> : Now we are ready to lend a book. To lend a book
you need to pass isbn and userName. Let's try to lend the book with isbn
0-937175-77-3, your request would look like below:</p>
-<p>http://127.0.0.1:8080/axis2/rest/Library/lendBook?isbn=0-937175-77-3&userName=foo</p>
+<p>http://127.0.0.1:8080/axis2/services/Library/lendBook?isbn=0-937175-77-3&userName=foo</p>
<p>If everything went well, you will see the following response in the
browser.</p>
@@ -136,7 +137,7 @@
</ns:lendBookResponse></pre>
<p><strong>Step 7</strong> : Now go and look at lent list again at
-http://127.0.0.1:8080/axis2/rest/Library/listLendBook, you will see the
+http://127.0.0.1:8080/axis2/services/Library/listLendBook, you will see the
following output in the browser.</p>
<pre><ns:listLendBookResponse>
<ns:return>
@@ -153,7 +154,8 @@
<p><strong>Step 8</strong> : Now let's return the book.</p>
-<p>http://127.0.0.1:8080/axis2/rest/Library/returnBook?isbn= 0-937175-77-3</p>
+<p>http://127.0.0.1:8080/axis2/services/Library/returnBook?isbn=
+0-937175-77-3</p>
<p><strong>Step 9</strong> : Now let's look at the lent book list again, and
you will realize that list is empty.</p>
Modified: webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/rest-ws.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/%40axis2_version_dir%40/rest-ws.html?view=diff&rev=541605&r1=541604&r2=541605
==============================================================================
--- webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/rest-ws.html (original)
+++ webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/rest-ws.html Fri May 25 02:56:10 2007
@@ -3,7 +3,7 @@
<meta http-equiv="content-type" content="">
<title>RESTful Web Services Support</title>
<link href="../css/axis-docs.css" rel="stylesheet" type="text/css"
- media="all"/>
+ media="all">
</head>
<body lang="en">
@@ -74,7 +74,7 @@
AXIS2_HOME/samples/userguide/src/userguide/clients which demonstrates the
usage of the above. It uses the "echo" operation of the
<code>userguide.example1.MyService </code>of the
-AXIS2_HOME/samples/userguide/src/userguide/example1. </p>
+AXIS2_HOME/samples/userguide/src/userguide/example1.</p>
<p>The class source will be as follows:<source></p>
<pre>public class RESTClient {
@@ -124,13 +124,13 @@
via HTTP GET. For example, the following URL requests the Version Service via
HTTP GET. However, the Web service arriving via GET assumes REST. Other
parameters are converted into XML and put into the SOAP body.</p>
-<source><pre>http://127.0.0.1:8080/axis2/rest/Version/getVersion</pre>
+<source><pre>http://127.0.0.1:8080/axis2/services/Version/getVersion</pre>
</source>
<p>The result can be shown in the browser as follows:</p>
<img src="/images/userguide/http-get-ws.jpg">
<p>For example, the following request,</p>
-<source><pre>http://127.0.0.1:8080/axis2/rest/Version/getVersion</pre>
+<source><pre>http://127.0.0.1:8080/axis2/services/Version/getVersion</pre>
</source>will be converted into 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