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 ch...@apache.org on 2006/11/10 11:04:48 UTC

svn commit: r473295 - in /webservices/axis2/branches/java/1_1/modules/samples: faulthandling/docs/FaultHandlingSampleGuide.html servicelifecycle/doc/servicelifecycleguide.html

Author: chatra
Date: Fri Nov 10 02:04:47 2006
New Revision: 473295

URL: http://svn.apache.org/viewvc?view=rev&rev=473295
Log:
completed document servicelifecycleguide.html. Made some corrections in FaultHandlingSampleGuide.html

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html
    webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/doc/servicelifecycleguide.html

Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html?view=diff&rev=473295&r1=473294&r2=473295
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html Fri Nov 10 02:04:47 2006
@@ -102,19 +102,17 @@
         -Durl=http://localhost:8080/axis2/services/BankService -Daccount=13
         -Damt=400</strong><br>
         Throws AccountNotExistFaultMessageException. You will see "Account#13
-        does not exist"<br>
-        � </li>
+        does not exist"</li>
     <li><strong>ant run.client
         -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
         -Damt=1200</strong><br>
         Throws InsufficientFundsFaultMessageException. You will see "Account#88
         has balance of 1000. It cannot support withdrawal of 1200"<br>
-        � </li>
+ </li>
     <li><strong>ant run.client
         -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
         -Damt=400</strong><br>
-        Succeeds with a balance of 600. You will see "Balance = 600"<br>
-        � </li>
+        Succeeds with a balance of 600. You will see "Balance = 600"</li>
 </ul>
 When you call ant run.client with parameters, before running
 <em>client/src/example/BankClient.java</em> class, it does the following as

Modified: webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/doc/servicelifecycleguide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/doc/servicelifecycleguide.html?view=diff&rev=473295&r1=473294&r2=473295
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/doc/servicelifecycleguide.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/doc/servicelifecycleguide.html Fri Nov 10 02:04:47 2006
@@ -59,9 +59,8 @@
 
 <h2>Prerequisites</h2>
 
-<p>We have the option of running the sample client using <a
-href="http://ant.apache.org/">Apache Ant</a>. In which case you will have to
-install Apache Ant 1.6.2 or later.</p>
+<p>You will have to install <a href="http://ant.apache.org/">Apache Ant</a>
+1.6.2 or later.</p>
 
 <h2>Running the Sample</h2>
 
@@ -75,7 +74,7 @@
 <p>Next, go to http://[url and port to your app server]/axis2 and see whether
 your service is listed there.</p>
 
-<h3>How to Run the Client</h3>
+<h3>How to Invoke the Service</h3>
 
 <p>You can invoke complete service using REST API, but it only works in
 application servers like Apache Tomcat and it will not work in
@@ -85,11 +84,10 @@
 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 following URL on your favorite browser.</p>
+just type the URL http://127.0.0.1:8080/axis2/rest/Library/listAvailableBook
+on your favorite browser.</p>
 
-<p>http://127.0.0.1:8080/axis2/rest/Library/listAvailableBook</p>
-
-<p>You will see all the available books in the system</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>
@@ -109,9 +107,8 @@
 wsdl at http://127.0.0.1:port/axis2/services/serviceName?wsdl. You will see
 what you need to pass in)</p>
 
-<p>So let's create a user called 'foo' with the password '123'</p>
-
-<p>http://127.0.0.1:8080/axis2/rest/Library/register?userName=foo&amp;passWord=123</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&amp;passWord=123)</p>
 
 <p>Then you will get the following response, if everything has gone well.</p>
 <pre>&lt;ns:registerResponse&gt;
@@ -119,9 +116,8 @@
 &lt;/ns:registerResponse&gt;</pre>
 
 <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.</p>
-
-<p>http://127.0.0.1:8080/axis2/rest/Library/login?userName=foo&amp;passWord=123</p>
+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&amp;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
@@ -166,25 +162,17 @@
 (say Tomcat), and see whether all the previous data is there in the new
 instance.</p>
 
-<h3>Running Java Client</h3>
+<h3>Running the Java Client</h3>
 
 <p>Open up the LibraryServiceClient java class in your favorite IDE and run
-the main class. And you can comment and un-comment whatever method depending
-on what you want to invoke.</p>
-
-<p>Java client also can be run using <a href="http://ant.apache.org/">Ant</a>.
-</p>
+the main class. And you can comment out the methods you do not wish to invoke
+while un-commenting the method(s) you want to invoke.</p>
 
-<p>=============================</p>
-
-<p>invoke</p>
-
-<p>ant run.client</p>
-
-<p></p>
+<p>Java client also can be run using <a
+href="http://ant.apache.org/">Ant</a>. You can execute the client and invoke
+service typing <code>ant run.client</code> command in the
+Axis2_HOME/samples/servicelifecycle</p>
 
 <p>And then follow the instructions as mentioned in the console.</p>
-
-<p></p>
 </body>
 </html>



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