axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r471677 - in /webservices/axis2/branches/java/1_1/modules/samples/databinding: README.txt build.xml
Date Mon, 06 Nov 2006 09:44:11 GMT
Author: chinthaka
Date: Mon Nov  6 01:44:09 2006
New Revision: 471677

- Adding a ant target to automatically download castor and stax-utils jars. This target is
kept optionals inside the README.txt.
- Adding more information on how it works, to README.txt itself until we create a comprehensive

Dims, please review my commits to this sample. Did I spoil something :) ?


Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/README.txt
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/README.txt (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/README.txt Mon Nov  6
01:44:09 2006
@@ -1,7 +1,7 @@
-This sample demonstrates how use WSDL2Java generated code with Castor
+This sample demonstrates how to use WSDL2Java generated code with Castor
 Running of this sample assumes that you are running this within the extracted release folder.
@@ -19,6 +19,9 @@
  * Download latest Castor jar from and drop that into
the new
  lib directory
+ You can achieve all three of the above steps by running "ant download.jars", but it will
take some
+ time to download those two jars, using ant.
 Running The Sample
@@ -46,6 +49,12 @@
       * Compile the client classes
       * Create a Jar of the client classes and copy it to build/client/StockService-test-client.jar
-Advanced Guide
+How It Works
-For more details kindly see doc/DataBindingSampleGuide.html
\ No newline at end of file
+- We code generate code giving -d none to get all the Axis2 APIs with OMElements.
+- We create Castor objects for the schema give in the StockQuoteService.wsdl.
+- Client API and the service uses those castor objects to get/set data.
+- We get StAX events from the castor objects and construct OMElements from them. Those StAX
+are fed into StAXOMBuilder which can create OM tree from it.
+- Feed those OMElement in to generated code.

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/build.xml
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/build.xml Mon Nov  6 01:44:09
@@ -152,6 +152,17 @@
+    <!--We are not shipping castor and stax-utils jars with the release. This target can
be used to
+    download those jars that are required to run this sample.-->
+    <target name="download.jars">
+       <mkdir dir="lib"/>
+        <get src=""
+             dest="lib/stax-utils-20060915.jar" verbose="true"/>
+        <get src="" dest="lib/castor-1.0.4.jar"
+             verbose="true"/>
+    </target>
     <target name="clean">
         <delete dir="build"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message