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 di...@apache.org on 2007/06/22 06:52:50 UTC

svn commit: r549706 [1/2] - in /webservices/axis2/trunk/java: modules/samples/quickstartadb/ modules/samples/quickstartadb/src/samples/quickstart/clients/ modules/samples/quickstartaxiom/src/samples/quickstart/clients/ modules/samples/quickstartjibx/ m...

Author: dims
Date: Thu Jun 21 21:52:49 2007
New Revision: 549706

URL: http://svn.apache.org/viewvc?view=rev&rev=549706
Log:
Fix for AXIS2-2683 and AXIS2-2690

Modified:
    webservices/axis2/trunk/java/modules/samples/quickstartadb/build.xml
    webservices/axis2/trunk/java/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java
    webservices/axis2/trunk/java/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java
    webservices/axis2/trunk/java/modules/samples/quickstartjibx/build.xml
    webservices/axis2/trunk/java/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
    webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/build.xml
    webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java
    webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/installationguide.html
    webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/jms-transport.html
    webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/json_support.html
    webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/quickstartguide.html

Modified: webservices/axis2/trunk/java/modules/samples/quickstartadb/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartadb/build.xml?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartadb/build.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartadb/build.xml Thu Jun 21 21:52:49 2007
@@ -22,6 +22,7 @@
     <target name="init">
         <mkdir dir="${build.dir}"/>
         <mkdir dir="${build.dir}/service"/>
+        <mkdir dir="${build.dir}/client"/>
     </target>
 
     <target name="generate.service" depends="init">

Modified: webservices/axis2/trunk/java/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java Thu Jun 21 21:52:49 2007
@@ -10,6 +10,7 @@
 
             getPrice(stub);
             update(stub);
+            getPrice(stub);
 
         } catch(Exception e){
             e.printStackTrace();
@@ -25,7 +26,7 @@
             req.setPrice (42.35);
 
             stub.update(req);
-            System.err.println("done");
+            System.err.println("price updated");
         } catch(Exception e){
             e.printStackTrace();
             System.err.println("\n\n\n");

Modified: webservices/axis2/trunk/java/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java Thu Jun 21 21:52:49 2007
@@ -57,7 +57,7 @@
             sender.setOptions(options);
 
             sender.fireAndForget(updatePayload);
-            System.err.println("done");
+            System.err.println("price updated");
             Thread.sleep(3000);
             OMElement result = sender.sendReceive(getPricePayload);
 

Modified: webservices/axis2/trunk/java/modules/samples/quickstartjibx/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartjibx/build.xml?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartjibx/build.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartjibx/build.xml Thu Jun 21 21:52:49 2007
@@ -22,8 +22,10 @@
     <target name="init">
         <delete dir="${build.dir}"/>
         <mkdir dir="${build.dir}"/>
+        <mkdir dir="${build.dir}/service"/>
+        <mkdir dir="${build.dir}/client"/>
     </target>
-
+	
     <target name="generate.service" depends="init">
         <taskdef name="wsdl2java"
                  classname="org.apache.axis2.tool.ant.AntCodegenTask"

Modified: webservices/axis2/trunk/java/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java Thu Jun 21 21:52:49 2007
@@ -11,6 +11,7 @@
 
             getPrice(stub);
             update(stub);
+            getPrice(stub);
 
         } catch(Exception e){
             e.printStackTrace();
@@ -21,8 +22,8 @@
     /* fire and forget */
     public static void update(StockQuoteServiceStub stub){
         try{
-            stub.update("ABC", new Double(42.35));
-            System.err.println("done");
+            stub.update("CDE", new Double(42.35));
+            System.err.println("price updated");
         } catch(Exception e){
             e.printStackTrace();
             System.err.println("\n\n\n");
@@ -32,7 +33,7 @@
     /* two way call/receive */
     public static void getPrice(StockQuoteServiceStub stub){
         try{
-            System.err.println(stub.getPrice("ABC"));
+            System.err.println(stub.getPrice("CDE"));
         } catch(Exception e){
             e.printStackTrace();
             System.err.println("\n\n\n");

Modified: webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/build.xml?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/build.xml (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/build.xml Thu Jun 21 21:52:49 2007
@@ -22,6 +22,7 @@
     <target name="init">
         <mkdir dir="${build.dir}"/>
         <mkdir dir="${build.dir}/service"/>
+        <mkdir dir="${build.dir}/client"/>
     </target>
 
     <target name="generate.service" depends="init">

Modified: webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java (original)
+++ webservices/axis2/trunk/java/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java Thu Jun 21 21:52:49 2007
@@ -15,6 +15,7 @@
 
             getPrice(stub);
             update(stub);
+            getPrice(stub);
 
         } catch(Exception e){
             e.printStackTrace();
@@ -27,11 +28,11 @@
         try{
             UpdateDocument reqDoc = UpdateDocument.Factory.newInstance();
             UpdateDocument.Update req = reqDoc.addNewUpdate();
-            req.setSymbol ("ABC");
+            req.setSymbol ("BCD");
             req.setPrice (42.32);
 
             stub.update(reqDoc);
-            System.err.println("done");
+            System.err.println("price updated");
         } catch(Exception e){
             e.printStackTrace();
             System.err.println("\n\n\n");
@@ -43,7 +44,7 @@
         try{
             GetPriceDocument reqDoc = GetPriceDocument.Factory.newInstance();
             GetPriceDocument.GetPrice req = reqDoc.addNewGetPrice();
-            req.setSymbol("ABC");
+            req.setSymbol("BCD");
 
             GetPriceResponseDocument res =
                 stub.getPrice(reqDoc);

Modified: webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/installationguide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/%40axis2_version_dir%40/installationguide.html?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/installationguide.html (original)
+++ webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/installationguide.html Thu Jun 21 21:52:49 2007
@@ -23,19 +23,19 @@
 <ul>
   <li><a href="#Download_Axis2">Axis2 Distributions</a></li>
   <li><a href="#requirements">System Requirements</a></li>
-  <li><a href="#standalone">Install Axis2 as a Standalone Server using
-    Standard Binary Distribution</a>
+  <li><a href="#standalone">Installing Axis2 as a Standalone Server using
+    the Standard Binary Distribution</a>
     <ul>
-      <li><a href="#standalone1">Install the Apache Axis2 Binary
+      <li><a href="#standalone1">Installing the Apache Axis2 Binary
         Distribution</a></li>
       <li><a href="#standalone2">Starting up Axis2 Standalone Server</a></li>
-      <li><a href="#standalone3">Building WAR File Using Standard Binary
+      <li><a href="#standalone3">Building the Axis2 WAR File Using the Standard Binary
         Distribution</a></li>
-      <li><a href="#standalone4">Getting Familiar with the Axis2 Convenient
+      <li><a href="#standalone4">Getting Familiar with Convenient Axis2
         Scripts</a></li>
     </ul>
   </li>
-  <li><a href="#servlet_container">Install Axis2 in a Servlet
+  <li><a href="#servlet_container">Installing Axis2 in a Servlet
   Container</a></li>
   <li><a href="#upload">Uploading Services</a></li>
   <li><a href="#advanced">Advanced</a>
@@ -70,7 +70,7 @@
 <p><a href="http://ws.apache.org/axis2/download.cgi">Download</a>
 distribution packages of all versions of Apache Axis2.</p>
 
-<p>The Distribution Packages Provided are as follows:</p>
+<p>The distribution packages provided are as follows:</p>
 <a name="std-bin" id="std-bin"></a>
 
 <h3>1. Standard Binary Distribution</h3>
@@ -108,7 +108,7 @@
 <h3>4. Source Distribution</h3>
 
 <p>This contains the sources of Axis2 standard distribution, and is mainly
-for the benefit of the advance users. One can generate a binary distribution
+for the benefit of advanced users. One can generate a binary distribution
 using the source by typing <span class="style1">$maven dist-bin. </span> You
 need to set up the Axis2 environment before running this command. Step by
 step details on how to create the binary distribution is available in the <a
@@ -168,7 +168,7 @@
 installation.</p>
 <a name="standalone"></a>
 
-<h2>Install Axis2 as a Standalone Server using Standard Binary
+<h2>Installing Axis2 as a Standalone Server using the Standard Binary
 Distribution</h2>
 <a name="standalone1"></a>
 
@@ -200,7 +200,7 @@
 
 <h3>2. Starting up Axis2 Standalone Server</h3>
 
-<p>Standalone Axis2 server can be started by executing the following
+<p>The standalone Axis2 server can be started by executing the following
 commands: <br>
 $AXIS2_HOME\bin\axis2server.bat (Windows) <br>
 $AXIS2_HOME/bin/axis2server.sh  (Unix)</p>
@@ -229,10 +229,10 @@
 servlet container.</p>
 <a name="standalone4"></a>
 
-<h3>4. Getting Familiar with the Axis2 Convenient Scripts</h3>
+<h3>4. Getting Familiar with the Convenient Axis2 Scripts</h3>
 
 <p>It is advised to add the $AXIS2_HOME/bin to the PATH, so that you'll be
-able to run the following scripts from any where.</p>
+able to run the following scripts from anywhere.</p>
 
 <table border="1">
   <tbody>
@@ -250,7 +250,6 @@
         location(AXIS2_HOME/conf/axis2.xml) for you. With this you can be
         relieved from setting all the above Axis2 specific parameters.<br>
 
-
         <p><em>Usage : axis2.{sh.bat}  [-options] class [args...]</em></p>
       </td>
     </tr>
@@ -273,8 +272,8 @@
     <tr>
       <td>wsdl2java.{bat|sh}</td>
       <td>This script generates Java code according to a given WSDL file to
-        handle Web service invocations (Client side Stubs). This script also
-        has the ability to generate service skeletons according to the given
+        handle Web service invocations (client-side stubs). This script also
+        has the ability to generate web service skeletons according to the given
         WSDL.<br>
 
 
@@ -306,9 +305,9 @@
 </table>
 <a name="servlet_container"></a>
 
-<h2>Install Axis2 in a Servlet Container</h2>
+<h2>Installing Axis2 in a Servlet Container</h2>
 
-<p>Which ever the distribution, installing Axis2 in a J2EE compliant servlet
+<p>Whichever the distribution, installing Axis2 in a J2EE compliant servlet
 container is as follows:</p>
 <ol>
   <li>Build the Axis2 WAR file using the Axis2 <a
@@ -329,12 +328,12 @@
 
   <p align="center"><strong><img src="images/clip_image006.jpg"
   alt=""></strong></p>
-  <li>Use the link "Validate" to ensure that everything is fine and smooth.
+  <li>Use the link "Validate" to ensure that everything is running correctly.
     If the validation fails then the WAR has failed to install properly or
     some essential jars are missing. In such a situation, refer to the
     documentation of the particular servlet container to find the problem.
-    The following page is a successful validation. Note that the statement
-    core Axis2 libraries are present.</li>
+    The following page shows a successful validation. Note the statement
+    that indicates the core Axis2 libraries are present.</li>
 </ol>
 
 <p align="center"><img src="images/happyaxis.jpg"></p>
@@ -347,20 +346,20 @@
 <h2>Uploading Services</h2>
 <ol>
   <p>The Axis2 Web application also provides an interface to upload services.
-  Once a service is created according to the service specification as
+  Once a service archive file is created according to the service specification as
   described in the <a name="adv-userguide.html" target="_blank">Advanced
-  User's Guide</a>, that .jar file can be uploaded using the upload page.</p>
+  User's Guide</a>, that .aar file can be uploaded using the upload page.</p>
 
   <p align="center"><strong><img src="images/clip_image010.jpg"
   alt=""></strong></p>
 
-  <p>The uploaded .jar files will be stored in the default service directory.
+  <p>The uploaded .aar files will be stored in the default service directory.
   For Axis2, this will be the &lt;webapps&gt;/axis2/WEB-INF/services
   directory. Once a service is uploaded, it will be installed instantly.</p>
   <a name="hot_deployment"></a>
 
   <p>Since Axis2 supports <strong>hot deployment</strong>, you can drop the
-  service jar directly through the file system to the above mentioned
+  service archive directly through the file system to the above mentioned
   services directory. It will also cause the service to be automatically
   installed without the container being restarted.</p>
 
@@ -405,7 +404,7 @@
 <p>Required jar files do not come with the distribution and they will also
 have to be built by running the maven command. Before we go any further, it
 is necessary to install <a href="http://maven.apache.org/maven-1.x/"
-target="_blank">Maven</aandsettheEnvironment.Thenextsectionwillguideyouhowtodojustthat.></a></p>
+target="_blank">Maven</a> and set up its environment, as explained below.</p>
 <a name="env-src"></a>
 
 <h3>Setting Up the Environment and Tools</h3>

Modified: webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/jms-transport.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/%40axis2_version_dir%40/jms-transport.html?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/jms-transport.html (original)
+++ webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/jms-transport.html Thu Jun 21 21:52:49 2007
@@ -13,13 +13,7 @@
 <h1>JMS Transport</h1>
 
 <p>This document is all about the JMS (Java Messaging Service) Transport
-support in Apache Axis2,, and how it should be configured.</p>
-
-<p><i>Send your feedback or questions to: <a
-href="mailto:axis-dev@ws.apache.org?subject=[Axis2]">axis-dev@ws.apache.org</a></i>.
-(Subscription details are available on the <a
-href="http://ws.apache.org/axis2/mail-lists.html">Axis2 site</a>.) Kindly
-prefix subject with [Axis2].</p>
+support in Apache Axis2, and how it should be configured.</p>
 
 <h2>Contents</h2>
 <ul>
@@ -117,8 +111,8 @@
 
 <p>This section assumes that you are already familiar with <a
 href="xmlbased-server.html">writing service implementations</a> for Axis2,
-and provides information on how to write your own service implementations,
-which are exposed over JMS.</p>
+and provides information on how to write your own service implementations
+to be exposed over JMS.</p>
 
 <p><strong>Echo - Service implementation and services.xml</strong></p>
 

Modified: webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/json_support.html
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/xdocs/%40axis2_version_dir%40/json_support.html?view=diff&rev=549706&r1=549705&r2=549706
==============================================================================
--- webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/json_support.html (original)
+++ webservices/axis2/trunk/java/xdocs/@axis2_version_dir@/json_support.html Thu Jun 21 21:52:49 2007
@@ -13,13 +13,6 @@
 P { margin-bottom: 0.08in }
 -->
 
-
-
-
-
-
-
-
         </style>
 </head>
 
@@ -28,14 +21,14 @@
 
 <p>This document explains the JSON support implementation in Axis2. It
 includes an introduction to JSON, an outline as to why JSON support is useful
-to Axis2 and how to it should be used. Document also provides details on test
+to Axis2 and how it should be used. This document also provides details on test
 cases and samples.</p>
 
 <h3>What is JSON?</h3>
 
 <p><a href="http://www.json.org/">JSON</a> (Java Script Object Notation) is
-another data exchangeable format like XML, but it is more lightweight and
-easily readable. It is based on a subset of JavaScript language. Therefore,
+another data exchangeable format like XML, but more lightweight and
+easily readable. It is based on a subset of the JavaScript language. Therefore,
 JavaScript can understand JSON, and it can make JavaScript objects by using
 JSON strings. JSON is based on key-value pairs and it uses colons to separate
 keys and values. JSON doesn't use end tags, and it uses braces (curly
@@ -69,7 +62,7 @@
 
 <p><font size="2">{"foo.root":{"data":"my json string"}}</font></p>
 
-<p>JSON support implementation is a new feature in <a
+<p>JSON support is a new feature in <a
 href="http://ws.apache.org/axis2/">Apache Axis2/Java</a>. It will become a
 crucial improvement in the future with applications like JavaScript Web
 services.</p>
@@ -80,7 +73,7 @@
 stack that delivers incoming messages into target applications. In most
 cases, these messages are SOAP messages. In addition, it is also possible to
 send REST messages through Axis2. Both types of messages use XML as their
-data exchangeable format. So if we can use XML as a format, why not use JSON
+data exchangeable format. So if we can use XML as a format, why use JSON
 as another format?</p>
 
 <p>There are many advantages of implementing JSON support in Axis2. Mainly,
@@ -94,7 +87,7 @@
 <p>Other than for that, there are some extra advantages of using JSON in
 comparison to XML. Although the conversation “XML or JSON?” is still a
 hot topic, many people accept the fact that JSON can be passed and built
-easily by machines than in the case of XML. </p>
+more easily by machines than XML. </p>
 
 <p>For more details of this implementation architecture, refer to the article
 <a href="http://wso2.org/library/768">"JSON Support for Apache Axis2"</a></p>
@@ -172,8 +165,8 @@
 exact JSON content type that is used by that service, and you have to use
 that content type in your client as well.</p>
 
-<p>HTTP POST method is used as the default to send JSON messages through
-Axis2, if the HTTP method is not set by the user. But if you want to send
+<p>HTTP POST is used as the default method to send JSON messages through
+Axis2, if the HTTP method is not explicitly set by the user. But if you want to send
 JSON in HTTP GET method as a parameter, you can do that by just setting an
 option on the client side.</p>
 
@@ -211,8 +204,8 @@
 the axis2.xml. All the results are shown in a GUI. To run the sample, execute
 the ant script.</p>
 
-<p>These two applications are good examples of using JSON support for Axis2.
-You can understand the architecture of JSON support implementation in Axis2
-by looking at these samples.</p>
+<p>These two applications provide good examples of using JSON within Axis2.
+By reviewing these samples, you will be able to better understand Axis2's 
+JSON support implementation.</p>
 </body>
 </html>



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