axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
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

URL: http://svn.apache.org/viewvc?view=rev&rev=471677
Log:
- 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
documentation. 

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/build.xml

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/README.txt
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/README.txt?view=diff&rev=471677&r1=471676&r2=471677
==============================================================================
--- 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 @@
 Introduction
 ============
 
-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 http://www.castor.org/download.html 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
events
+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
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/build.xml?view=diff&rev=471677&r1=471676&r2=471677
==============================================================================
--- 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
2006
@@ -152,6 +152,17 @@
         </jar>
     </target>
 
+    <!--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="http://ws.zones.apache.org/repository/stax-utils/jars/stax-utils-20060915.jar"
+             dest="lib/stax-utils-20060915.jar" verbose="true"/>
+        <get src="http://dist.codehaus.org/castor/1.0.4/castor-1.0.4.jar" dest="lib/castor-1.0.4.jar"
+             verbose="true"/>
+    </target>
+
     <target name="clean">
         <delete dir="build"/>
     </target>



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


Mime
View raw message