You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2006/12/20 13:23:42 UTC

svn commit: r489066 [20/24] - in /webservices/axis2/branches/java/1_1/modules: adb-codegen/ adb-codegen/src/org/apache/axis2/schema/ adb-codegen/src/org/apache/axis2/schema/i18n/ adb-codegen/src/org/apache/axis2/schema/template/ adb-codegen/test-resour...

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/client/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/client/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/client/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/client/build.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <project basedir="." default="jar.client">
 
     <property environment="env"/>

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/client/src/samples/databinding/StockClient2.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/client/src/samples/databinding/StockClient2.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/client/src/samples/databinding/StockClient2.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/client/src/samples/databinding/StockClient2.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package samples.databinding;
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMDataSource;

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/service/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/service/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/service/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/service/build.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <project basedir="." default="gen.skeleton">
 	
 	<property environment="env"/>

Modified: webservices/axis2/branches/java/1_1/modules/samples/databinding/service/src/samples/databinding/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/databinding/service/src/samples/databinding/StockQuoteServiceSkeleton.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/databinding/service/src/samples/databinding/StockQuoteServiceSkeleton.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/databinding/service/src/samples/databinding/StockQuoteServiceSkeleton.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 /**
  * StockQuoteServiceSkeleton.java
  *

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/build.xml Wed Dec 20 04:23:24 2006
@@ -1,22 +1,40 @@
-<project name="samples" default="all">
-    <property name="mainDir" value="../.."/>
-    <path id="axis.classpath">
-        <fileset dir="../../lib">
-            <include name="*.jar"/>
-        </fileset>
-        <pathelement location="./amazonQS.jar"/>
-    </path>
-    <target name="cq">
-        <java classname="sample.amazon.amazonSimpleQueueService.RunGUICQ"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}"/>
-        </java>
-    </target>
-    <target name="rq">
-        <java classname="sample.amazon.amazonSimpleQueueService.RunGUIRQ"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}"/>
-        </java>
-    </target>
-    <target name="all" depends="cq,rq"/>
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<project name="samples" default="all">
+    <property name="mainDir" value="../.."/>
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="./amazonQS.jar"/>
+    </path>
+    <target name="cq">
+        <java classname="sample.amazon.amazonSimpleQueueService.RunGUICQ"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}"/>
+        </java>
+    </target>
+    <target name="rq">
+        <java classname="sample.amazon.amazonSimpleQueueService.RunGUIRQ"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}"/>
+        </java>
+    </target>
+    <target name="all" depends="cq,rq"/>
+</project>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/docs/AmazonSimpleWebService.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/docs/AmazonSimpleWebService.html?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/docs/AmazonSimpleWebService.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/docs/AmazonSimpleWebService.html Wed Dec 20 04:23:24 2006
@@ -1,179 +1,197 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-"http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-  <title>Amazon Simple Queue Web Service - Sample</title>
-  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
-</head>
-
-<body>
-<h1>Amazon Queuing Service</h1>
-
-<h2>Section 1 - Basic Operations</h2>
-
-<h3>Introduction</h3>
-
-<p>The purpose of this example is to implement a user-friendly Queue Service
-with all possible operations such as Creating Queue, Reading etc, via
-Axis2-M2 SOAP engine. The Amazon Simple Queue Service (Beta 2) from
-amazon.com has been chosen for this example as the Web Service Provider.</p>
-
-<p>Using the Amazon Simple Queue Service, developers can decouple components
-of their application so that they run independently. The Simple Queue Service
-provides the message management between the independent components. Any
-component of a distributed application can store any type of data in a
-reliable queue at Amazon.com. Another component or application can retrieve
-the data using queue semantics. More information on this service visit <a
-href="http://www.amazon.com/gp/aws/sdk/" target="_blank">here</a></p>
-
-<p>In this example String objects are used to store in the Amazon queue.</p>
-
-<p>Description of the operations is available at <a
-href="http://webservices.amazon.com/AWSSimpleQueueService/AWSSimpleQueueService.wsdl"
-target="_blank">http://webservices.amazon.com/AWSSimpleQueueService/AWSSimpleQueueService.wsdl</a></p>
-
-<h3><strong>Getting Started</strong></h3>
-
-<p>The users who need to get the Web services out of this queue need to be
-registered with the amazon.com, as a developer. (For this particular example
-a key has been obtained from Amazon and via property file it has called to
-OMElement). Once being registered, a subscription Id will be given. This key
-has to be used with your code to get the required Web services. The key that
-is being obtained, should be incorporated to the key.properties file, which
-is located at ${user.dir}\modules\samples\properties</p>
-
-<p>Registration can be done at <a
-href="http://www.amazon.com/gp/aws/registration/registration-form.html"
-target="_blank">http://www.amazon.com/gp/aws/registration/registration-form.html</a></p>
-
-<p>There are seven services available for this queue from Amazon. Create
-Queue, Configure Queue, List My Queues, En-queue, Read and De-queue. For this
-example Create Queue, En-queue, Read and List My Queues have been
-implemented.</p>
-
-<p>En-queue operation has not been implemented. This operation has left out
-for users to implement. It is expected that once the user has implemented
-this operation, the fundamental perspective of the Axis2-M2 over Web Services
-is dealt with perfectly.</p>
-
-<p>The code is based on invokeNonBlocking(String, OMElement, Callback)
-operation to understand the maximum flexibility of the Axis2-M2.</p>
-
-<h3><span class="style3">Operations</span></h3>
-
-<p>The manipulation of the queue is divided in to two categories,</p>
-
-<h4><em>IN operations</em></h4>
-
-<p>In these operations user will be given the autonomy to create a new queue
-or use an existing queue to enqueue the selected queue. Only one queue is
-subjected to manipulate at a given instance.</p>
-
-<h4><em>OUT operations</em></h4>
-
-<p>In these operations user will be given the autonomy to list the queues
-that once possess for a given subscription Id and read the entries of a
-particular queue or if the queue is empty the queue can deliberately be
-deleted. If the queue is not empty, the delete operation will not work. The
-queue must empty before it has to be deleted. It is expected that the user to
-implement the de-queue operation in order to get the full understanding of
-the code. Necessary steps will be provided at the end of this
-documentation.</p>
-
-<p>On the perimeters of this example, I have generated a key
-(0HPJJ4GJDSG2TZ2C8X02) which is the subscription Id and hard coded to the
-key.properties file and OMElement objects obtained the value through
-Properties API, for each operation invocation. The service end point also
-hard coded, (<a
-href="http://webservices.amazon.com/onca/soap?Service=AWSSimpleQueueService">http://webservices.amazon.com/onca/soap?Service=AWSSimpleQueueService</a>
-). Thus, when a user reads the queues available, queues pertaining to this
-key will be displayed.</p>
-
-<h2>Section 2 - Architecture and Advanced Operations</h2>
-
-<h3>Architecture of the Code</h3>
-
-<p>The structure of the code has been divided in to three sections for the
-simplicity of understanding.</p>
-<ul>
-  <li><em>GUI component</em> &#x2013; This code is pertaining to GUI
-    interface development. </li>
-  <li><em>Underlying Event Listeners and Runnable Component</em> &#x2013; The
-    code pertaining to GUI and Axis2-M2 codes are being allowed to run on
-    different threads. This is allowed, in order to make sure that the GUI is
-    not blocked during the method invocation and consume the whole power of
-    invokeNonBlocking() method. </li>
-  <li><em>Axis2-M2 Component </em>&#x2013; Since this example is based on
-    invokeNonBlocking() user has to provide the Callback object. Thus, a
-    class that is extended from Callback can be used manipulate the code
-    after completion of the invocation, which is onComplete() method. </li>
-</ul>
-
-<p>OMElement for relevant operations are carried out by CreateQueue,
-DeleteQueue, Enqueue and Read classes. Event Listener for IN operations is
-carried by ListenersIn and OUT operations ListenersOut classes. Separate
-threads are created by RunnableXXX classes. Extended classes from Callback
-handled by SimpleQueueXXXCallbackHandler classes.</p>
-
-<p>Once a event is generated by AmazonSimpleQueueServiceXX class, the event
-is handled by ListnersXX class. The listener classs has references to
-RunnableXXX class, which is carried out the Axis2-M2 execution code.</p>
-
-<p>Once an event is generated by AmazonSimpleQueueServiceXX class, the event
-is handled by ListnersXX class. The listener class has a reference to
-RunnableXXX class, which contains the Axis2-M2 execution code. RunnableXXX
-class has references to classes that support OMElement, which is needed as
-references to invokeNonBlocking(String, OMElement,Callback) method and
-SimpleQueueXXXCallbackHandler classes. Once the onComplete() method executes,
-the response is send back to GUI's response handling components. Figure below
-shows the schematic architecture of the sample.</p>
-
-<p><img src="AmazonSimpleWebService_clip_image002.gif" width="579"
-height="321"><br>
-All the Web services are available as rpc-literal encoded style. Thus,
-OMElemnts adheres to this requirement.</p>
-
-<p class="style3">Running the Samples</p>
-<ol>
-  <li><em>IN operations </em>&#x2013; Go to ${user.dir}/modules/samples and
-    type &#x201c;ant amazonIn&#x201d;</li>
-  <li><em>OUT operations</em> &#x2013; Go to ${user.dir}/modules/samples and
-    type &#x201c;ant amazonOut&#x201d;</li>
-</ol>
-
-<p>GUI for IN operations is popped by Running RunGUICQ class and OUT
-operations is popped by running RunGUIRQ class.</p>
-
-<p class="style3">Handling the GUI Components</p>
-<ul>
-  <li><em>IN operations</em> &#x2013; Once the GUI is being loaded, user is
-    given the access to create a new queue. When type the name and Enter a
-    new queue will be generated to the given subscription Id (which is hard
-    coded), if the name exists user will allow to enqueue the queue. <br>
-  </li>
-  <li><em>OUT operations</em> &#x2013; Once the GUI is being loaded, user
-    should load the queues pertaining to the given subscription Id (hard
-    coded for this example). The results will contain the queue name and
-    queue code. It is recommended that the user select only the full queue
-    name only not the queue code. Once selected, it will be displayed on the
-    text field. Select the text field and press enter to read the queue. </li>
-</ul>
-
-<p class="style3">Guide to Create the Dequeue Operation</p>
-<ol>
-  <li>It is recommended that the user go through with the Dequeue operation
-    description from WSDL.</li>
-  <li>Write your custom Callback class to handle the onComplete() method.</li>
-  <li>Write the OMElement which corresponds Dequeue opreation.</li>
-  <li>Write the class which implements the Runnable interface to handle the
-    invokeNonBlocking() method.</li>
-  <li>Write the event handler to execute the above mentioned class.</li>
-  <li>Add a Component to the AmazonSimpleQueueServieOut GUI class and add the
-    above class as an action listener.</li>
-</ol>
-
-<p><br>
-</p>
-<hr>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<html>
+<head>
+  <title>Amazon Simple Queue Web Service - Sample</title>
+  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+</head>
+
+<body>
+<h1>Amazon Queuing Service</h1>
+
+<h2>Section 1 - Basic Operations</h2>
+
+<h3>Introduction</h3>
+
+<p>The purpose of this example is to implement a user-friendly Queue Service
+with all possible operations such as Creating Queue, Reading etc, via
+Axis2-M2 SOAP engine. The Amazon Simple Queue Service (Beta 2) from
+amazon.com has been chosen for this example as the Web Service Provider.</p>
+
+<p>Using the Amazon Simple Queue Service, developers can decouple components
+of their application so that they run independently. The Simple Queue Service
+provides the message management between the independent components. Any
+component of a distributed application can store any type of data in a
+reliable queue at Amazon.com. Another component or application can retrieve
+the data using queue semantics. More information on this service visit <a
+href="http://www.amazon.com/gp/aws/sdk/" target="_blank">here</a></p>
+
+<p>In this example String objects are used to store in the Amazon queue.</p>
+
+<p>Description of the operations is available at <a
+href="http://webservices.amazon.com/AWSSimpleQueueService/AWSSimpleQueueService.wsdl"
+target="_blank">http://webservices.amazon.com/AWSSimpleQueueService/AWSSimpleQueueService.wsdl</a></p>
+
+<h3><strong>Getting Started</strong></h3>
+
+<p>The users who need to get the Web services out of this queue need to be
+registered with the amazon.com, as a developer. (For this particular example
+a key has been obtained from Amazon and via property file it has called to
+OMElement). Once being registered, a subscription Id will be given. This key
+has to be used with your code to get the required Web services. The key that
+is being obtained, should be incorporated to the key.properties file, which
+is located at ${user.dir}\modules\samples\properties</p>
+
+<p>Registration can be done at <a
+href="http://www.amazon.com/gp/aws/registration/registration-form.html"
+target="_blank">http://www.amazon.com/gp/aws/registration/registration-form.html</a></p>
+
+<p>There are seven services available for this queue from Amazon. Create
+Queue, Configure Queue, List My Queues, En-queue, Read and De-queue. For this
+example Create Queue, En-queue, Read and List My Queues have been
+implemented.</p>
+
+<p>En-queue operation has not been implemented. This operation has left out
+for users to implement. It is expected that once the user has implemented
+this operation, the fundamental perspective of the Axis2-M2 over Web Services
+is dealt with perfectly.</p>
+
+<p>The code is based on invokeNonBlocking(String, OMElement, Callback)
+operation to understand the maximum flexibility of the Axis2-M2.</p>
+
+<h3><span class="style3">Operations</span></h3>
+
+<p>The manipulation of the queue is divided in to two categories,</p>
+
+<h4><em>IN operations</em></h4>
+
+<p>In these operations user will be given the autonomy to create a new queue
+or use an existing queue to enqueue the selected queue. Only one queue is
+subjected to manipulate at a given instance.</p>
+
+<h4><em>OUT operations</em></h4>
+
+<p>In these operations user will be given the autonomy to list the queues
+that once possess for a given subscription Id and read the entries of a
+particular queue or if the queue is empty the queue can deliberately be
+deleted. If the queue is not empty, the delete operation will not work. The
+queue must empty before it has to be deleted. It is expected that the user to
+implement the de-queue operation in order to get the full understanding of
+the code. Necessary steps will be provided at the end of this
+documentation.</p>
+
+<p>On the perimeters of this example, I have generated a key
+(0HPJJ4GJDSG2TZ2C8X02) which is the subscription Id and hard coded to the
+key.properties file and OMElement objects obtained the value through
+Properties API, for each operation invocation. The service end point also
+hard coded, (<a
+href="http://webservices.amazon.com/onca/soap?Service=AWSSimpleQueueService">http://webservices.amazon.com/onca/soap?Service=AWSSimpleQueueService</a>
+). Thus, when a user reads the queues available, queues pertaining to this
+key will be displayed.</p>
+
+<h2>Section 2 - Architecture and Advanced Operations</h2>
+
+<h3>Architecture of the Code</h3>
+
+<p>The structure of the code has been divided in to three sections for the
+simplicity of understanding.</p>
+<ul>
+  <li><em>GUI component</em> &#x2013; This code is pertaining to GUI
+    interface development. </li>
+  <li><em>Underlying Event Listeners and Runnable Component</em> &#x2013; The
+    code pertaining to GUI and Axis2-M2 codes are being allowed to run on
+    different threads. This is allowed, in order to make sure that the GUI is
+    not blocked during the method invocation and consume the whole power of
+    invokeNonBlocking() method. </li>
+  <li><em>Axis2-M2 Component </em>&#x2013; Since this example is based on
+    invokeNonBlocking() user has to provide the Callback object. Thus, a
+    class that is extended from Callback can be used manipulate the code
+    after completion of the invocation, which is onComplete() method. </li>
+</ul>
+
+<p>OMElement for relevant operations are carried out by CreateQueue,
+DeleteQueue, Enqueue and Read classes. Event Listener for IN operations is
+carried by ListenersIn and OUT operations ListenersOut classes. Separate
+threads are created by RunnableXXX classes. Extended classes from Callback
+handled by SimpleQueueXXXCallbackHandler classes.</p>
+
+<p>Once a event is generated by AmazonSimpleQueueServiceXX class, the event
+is handled by ListnersXX class. The listener classs has references to
+RunnableXXX class, which is carried out the Axis2-M2 execution code.</p>
+
+<p>Once an event is generated by AmazonSimpleQueueServiceXX class, the event
+is handled by ListnersXX class. The listener class has a reference to
+RunnableXXX class, which contains the Axis2-M2 execution code. RunnableXXX
+class has references to classes that support OMElement, which is needed as
+references to invokeNonBlocking(String, OMElement,Callback) method and
+SimpleQueueXXXCallbackHandler classes. Once the onComplete() method executes,
+the response is send back to GUI's response handling components. Figure below
+shows the schematic architecture of the sample.</p>
+
+<p><img src="AmazonSimpleWebService_clip_image002.gif" width="579"
+height="321"><br>
+All the Web services are available as rpc-literal encoded style. Thus,
+OMElemnts adheres to this requirement.</p>
+
+<p class="style3">Running the Samples</p>
+<ol>
+  <li><em>IN operations </em>&#x2013; Go to ${user.dir}/modules/samples and
+    type &#x201c;ant amazonIn&#x201d;</li>
+  <li><em>OUT operations</em> &#x2013; Go to ${user.dir}/modules/samples and
+    type &#x201c;ant amazonOut&#x201d;</li>
+</ol>
+
+<p>GUI for IN operations is popped by Running RunGUICQ class and OUT
+operations is popped by running RunGUIRQ class.</p>
+
+<p class="style3">Handling the GUI Components</p>
+<ul>
+  <li><em>IN operations</em> &#x2013; Once the GUI is being loaded, user is
+    given the access to create a new queue. When type the name and Enter a
+    new queue will be generated to the given subscription Id (which is hard
+    coded), if the name exists user will allow to enqueue the queue. <br>
+  </li>
+  <li><em>OUT operations</em> &#x2013; Once the GUI is being loaded, user
+    should load the queues pertaining to the given subscription Id (hard
+    coded for this example). The results will contain the queue name and
+    queue code. It is recommended that the user select only the full queue
+    name only not the queue code. Once selected, it will be displayed on the
+    text field. Select the text field and press enter to read the queue. </li>
+</ul>
+
+<p class="style3">Guide to Create the Dequeue Operation</p>
+<ol>
+  <li>It is recommended that the user go through with the Dequeue operation
+    description from WSDL.</li>
+  <li>Write your custom Callback class to handle the onComplete() method.</li>
+  <li>Write the OMElement which corresponds Dequeue opreation.</li>
+  <li>Write the class which implements the Runnable interface to handle the
+    invokeNonBlocking() method.</li>
+  <li>Write the event handler to execute the above mentioned class.</li>
+  <li>Add a Component to the AmazonSimpleQueueServieOut GUI class and add the
+    above class as an action listener.</li>
+</ol>
+
+<p><br>
+</p>
+<hr>
+</body>
+</html>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/run.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/run.bat?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/run.bat (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/run.bat Wed Dec 20 04:23:24 2006
@@ -1,3 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
 @echo off
 rem ---------------------------------------------------------------------------
 rem Start script for running the Amazon Queuing service

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/src/sample/amazon/common/conf/key.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/src/sample/amazon/common/conf/key.properties?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/src/sample/amazon/common/conf/key.properties (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/amazonqs/src/sample/amazon/common/conf/key.properties Wed Dec 20 04:23:24 2006
@@ -1,3 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
 # This is the subcription Id for the Amazon Simple Queue Web Service
 # When a user need to run the sample through a new subcription Id 
 # simply changed this value of the key/value pair. 

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/build.xml Wed Dec 20 04:23:24 2006
@@ -1,15 +1,33 @@
-<project name="samples" default="run">
-    <property name="mainDir" value="../.."/>
-    <path id="axis.classpath">
-        <fileset dir="../../lib">
-            <include name="*.jar"/>
-        </fileset>
-        <pathelement location="./googleSearch.jar"/>
-    </path>
-    <target name="run">
-        <java classname="sample.google.search.AsynchronousClient"
-              classpathref="axis.classpath" fork="true">
-            <jvmarg value="-Daxis2.repo=${mainDir}"/>
-        </java>
-    </target>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+
+<project name="samples" default="run">
+    <property name="mainDir" value="../.."/>
+    <path id="axis.classpath">
+        <fileset dir="../../lib">
+            <include name="*.jar"/>
+        </fileset>
+        <pathelement location="./googleSearch.jar"/>
+    </path>
+    <target name="run">
+        <java classname="sample.google.search.AsynchronousClient"
+              classpathref="axis.classpath" fork="true">
+            <jvmarg value="-Daxis2.repo=${mainDir}"/>
+        </java>
+    </target>
 </project>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/docs/GoogleSearchHelp.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/docs/GoogleSearchHelp.html?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/docs/GoogleSearchHelp.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/docs/GoogleSearchHelp.html Wed Dec 20 04:23:24 2006
@@ -1,226 +1,243 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-"http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-  <title>Untitled Document</title>
-  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
-</head>
-
-<body>
-<h1>SOAP Based AXIS Client for Google Search</h1>
-
-<h2>Section 1 - Basic Operations</h2>
-
-<h3><strong>Introduction</strong></h3>
-
-<p>This is a client that can be used  to do Google searches using the Google
-Web API. It allows the user to enter a word as the query parameters in the
-given text field of the GUI and in a moment it shows the search results in
-the text pane below. The special feature of this client is, when the user
-presses the space key after typing a word it starts searching for that word
-and displays the results while the user typing the next word. This feature is
-made possible by  the non blocking  invocation capability of Axis2. </p>
-
-<h3><strong>Getting Started</strong></h3>
-
-<p>Google search operation is done by means of Google Web API. (You can learn
-more and create your own account in Google Web API <a
-href="http://www.google.com/apis/">here</a>). If you need to build your own
-client using this Web API,  you should obtain a license key which can be
-obtained easily at the Google Web API page.</p>
-
-<p>When you work with this client, you can use the given license key with
-this release (This default key is included in a property file inside the jar
-file which will be automatically used in the sample when started). However it
-is convenient for you to get a license key of your own since the daily limit
-per key is 1000 requests and the limit will be reached quickly if a single
-license key is shared by many users.</p>
-
-<p>The first and the easiest option is downloading the binary distribution
-which includes the compiled samples. Scripts are included for starting the
-program in either Windows or Unix.</p>
-
-<p>Second option is to build the samples from source. This has to be done
-with Maven. All you have to do is go to Modules/Samples and type maven in the
-command prompt. This will compile and will build all the jars required and
-copy the necessary scripts as well.</p>
-
-<p>Execute the necessary shell scripts / batch files to start the tool.</p>
-
-<h3><strong>Items in the UI</strong></h3>
-
-<p>The following figure shows the UI of the tool</p>
-
-<p><img border="0" src="sceenShot1.JPG" width="616" height="577"></p>
-
-<p>The key can be set by using the settings menu</p>
-
-<p><img border="0" src="screenShot2.JPG" width="163" height="129"></p>
-
-<p>The Help menu pops up a help window which includes this text</p>
-
-<p><img border="0" src="screenShot3.JPG" width="193" height="112"></p>
-
-<p> </p>
-
-<h3><strong>Operation</strong></h3>
-
-<p>Now you are ready to do a Google search - SOAP style. Just type the word
-you want to search in the small text field in the GUI. After you press enter
-or space, client starts the searching and you will see the results displayed
-few seconds.</p>
-
-<p>You can also set the number of results per page from the set menu. Maximum
-is 10 results. You can view more results for the last search by pressing
-"More Results" button and can come back to previous page by "Previous Page"
-button.</p>
-
-<h2>Section 2 - How the sample works</h2>
-
-<h3><strong>Architecture</strong></h3>
-
-<p>This client is built from five classes.</p>
-<ol>
-  <li>AsynchronousClient:- This class is responsible for sending requests</li>
-  <li>ClientUtil:- Utility class to build the soap envelope and the
-    messageContext;</li>
-  <li>ClientCallbackHandler:- receives the response messages and processes it
-    to extract the required content.</li>
-  <li>LinkFollower:- Listens to the hyperlink events and produce new windows
-    to open relevant URLs.</li>
-  <li>GUIHandler:- Builds &amp; shows the GUI, Listens  to the events in the
-    GUI, </li>
-</ol>
-
-<p><img src="archi.JPG" width="550" height="384"></p>
-
-<p>The main method is inside the AsynchronousClient class. First it
-instantiates a LinkFollower and a GUIHandler . Then the main program calls to
-the GUIHandler to display the GUI. After that, the program starts running and
-captures and acts according to the events fired by the GUI. The KeyListner
-that listens to the text field events fires a search when it detects a space
-or Enter key. It would not take long time send a request, but here it's done
-using a separate thread because it's important to isolate the GUI from
-internal actions. The user never gets interrupted in anyway. So the user can
-type the query terms continuously on the text field while the program does
-the search for the query terms that are already typed and displays the
-results.</p>
-
-<p>The use of the other thread comes when the user click on a hyperlink. Then
-the program opens the URL in a new window. This may take a while to load up
-depending on the Web site. Hence a separate thread is used , where the 
-LinkFollower is made a Thread. </p>
-
-<h3><strong>More on the Code</strong></h3>
-
-<p>Now we have two threads, one is for  sending the soap request without
-interrupting the user and other is to open a new windows for clicked URLs.
-But there is another important action. That is processing the received
-response and displaying the results. That is done in the
-ClientCallbackHandler. This is also an important feature of the
-InvokeNonBlocking operation of Axis2. It lets you to have an additional
-thread in the callbackHandler class. All you have to do is send an object of
-that class as a parameter when you send the message. How it is done in the
-program is as follows. </p>
-
-<p><code>call.invokeNonBlocking(opdesc, requestContext, new
-ClientEchoCallbackHandler());</code></p>
-
-<p>opDesc is a QName which caries the operation name and relevant
-namespace.</p>
-
-<p>requestContext is a MessageContext that holds the request soap
-envelope.</p>
-
-<p>ClientEchoCallbackHandler is a class that receives the response soap
-envelope.</p>
-
-<p>Briefly, client thread is just sending the requests and it is not waiting
-for the response. So this client can send any amount of requests sequentially
-irrespective of whether the responses are received or not.
-ClientEchoCallbackHandler is responsible for receiving response messages and
-processing it. It extracts the required details from the message and displays
-it in the text pane of the GUI.</p>
-
-<p>The request soap message is built at the ClientUtil class. According to
-the Google Web API WSDL file, required namespaces are selected and attached
-to the envelope. We don't have to include anything in the header. The name of
-the first child element of the body should be operation name and it should be
-namespace qualified. We also have to include the binding namespace to this
-element. Here it is attached as an attribute to that element,</p>
-
-<p><code>OMElement operation = omFactory.createOMElement("doGoogleSearch",
-"urn:GoogleSearch", "ns1");</code></p>
-
-<p><code>opration.addAttribute("SOAP-ENV:encordingStyle",
-"http://schemas.xmlsoap.org/soap/encoding/", null);</code></p>
-
-<p>All the child elements of the operation element are carrying required
-parameters such as license key, query terms, results per page, etc. (for more
-information, download the developer kit from <a
-href="http://www.google.com/apis/download.html">http://www.google.com/apis/download.html
-</a>, and refer "APIs_Reference.html")</p>
-
-<p>This is a sample request soap enelope,</p>
-
-<p><samp>&lt;soapenv:Envelope
-xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
-xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
-xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance/"
-xmlns:xsd="http://www.w3.org/1999/XMLSchema"&gt;<br>
-&lt;soapenv:Header&gt;&lt;/soapenv:Header&gt;<br>
-&lt;soapenv:Body&gt;</samp></p>
-
-<blockquote>
-  <p><samp>&lt;ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch"
-  SOAP-ENV:encordingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;<br>
-  &lt;key xmlns=""
-  xsi:type="xsd:string"&gt;F0wt5EFQFHKxTs+rl3P+27o6D112BTWd&lt;/key&gt;<br>
-  &lt;q xmlns="" xsi:type="xsd:string"&gt;axis&lt;/q&gt;<br>
-  &lt;start xmlns="" xsi:type="xsd:int"&gt;0&lt;/start&gt;<br>
-  &lt;maxResults xmlns="" xsi:type="xsd:int"&gt;2&lt;/maxResults&gt;<br>
-  &lt;filter xmlns="" xsi:type="xsd:boolean"&gt;true&lt;/filter&gt;<br>
-  &lt;restrict xmlns="" xsi:type="xsd:string"&gt;&lt;/restrict&gt;<br>
-  &lt;safeSearch xmlns=""
-  xsi:type="xsd:boolean"&gt;false&lt;/safeSearch&gt;<br>
-  &lt;lr xmlns="" xsi:type="xsd:string"&gt;&lt;/lr&gt;<br>
-  &lt;ie xmlns="" xsi:type="xsd:string"&gt;latin1&lt;/ie&gt;<br>
-  &lt;oe xmlns="" xsi:type="xsd:string"&gt;latin1&lt;/oe&gt;<br>
-  &lt;/ns1:doGoogleSearch&gt;</samp></p>
-</blockquote>
-
-<p><samp>&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;</samp></p>
-
-<p>You can find a sample soap response message from the toolkit that you
-download from the Google Web API page.. ClientCallbackHandler processing
-response soap and extract elements which have the local names as "snippet"
-and "URL". It has to work with AXIOM. You can notice that it uses several
-Iterators to go through the children of an OMElement.  the Iterator returns
-an object that can be cast into an OMNode. Since you can't call for the
-children of an OMNode we have to cast it to an OMElement where a type
-checking needs to be done as follows. </p>
-<pre>Iterator iterator0 =
-operation.getChildren();
-while (iterator0.hasNext()) {
-OMNode node = (OMNode) iterator0.next();
-if (node.getType() == OMNode.ELEMENT_NODE) {
-OMElement elem = (OMElement) node;</pre>
-
-<p>A notable fact here is that the text in the snippet element is in the HTML
-format. But it cannot be displayed straight away because you have to attach
-the HTML header and footer to that. "beginHTML" and "endHTML" static
-variables are used for that purpose.</p>
-
-<h3><strong>Extending the Client</strong></h3>
-
-<p>If you observe the WSDL file of the Google API, you can find two more
-operations other than "<strong>doGoogleSearch</strong>". Those are
-<strong>"doGetCachedPage" </strong> and " <strong>doSpellingSuggestion"
-</strong>. You can extend this program to work these operations too. Because
-the soap requests and responses are different, it will need separate
-ClientUtil classes and ClientCallbackHandler classes to fulfill this task.</p>
-
-<p>  </p>
-<hr>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<html>
+<head>
+  <title>Untitled Document</title>
+  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
+</head>
+
+<body>
+<h1>SOAP Based AXIS Client for Google Search</h1>
+
+<h2>Section 1 - Basic Operations</h2>
+
+<h3><strong>Introduction</strong></h3>
+
+<p>This is a client that can be used  to do Google searches using the Google
+Web API. It allows the user to enter a word as the query parameters in the
+given text field of the GUI and in a moment it shows the search results in
+the text pane below. The special feature of this client is, when the user
+presses the space key after typing a word it starts searching for that word
+and displays the results while the user typing the next word. This feature is
+made possible by  the non blocking  invocation capability of Axis2. </p>
+
+<h3><strong>Getting Started</strong></h3>
+
+<p>Google search operation is done by means of Google Web API. (You can learn
+more and create your own account in Google Web API <a
+href="http://www.google.com/apis/">here</a>). If you need to build your own
+client using this Web API,  you should obtain a license key which can be
+obtained easily at the Google Web API page.</p>
+
+<p>When you work with this client, you can use the given license key with
+this release (This default key is included in a property file inside the jar
+file which will be automatically used in the sample when started). However it
+is convenient for you to get a license key of your own since the daily limit
+per key is 1000 requests and the limit will be reached quickly if a single
+license key is shared by many users.</p>
+
+<p>The first and the easiest option is downloading the binary distribution
+which includes the compiled samples. Scripts are included for starting the
+program in either Windows or Unix.</p>
+
+<p>Second option is to build the samples from source. This has to be done
+with Maven. All you have to do is go to Modules/Samples and type maven in the
+command prompt. This will compile and will build all the jars required and
+copy the necessary scripts as well.</p>
+
+<p>Execute the necessary shell scripts / batch files to start the tool.</p>
+
+<h3><strong>Items in the UI</strong></h3>
+
+<p>The following figure shows the UI of the tool</p>
+
+<p><img border="0" src="sceenShot1.JPG" width="616" height="577"></p>
+
+<p>The key can be set by using the settings menu</p>
+
+<p><img border="0" src="screenShot2.JPG" width="163" height="129"></p>
+
+<p>The Help menu pops up a help window which includes this text</p>
+
+<p><img border="0" src="screenShot3.JPG" width="193" height="112"></p>
+
+<p> </p>
+
+<h3><strong>Operation</strong></h3>
+
+<p>Now you are ready to do a Google search - SOAP style. Just type the word
+you want to search in the small text field in the GUI. After you press enter
+or space, client starts the searching and you will see the results displayed
+few seconds.</p>
+
+<p>You can also set the number of results per page from the set menu. Maximum
+is 10 results. You can view more results for the last search by pressing
+"More Results" button and can come back to previous page by "Previous Page"
+button.</p>
+
+<h2>Section 2 - How the sample works</h2>
+
+<h3><strong>Architecture</strong></h3>
+
+<p>This client is built from five classes.</p>
+<ol>
+  <li>AsynchronousClient:- This class is responsible for sending requests</li>
+  <li>ClientUtil:- Utility class to build the soap envelope and the
+    messageContext;</li>
+  <li>ClientCallbackHandler:- receives the response messages and processes it
+    to extract the required content.</li>
+  <li>LinkFollower:- Listens to the hyperlink events and produce new windows
+    to open relevant URLs.</li>
+  <li>GUIHandler:- Builds &amp; shows the GUI, Listens  to the events in the
+    GUI, </li>
+</ol>
+
+<p><img src="archi.JPG" width="550" height="384"></p>
+
+<p>The main method is inside the AsynchronousClient class. First it
+instantiates a LinkFollower and a GUIHandler . Then the main program calls to
+the GUIHandler to display the GUI. After that, the program starts running and
+captures and acts according to the events fired by the GUI. The KeyListner
+that listens to the text field events fires a search when it detects a space
+or Enter key. It would not take long time send a request, but here it's done
+using a separate thread because it's important to isolate the GUI from
+internal actions. The user never gets interrupted in anyway. So the user can
+type the query terms continuously on the text field while the program does
+the search for the query terms that are already typed and displays the
+results.</p>
+
+<p>The use of the other thread comes when the user click on a hyperlink. Then
+the program opens the URL in a new window. This may take a while to load up
+depending on the Web site. Hence a separate thread is used , where the 
+LinkFollower is made a Thread. </p>
+
+<h3><strong>More on the Code</strong></h3>
+
+<p>Now we have two threads, one is for  sending the soap request without
+interrupting the user and other is to open a new windows for clicked URLs.
+But there is another important action. That is processing the received
+response and displaying the results. That is done in the
+ClientCallbackHandler. This is also an important feature of the
+InvokeNonBlocking operation of Axis2. It lets you to have an additional
+thread in the callbackHandler class. All you have to do is send an object of
+that class as a parameter when you send the message. How it is done in the
+program is as follows. </p>
+
+<p><code>call.invokeNonBlocking(opdesc, requestContext, new
+ClientEchoCallbackHandler());</code></p>
+
+<p>opDesc is a QName which caries the operation name and relevant
+namespace.</p>
+
+<p>requestContext is a MessageContext that holds the request soap
+envelope.</p>
+
+<p>ClientEchoCallbackHandler is a class that receives the response soap
+envelope.</p>
+
+<p>Briefly, client thread is just sending the requests and it is not waiting
+for the response. So this client can send any amount of requests sequentially
+irrespective of whether the responses are received or not.
+ClientEchoCallbackHandler is responsible for receiving response messages and
+processing it. It extracts the required details from the message and displays
+it in the text pane of the GUI.</p>
+
+<p>The request soap message is built at the ClientUtil class. According to
+the Google Web API WSDL file, required namespaces are selected and attached
+to the envelope. We don't have to include anything in the header. The name of
+the first child element of the body should be operation name and it should be
+namespace qualified. We also have to include the binding namespace to this
+element. Here it is attached as an attribute to that element,</p>
+
+<p><code>OMElement operation = omFactory.createOMElement("doGoogleSearch",
+"urn:GoogleSearch", "ns1");</code></p>
+
+<p><code>opration.addAttribute("SOAP-ENV:encordingStyle",
+"http://schemas.xmlsoap.org/soap/encoding/", null);</code></p>
+
+<p>All the child elements of the operation element are carrying required
+parameters such as license key, query terms, results per page, etc. (for more
+information, download the developer kit from <a
+href="http://www.google.com/apis/download.html">http://www.google.com/apis/download.html
+</a>, and refer "APIs_Reference.html")</p>
+
+<p>This is a sample request soap enelope,</p>
+
+<p><samp>&lt;soapenv:Envelope
+xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
+xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance/"
+xmlns:xsd="http://www.w3.org/1999/XMLSchema"&gt;<br>
+&lt;soapenv:Header&gt;&lt;/soapenv:Header&gt;<br>
+&lt;soapenv:Body&gt;</samp></p>
+
+<blockquote>
+  <p><samp>&lt;ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch"
+  SOAP-ENV:encordingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;<br>
+  &lt;key xmlns=""
+  xsi:type="xsd:string"&gt;F0wt5EFQFHKxTs+rl3P+27o6D112BTWd&lt;/key&gt;<br>
+  &lt;q xmlns="" xsi:type="xsd:string"&gt;axis&lt;/q&gt;<br>
+  &lt;start xmlns="" xsi:type="xsd:int"&gt;0&lt;/start&gt;<br>
+  &lt;maxResults xmlns="" xsi:type="xsd:int"&gt;2&lt;/maxResults&gt;<br>
+  &lt;filter xmlns="" xsi:type="xsd:boolean"&gt;true&lt;/filter&gt;<br>
+  &lt;restrict xmlns="" xsi:type="xsd:string"&gt;&lt;/restrict&gt;<br>
+  &lt;safeSearch xmlns=""
+  xsi:type="xsd:boolean"&gt;false&lt;/safeSearch&gt;<br>
+  &lt;lr xmlns="" xsi:type="xsd:string"&gt;&lt;/lr&gt;<br>
+  &lt;ie xmlns="" xsi:type="xsd:string"&gt;latin1&lt;/ie&gt;<br>
+  &lt;oe xmlns="" xsi:type="xsd:string"&gt;latin1&lt;/oe&gt;<br>
+  &lt;/ns1:doGoogleSearch&gt;</samp></p>
+</blockquote>
+
+<p><samp>&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;</samp></p>
+
+<p>You can find a sample soap response message from the toolkit that you
+download from the Google Web API page.. ClientCallbackHandler processing
+response soap and extract elements which have the local names as "snippet"
+and "URL". It has to work with AXIOM. You can notice that it uses several
+Iterators to go through the children of an OMElement.  the Iterator returns
+an object that can be cast into an OMNode. Since you can't call for the
+children of an OMNode we have to cast it to an OMElement where a type
+checking needs to be done as follows. </p>
+<pre>Iterator iterator0 =
+operation.getChildren();
+while (iterator0.hasNext()) {
+OMNode node = (OMNode) iterator0.next();
+if (node.getType() == OMNode.ELEMENT_NODE) {
+OMElement elem = (OMElement) node;</pre>
+
+<p>A notable fact here is that the text in the snippet element is in the HTML
+format. But it cannot be displayed straight away because you have to attach
+the HTML header and footer to that. "beginHTML" and "endHTML" static
+variables are used for that purpose.</p>
+
+<h3><strong>Extending the Client</strong></h3>
+
+<p>If you observe the WSDL file of the Google API, you can find two more
+operations other than "<strong>doGoogleSearch</strong>". Those are
+<strong>"doGetCachedPage" </strong> and " <strong>doSpellingSuggestion"
+</strong>. You can extend this program to work these operations too. Because
+the soap requests and responses are different, it will need separate
+ClientUtil classes and ClientCallbackHandler classes to fulfill this task.</p>
+
+<p>  </p>
+<hr>
+</body>
+</html>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/run.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/run.bat?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/run.bat (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/googlesearch/run.bat Wed Dec 20 04:23:24 2006
@@ -1,3 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
 @echo off
 rem ---------------------------------------------------------------------------
 rem Start script for running the Google Search tool

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/groovy/src/sample/groovy/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/groovy/src/sample/groovy/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/groovy/src/sample/groovy/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/groovy/src/sample/groovy/META-INF/services.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <service name="GroovyService">
     <description>
         This is Groovy service , what this really does is take the incoming SOAP message

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/build.xml Wed Dec 20 04:23:24 2006
@@ -1,45 +1,62 @@
-<project name="FileTransferSample" default="service">
-	<property environment="env" />
-	<property name="axis2.home" value="../../" />
-	<property name="axis2.repo" value="${axis2.home}/repository" />
-	<property name="build.dir" value="build" />
-	<property name="client.classes.dir" value="${build.dir}/classes" />
-	<path id="axis.classpath">
-		<fileset dir="${axis2.home}/lib">
-			<include name="*.jar" />
-		</fileset>
-		<pathelement location="build/mtomSampleClient.jar" />
-	</path>
-
-	<target name="service" depends="compile">
-		<jar destfile="${build.dir}/mtomSample.aar">
-			<fileset dir="src/sample/mtom/filetransfer/service/">
-				<include name="META-INF/services.xml" />
-			</fileset>
-			<fileset dir="${build.dir}/classes">
-				<include name="sample/mtom/filetransfer/service/**/*.class" />
-			</fileset>
-		</jar>
-	</target>
-
-	<target name="compile">
-		<mkdir dir="${client.classes.dir}" />
-		<!-- Compile client -->
-		<javac srcdir="src" destdir="${client.classes.dir}">
-			<classpath refid="axis.classpath" />
-		</javac>
-	</target>
-	<target name="client" depends="compile">
-		<jar destfile="${build.dir}/mtomSampleClient.jar">
-			<fileset dir="${build.dir}/classes">
-				<include name="sample/mtom/filetransfer/client/**/*.class" />
-			</fileset>
-		</jar>
-		<java classname="sample.mtom.filetransfer.client.MTOMClient" classpathref="axis.classpath" fork="true">
-			<jvmarg value="-Daxis2.repo=${axis2.repo}" />
-		</java>
-	</target>
-	<target name="clean">
-		<delete dir="build" />
-	</target>
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project name="FileTransferSample" default="service">
+	<property environment="env" />
+	<property name="axis2.home" value="../../" />
+	<property name="axis2.repo" value="${axis2.home}/repository" />
+	<property name="build.dir" value="build" />
+	<property name="client.classes.dir" value="${build.dir}/classes" />
+	<path id="axis.classpath">
+		<fileset dir="${axis2.home}/lib">
+			<include name="*.jar" />
+		</fileset>
+		<pathelement location="build/mtomSampleClient.jar" />
+	</path>
+
+	<target name="service" depends="compile">
+		<jar destfile="${build.dir}/mtomSample.aar">
+			<fileset dir="src/sample/mtom/filetransfer/service/">
+				<include name="META-INF/services.xml" />
+			</fileset>
+			<fileset dir="${build.dir}/classes">
+				<include name="sample/mtom/filetransfer/service/**/*.class" />
+			</fileset>
+		</jar>
+	</target>
+
+	<target name="compile">
+		<mkdir dir="${client.classes.dir}" />
+		<!-- Compile client -->
+		<javac srcdir="src" destdir="${client.classes.dir}">
+			<classpath refid="axis.classpath" />
+		</javac>
+	</target>
+	<target name="client" depends="compile">
+		<jar destfile="${build.dir}/mtomSampleClient.jar">
+			<fileset dir="${build.dir}/classes">
+				<include name="sample/mtom/filetransfer/client/**/*.class" />
+			</fileset>
+		</jar>
+		<java classname="sample.mtom.filetransfer.client.MTOMClient" classpathref="axis.classpath" fork="true">
+			<jvmarg value="-Daxis2.repo=${axis2.repo}" />
+		</java>
+	</target>
+	<target name="clean">
+		<delete dir="build" />
+	</target>
+</project>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/run.bat
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/run.bat?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/run.bat (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/run.bat Wed Dec 20 04:23:24 2006
@@ -1,3 +1,18 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
 @echo of
 rem ---------------------------------------------------------------------------
 rem Start script for running the MTOM Image Transfer Service

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/mtomsample/src/sample/mtom/filetransfer/service/META-INF/services.xml Wed Dec 20 04:23:24 2006
@@ -1,30 +1,47 @@
-<service name="MTOMService">
-    <description>
-        This is a sample Web Service for illustrating MTOM based binary data transfer.
-    </description>
-    <parameter name="ServiceClass" locked="false">sample.mtom.filetransfer.service.MTOMService</parameter>
-    <operation name="uploadFileUsingMTOM">
-        <parameter name="enableMTOM" locked="false">true</parameter>
-        <parameter name="enableSwA" locked="false">false</parameter>
-        <actionMapping>urn:uploadFileUsingMTOM</actionMapping>
-        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
-    </operation>
-    <operation name="uploadFileUsingSwA">
-        <parameter name="enableMTOM" locked="false">false</parameter>
-        <parameter name="enableSwA" locked="false">true</parameter>
-        <actionMapping>urn:uploadFileUsingSwA</actionMapping>
-        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
-    </operation>
-    <operation name="sendReceiveUsingMTOM">
-        <parameter name="enableMTOM" locked="false">true</parameter>
-        <parameter name="enableSwA" locked="false">false</parameter>
-        <actionMapping>urn:sendReceiveUsingMTOM</actionMapping>
-        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
-    </operation>
-    <operation name="sendReceiveUsingSwA">
-        <parameter name="enableMTOM" locked="false">false</parameter>
-        <parameter name="enableSwA" locked="false">true</parameter>
-        <actionMapping>urn:sendReceiveUsingSwA</actionMapping>
-        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
-    </operation>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<service name="MTOMService">
+    <description>
+        This is a sample Web Service for illustrating MTOM based binary data transfer.
+    </description>
+    <parameter name="ServiceClass" locked="false">sample.mtom.filetransfer.service.MTOMService</parameter>
+    <operation name="uploadFileUsingMTOM">
+        <parameter name="enableMTOM" locked="false">true</parameter>
+        <parameter name="enableSwA" locked="false">false</parameter>
+        <actionMapping>urn:uploadFileUsingMTOM</actionMapping>
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </operation>
+    <operation name="uploadFileUsingSwA">
+        <parameter name="enableMTOM" locked="false">false</parameter>
+        <parameter name="enableSwA" locked="false">true</parameter>
+        <actionMapping>urn:uploadFileUsingSwA</actionMapping>
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </operation>
+    <operation name="sendReceiveUsingMTOM">
+        <parameter name="enableMTOM" locked="false">true</parameter>
+        <parameter name="enableSwA" locked="false">false</parameter>
+        <actionMapping>urn:sendReceiveUsingMTOM</actionMapping>
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </operation>
+    <operation name="sendReceiveUsingSwA">
+        <parameter name="enableMTOM" locked="false">false</parameter>
+        <parameter name="enableSwA" locked="false">true</parameter>
+        <actionMapping>urn:sendReceiveUsingSwA</actionMapping>
+        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+    </operation>
 </service>

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/docs/readme.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/docs/readme.html?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/docs/readme.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/docs/readme.html Wed Dec 20 04:23:24 2006
@@ -1,4 +1,21 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <HTML>
 <HEAD>
 	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">

Modified: webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/src/sample/sgccalculator/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/src/sample/sgccalculator/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/src/sample/sgccalculator/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/deprecated/sgccalculator/src/sample/sgccalculator/META-INF/services.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <serviceGroup>
 
   <service name="AddService" scope="soapsession">

Modified: webservices/axis2/branches/java/1_1/modules/samples/eventing/listner1.services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/eventing/listner1.services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/eventing/listner1.services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/eventing/listner1.services.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <service name="ListnerService1">
 
    <parameter name="ServiceClass" locked="xsd:false">sample.eventing.ListnerService1</parameter>

Modified: webservices/axis2/branches/java/1_1/modules/samples/eventing/listner2.services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/eventing/listner2.services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/eventing/listner2.services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/eventing/listner2.services.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <service name="ListnerService2">
 
    <parameter name="ServiceClass" locked="xsd:false">sample.eventing.ListnerService2</parameter>

Modified: webservices/axis2/branches/java/1_1/modules/samples/eventing/publisher.services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/eventing/publisher.services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/eventing/publisher.services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/eventing/publisher.services.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <service name="PublisherService">
 
    <parameter name="ServiceClass" locked="xsd:false">sample.eventing.PublisherService</parameter>

Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/bank.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/bank.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/bank.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/bank.wsdl Wed Dec 20 04:23:24 2006
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <wsdl:definitions targetNamespace="http://example"
 	xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:tns="http://example"
 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/build.xml Wed Dec 20 04:23:24 2006
@@ -1,135 +1,152 @@
-<project basedir="." default="generate.service">
-
-    <property environment="env"/>
-
-    <property name="wsdl.uri" value="bank.wsdl"/>
-    <property name="service.target" value="build/service"/>
-    <property name="client.target" value="build/client"/>
-
-    <!-- Build the service, then the client. -->
-    <target name="jar">
-        <ant dir="service" target="jar.server"/>
-        <ant dir="client"/>
-    </target>
-
-    <target name="run.client" depends="gen.stub">
-
-        <condition property="params.ok">
-            <and>
-                <isset property="url"/>
-                <isset property="account"/>
-                <isset property="amt"/>
-            </and>
-        </condition>
-
-        <fail message="One of the parameters are not set. Usage: BankClient -Durl=&lt;url&gt; -Daccount=&lt;account&gt; -Damt=&lt;amount&gt;"
-        unless="params.ok"/>
-        
-        <java classname="example.BankClient" fork="true">
-            <arg line="${url} ${account} ${amt}"/>
-            <classpath>
-                <pathelement location="${client.target}/BankService-test-client.jar"/>
-                <fileset dir="../../lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </java>
-    </target>
-
-    <target name="generate.all" depends="generate.service,gen.stub"/>
-
-    <target name="generate.service">
-
-        <delete dir="${service.target}"/>
-        <mkdir dir="${service.target}"/>
-        <mkdir dir="${service.target}/classes"/>
-
-        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
-            <arg line="-uri ${wsdl.uri}"/>
-            <arg line="-ss"/>
-            <arg line="-sd"/>
-            <arg line="-o ${service.target}"/>
-            <!-- Output directory in which to generate files --> <!-- NB it generates to the src folder under this directory!! -->
-            <classpath>
-                <fileset dir="../../lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </java>
-
-        <!--copy the already written skeleton class-->
-        <copy file="service/src/example/BankServiceSkeleton.java"
-              todir="${service.target}/src/example"
-              overwrite="yes"/>
-
-        <!--First let's compile the classes-->
-        <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
-               destdir="${service.target}/classes" srcdir="${service.target}/src">
-            <classpath>
-                <fileset dir="../../lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </javac>
-
-        <!--aar them up -->
-        <copy toDir="${service.target}/classes/META-INF" failonerror="false">
-            <fileset dir="${service.target}/resources">
-                <include name="*.xml"/>
-                <include name="*.wsdl"/>
-                <include name="*.xsd"/>
-            </fileset>
-        </copy>
-        <jar destfile="${service.target}/BankService.aar">
-            <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
-        </jar>
-
-        <copy file="${service.target}/BankService.aar" tofile="../../repository/services/sample-faulthandling.aar"
-              overwrite="true"/>
-
-    </target>
-
-    <target name="gen.stub">
-        <delete dir="${client.target}"/>
-        <mkdir dir="${client.target}"/>
-        <mkdir dir="${client.target}/classes"/>
-        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
-            <arg line="-uri ${wsdl.uri}"/>
-            <arg line="-u"/>
-            <arg line="-o ${client.target}"/>
-            <classpath>
-                <fileset dir="../../lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </java>
-
-        <copy file="client/src/example/BankClient.java" todir="${client.target}/src/example"/>
-
-        <!--now compile the stub classes-->
-        <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
-               destdir="${client.target}/classes">
-            <src path="${client.target}/src"/>
-            <classpath>
-                <fileset dir="../../lib">
-                    <include name="*.jar"/>
-                </fileset>
-            </classpath>
-        </javac>
-
-        <!--jar the compiled stuff-->
-        <jar destfile="${client.target}/BankService-test-client.jar">
-            <fileset dir="${client.target}/classes">
-                <exclude name="**/META-INF/*.*"/>
-                <exclude name="**/lib/*.*"/>
-                <exclude name="**/*MessageReceiver.class"/>
-                <exclude name="**/*Skeleton.class"/>
-            </fileset>
-        </jar>
-    </target>
-
-    <target name="clean">
-        <delete dir="build"/>
-    </target>
-
-</project>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project basedir="." default="generate.service">
+
+    <property environment="env"/>
+
+    <property name="wsdl.uri" value="bank.wsdl"/>
+    <property name="service.target" value="build/service"/>
+    <property name="client.target" value="build/client"/>
+
+    <!-- Build the service, then the client. -->
+    <target name="jar">
+        <ant dir="service" target="jar.server"/>
+        <ant dir="client"/>
+    </target>
+
+    <target name="run.client" depends="gen.stub">
+
+        <condition property="params.ok">
+            <and>
+                <isset property="url"/>
+                <isset property="account"/>
+                <isset property="amt"/>
+            </and>
+        </condition>
+
+        <fail message="One of the parameters are not set. Usage: BankClient -Durl=&lt;url&gt; -Daccount=&lt;account&gt; -Damt=&lt;amount&gt;"
+        unless="params.ok"/>
+        
+        <java classname="example.BankClient" fork="true">
+            <arg line="${url} ${account} ${amt}"/>
+            <classpath>
+                <pathelement location="${client.target}/BankService-test-client.jar"/>
+                <fileset dir="../../lib">
+                    <include name="*.jar"/>
+                </fileset>
+            </classpath>
+        </java>
+    </target>
+
+    <target name="generate.all" depends="generate.service,gen.stub"/>
+
+    <target name="generate.service">
+
+        <delete dir="${service.target}"/>
+        <mkdir dir="${service.target}"/>
+        <mkdir dir="${service.target}/classes"/>
+
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <arg line="-uri ${wsdl.uri}"/>
+            <arg line="-ss"/>
+            <arg line="-sd"/>
+            <arg line="-o ${service.target}"/>
+            <!-- Output directory in which to generate files --> <!-- NB it generates to the src folder under this directory!! -->
+            <classpath>
+                <fileset dir="../../lib">
+                    <include name="*.jar"/>
+                </fileset>
+            </classpath>
+        </java>
+
+        <!--copy the already written skeleton class-->
+        <copy file="service/src/example/BankServiceSkeleton.java"
+              todir="${service.target}/src/example"
+              overwrite="yes"/>
+
+        <!--First let's compile the classes-->
+        <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+               destdir="${service.target}/classes" srcdir="${service.target}/src">
+            <classpath>
+                <fileset dir="../../lib">
+                    <include name="*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+
+        <!--aar them up -->
+        <copy toDir="${service.target}/classes/META-INF" failonerror="false">
+            <fileset dir="${service.target}/resources">
+                <include name="*.xml"/>
+                <include name="*.wsdl"/>
+                <include name="*.xsd"/>
+            </fileset>
+        </copy>
+        <jar destfile="${service.target}/BankService.aar">
+            <fileset excludes="**/Test.class" dir="${service.target}/classes"/>
+        </jar>
+
+        <copy file="${service.target}/BankService.aar" tofile="../../repository/services/sample-faulthandling.aar"
+              overwrite="true"/>
+
+    </target>
+
+    <target name="gen.stub">
+        <delete dir="${client.target}"/>
+        <mkdir dir="${client.target}"/>
+        <mkdir dir="${client.target}/classes"/>
+        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
+            <arg line="-uri ${wsdl.uri}"/>
+            <arg line="-u"/>
+            <arg line="-o ${client.target}"/>
+            <classpath>
+                <fileset dir="../../lib">
+                    <include name="*.jar"/>
+                </fileset>
+            </classpath>
+        </java>
+
+        <copy file="client/src/example/BankClient.java" todir="${client.target}/src/example"/>
+
+        <!--now compile the stub classes-->
+        <javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true"
+               destdir="${client.target}/classes">
+            <src path="${client.target}/src"/>
+            <classpath>
+                <fileset dir="../../lib">
+                    <include name="*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+
+        <!--jar the compiled stuff-->
+        <jar destfile="${client.target}/BankService-test-client.jar">
+            <fileset dir="${client.target}/classes">
+                <exclude name="**/META-INF/*.*"/>
+                <exclude name="**/lib/*.*"/>
+                <exclude name="**/*MessageReceiver.class"/>
+                <exclude name="**/*Skeleton.class"/>
+            </fileset>
+        </jar>
+    </target>
+
+    <target name="clean">
+        <delete dir="build"/>
+    </target>
+
+</project>

Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/client/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/client/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/client/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/client/build.xml Wed Dec 20 04:23:24 2006
@@ -1,3 +1,20 @@
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
 <project basedir="." default="jar.client">
 
     <property environment="env"/>



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