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/02 12:00:02 UTC

svn commit: r470323 - /webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt

Author: chatra
Date: Thu Nov  2 03:00:02 2006
New Revision: 470323

URL: http://svn.apache.org/viewvc?view=rev&rev=470323
Log:
completed and reviewed 

Modified:
    webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt

Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt?view=diff&rev=470323&r1=470322&r2=470323
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/README.txt Thu Nov  2 03:00:02 2006
@@ -1,6 +1,32 @@
-Introduction
-============
-
-This sample demonstrates how exception can be handled using WSDL faults.
-
-Please read docs/ReadMe.html for more information. 
\ No newline at end of file
+Introduction
+============
+
+This sample demonstrates how exceptions can be handled using WSDL faults, in other words, how to specify a WSDL fault in order to allow your service to communicate exception pathways to your clients. 
+
+Running of this sample assumes that you are running this within the extracted release folder.
+
+Pre-Requisites
+==============
+
+None
+
+Running The Sample
+==================
+
+Running the ClientInvoke the client/src/example/BankClient.java class. You may use the command scripts to do so. You need to supply 3 parameters to the command- url, account and amount.
+
+ * ant run.client -Durl=http://localhost:8080/axis2/services/BankService -Daccount=13 -Damt=400
+   Throws AccountNotExistFaultMessageException. You will see "Account#13 does not exist"  
+ * ant run.client -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88 -Damt=1200
+   Throws InsufficientFundsFaultMessageException. You will see "Account#88 has balance of 1000. It cannot support withdrawal   of 1200"  
+ * ant run.client -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88 -Damt=400
+   Succeeds with a balance of 600. You will see "Balance = 600"  
+
+When you call ant run.client with parameters, before running client/src/example/BankClient.java class, it does the following as well:
+ * Generate the stubs (for the client) from the WSDL
+ * Compile the client classes
+ * Create a Jar of the client classes and copy it to build/client/BankService-test-client.jar
+
+Advanced Guide
+==============
+For more details kindly see doc/FaultHandlingSampleGuide.html
\ No newline at end of file



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