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 [21/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/faulthandling/docs/FaultHandlingSampleGuide.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/docs/FaultHandlingSampleGuide.html Wed Dec 20 04:23:24 2006
@@ -1,127 +1,144 @@
-<html>
-<head>
- <meta http-equiv="content-type" content="">
- <title>:: Exception Handling using WSDL Faults ::</title>
-</head>
-
-<body>
-<h1>Exception Handling using WSDL Faults</h1>
-
-<p>This sample demonstrates how to specify a WSDL fault in order to allow
- your service to communicate exception pathways to your clients.</p>
-
-<p>Running of this sample assumes that you are running this within the
- extracted release folder.</p>
-
-<h2>Constructing the Service and Client</h2>
-
-<p>The first step is to generate the service skeleton and other interface
- classes from the WSDL.</p>
-
-<p>Look at <em><a href="../bank.wsdl">bank.wsdl</a></em>. It defines the
- interface for our service. Of particular interest are the
- <strong>AccountNotExistFault</strong> and
- <strong>InsufficientFundFault</strong> types defined in the wsdl:types
- element.</p>
-
-<p>Using a command prompt, got to the folder of this example and type
- <strong>ant generate.service</strong> or just <strong> ant</strong>. This
- will:</p>
-<ul>
- <li>Generate the source for all the service classes in
- <em>build/service/src/example</em></li>
- <li>Generate <em>services.xml</em> and a more complete
- <em>BankService.wsdl</em> into the <em>build/service/resources</em>
- folder.</li>
- <li>Generate a <em>build/service/build.xml</em></li>
- <li>Copies the pre-populated service skeleton class to the generated
- code</li>
- <li>Compile the Java classes for the service</li>
- <li>Create the service archive and copy it to Axis2 repository
- (<em>repository/services/</em>) as sample-faulthandling.aar.</li>
-</ul>
-
-<p>Open up <em>service/src/example/BankServiceSkeleton.java</em> and you will
- see the following code fragment inside <strong>#withdraw</strong> method.
- When <strong>generate.service</strong> has been executed, Axis2 generates a skeleton class
- (<em>build/service/src/example/BankServiceSkeleton.java</em>) which has an empty method.
- We replace it, the genedrated skeleton with a pre-populated skeleton class
- (<em>service/src/example/BankServiceSkeleton.java</em>) which has the
- following code inside it.</p>
-<pre> final String account = param0.getAccount();
- if (account.equals("13")) {
- final AccountNotExistFault fault = new AccountNotExistFault();
- fault.setAccount(account);
- AccountNotExistFaultMessageException messageException = new
- AccountNotExistFaultMessageException("Account does
- not exist!");
- messageException.setFaultMessage(fault);
- throw messageException;
- }
-
- final int amount = param0.getAmount();
- if (amount > 1000) {
- final InsufficientFundFault fault = new InsufficientFundFault();
- fault.setAccount(account);
- fault.setBalance(1000);
- fault.setRequestedFund(amount);
- InsufficientFundFaultMessageException messageException = new
- InsufficientFundFaultMessageException("Insufficient
- funds");
- messageException.setFaultMessage(fault);
- throw messageException;
- }
-
- final WithdrawResponse response = new WithdrawResponse();
- response.setBalance(1000 - amount);
- return response;
-</pre>
-
-<p>Note that the source generated for the client will include the 2 faults
- and the local Exceptions through which they will be transmitted. Also note
- that the Exceptions are generated within the <em>BankStub</em> class.</p>
-
-<h2>Deploying the Service</h2>
-
-<p>The above step must have already copied your BankService.aar file in to
- <em>repository/services/</em> folder. Then go to <em>bin</em> folder and run
- either of axis2server.bat or axis2server.sh, depending on your platform in
- order to startup Axis2 server.</p>
-
-<p>With the default configuration, if you go to <a
- href="http://localhost:8080/axis2/"> http://localhost:8080/axis2/</a> you
- should see <em>BankService</em> was deployed.</p>
-
-<h2>Running the Client</h2>
-
-<p>Invoke the <em>client/src/example/BankClient</em>.java class. You may use
- the command scripts to do so. You need to supply 3 parameters to the command-
- url, account and amount.</p>
-<ul>
- <li><strong>ant run.client
- -Durl=http://localhost:8080/axis2/services/BankService -Daccount=13
- -Damt=400</strong><br>
- Throws AccountNotExistFaultMessageException. You will see "Account#13
- does not exist"</li>
- <li><strong>ant run.client
- -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
- -Damt=1200</strong><br>
- Throws InsufficientFundsFaultMessageException. You will see "Account#88
- has balance of 1000. It cannot support withdrawal of 1200"<br>
- </li>
- <li><strong>ant run.client
- -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
- -Damt=400</strong><br>
- Succeeds with a balance of 600. You will see "Balance = 600"</li>
-</ul>
-When you call ant run.client with parameters, before running
-<em>client/src/example/BankClient.java</em> class, it does the following as
-well:
-<ul>
- <li>Generate the stubs (for the client) from the WSDL</li>
- <li>Compile the client classes</li>
- <li>Create a Jar of the client classes and copy it to
- <em>build/client/BankService-test-client.jar</em></li>
-</ul>
-</body>
-</html>
+<!--
+/*
+ * 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="">
+ <title>:: Exception Handling using WSDL Faults ::</title>
+</head>
+
+<body>
+<h1>Exception Handling using WSDL Faults</h1>
+
+<p>This sample demonstrates how to specify a WSDL fault in order to allow
+ your service to communicate exception pathways to your clients.</p>
+
+<p>Running of this sample assumes that you are running this within the
+ extracted release folder.</p>
+
+<h2>Constructing the Service and Client</h2>
+
+<p>The first step is to generate the service skeleton and other interface
+ classes from the WSDL.</p>
+
+<p>Look at <em><a href="../bank.wsdl">bank.wsdl</a></em>. It defines the
+ interface for our service. Of particular interest are the
+ <strong>AccountNotExistFault</strong> and
+ <strong>InsufficientFundFault</strong> types defined in the wsdl:types
+ element.</p>
+
+<p>Using a command prompt, got to the folder of this example and type
+ <strong>ant generate.service</strong> or just <strong> ant</strong>. This
+ will:</p>
+<ul>
+ <li>Generate the source for all the service classes in
+ <em>build/service/src/example</em></li>
+ <li>Generate <em>services.xml</em> and a more complete
+ <em>BankService.wsdl</em> into the <em>build/service/resources</em>
+ folder.</li>
+ <li>Generate a <em>build/service/build.xml</em></li>
+ <li>Copies the pre-populated service skeleton class to the generated
+ code</li>
+ <li>Compile the Java classes for the service</li>
+ <li>Create the service archive and copy it to Axis2 repository
+ (<em>repository/services/</em>) as sample-faulthandling.aar.</li>
+</ul>
+
+<p>Open up <em>service/src/example/BankServiceSkeleton.java</em> and you will
+ see the following code fragment inside <strong>#withdraw</strong> method.
+ When <strong>generate.service</strong> has been executed, Axis2 generates a skeleton class
+ (<em>build/service/src/example/BankServiceSkeleton.java</em>) which has an empty method.
+ We replace it, the genedrated skeleton with a pre-populated skeleton class
+ (<em>service/src/example/BankServiceSkeleton.java</em>) which has the
+ following code inside it.</p>
+<pre> final String account = param0.getAccount();
+ if (account.equals("13")) {
+ final AccountNotExistFault fault = new AccountNotExistFault();
+ fault.setAccount(account);
+ AccountNotExistFaultMessageException messageException = new
+ AccountNotExistFaultMessageException("Account does
+ not exist!");
+ messageException.setFaultMessage(fault);
+ throw messageException;
+ }
+
+ final int amount = param0.getAmount();
+ if (amount > 1000) {
+ final InsufficientFundFault fault = new InsufficientFundFault();
+ fault.setAccount(account);
+ fault.setBalance(1000);
+ fault.setRequestedFund(amount);
+ InsufficientFundFaultMessageException messageException = new
+ InsufficientFundFaultMessageException("Insufficient
+ funds");
+ messageException.setFaultMessage(fault);
+ throw messageException;
+ }
+
+ final WithdrawResponse response = new WithdrawResponse();
+ response.setBalance(1000 - amount);
+ return response;
+</pre>
+
+<p>Note that the source generated for the client will include the 2 faults
+ and the local Exceptions through which they will be transmitted. Also note
+ that the Exceptions are generated within the <em>BankStub</em> class.</p>
+
+<h2>Deploying the Service</h2>
+
+<p>The above step must have already copied your BankService.aar file in to
+ <em>repository/services/</em> folder. Then go to <em>bin</em> folder and run
+ either of axis2server.bat or axis2server.sh, depending on your platform in
+ order to startup Axis2 server.</p>
+
+<p>With the default configuration, if you go to <a
+ href="http://localhost:8080/axis2/"> http://localhost:8080/axis2/</a> you
+ should see <em>BankService</em> was deployed.</p>
+
+<h2>Running the Client</h2>
+
+<p>Invoke the <em>client/src/example/BankClient</em>.java class. You may use
+ the command scripts to do so. You need to supply 3 parameters to the command-
+ url, account and amount.</p>
+<ul>
+ <li><strong>ant run.client
+ -Durl=http://localhost:8080/axis2/services/BankService -Daccount=13
+ -Damt=400</strong><br>
+ Throws AccountNotExistFaultMessageException. You will see "Account#13
+ does not exist"</li>
+ <li><strong>ant run.client
+ -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
+ -Damt=1200</strong><br>
+ Throws InsufficientFundsFaultMessageException. You will see "Account#88
+ has balance of 1000. It cannot support withdrawal of 1200"<br>
+ </li>
+ <li><strong>ant run.client
+ -Durl=http://localhost:8080/axis2/services/BankService -Daccount=88
+ -Damt=400</strong><br>
+ Succeeds with a balance of 600. You will see "Balance = 600"</li>
+</ul>
+When you call ant run.client with parameters, before running
+<em>client/src/example/BankClient.java</em> class, it does the following as
+well:
+<ul>
+ <li>Generate the stubs (for the client) from the WSDL</li>
+ <li>Compile the client classes</li>
+ <li>Create a Jar of the client classes and copy it to
+ <em>build/client/BankService-test-client.jar</em></li>
+</ul>
+</body>
+</html>
Modified: webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/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/faulthandling/service/src/example/BankServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/faulthandling/service/src/example/BankServiceSkeleton.java Wed Dec 20 04:23:24 2006
@@ -1,46 +1,60 @@
-
- /**
- * BankServiceSkeleton.java
- *
- */
- package example;
- /**
- * BankServiceSkeleton java skeleton for the axisService
- */
- public class BankServiceSkeleton{
-
-
- /**
-
- * @param param0
-
- */
- public example.WithdrawResponse withdraw(example.Withdraw param0)
- throws InsufficientFundFaultMessageException,AccountNotExistFaultMessageException{
- final String account = param0.getAccount();
- if (account.equals("13")) {
- final AccountNotExistFault fault = new AccountNotExistFault();
- fault.setAccount(account);
- AccountNotExistFaultMessageException messageException = new AccountNotExistFaultMessageException("Account does not exist!");
- messageException.setFaultMessage(fault);
- throw messageException;
- }
-
- final int amount = param0.getAmount();
- if (amount > 1000) {
- final InsufficientFundFault fault = new InsufficientFundFault();
- fault.setAccount(account);
- fault.setBalance(1000);
- fault.setRequestedFund(amount);
- InsufficientFundFaultMessageException messageException = new InsufficientFundFaultMessageException("Insufficient funds");
- messageException.setFaultMessage(fault);
- throw messageException;
- }
-
- final WithdrawResponse response = new WithdrawResponse();
- response.setBalance(1000 - amount);
- return response;
- }
-
- }
-
+/*
+ * 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.
+ */
+ /**
+ * BankServiceSkeleton.java
+ *
+ */
+ package example;
+ /**
+ * BankServiceSkeleton java skeleton for the axisService
+ */
+ public class BankServiceSkeleton{
+
+
+ /**
+
+ * @param param0
+
+ */
+ public example.WithdrawResponse withdraw(example.Withdraw param0)
+ throws InsufficientFundFaultMessageException,AccountNotExistFaultMessageException{
+ final String account = param0.getAccount();
+ if (account.equals("13")) {
+ final AccountNotExistFault fault = new AccountNotExistFault();
+ fault.setAccount(account);
+ AccountNotExistFaultMessageException messageException = new AccountNotExistFaultMessageException("Account does not exist!");
+ messageException.setFaultMessage(fault);
+ throw messageException;
+ }
+
+ final int amount = param0.getAmount();
+ if (amount > 1000) {
+ final InsufficientFundFault fault = new InsufficientFundFault();
+ fault.setAccount(account);
+ fault.setBalance(1000);
+ fault.setRequestedFund(amount);
+ InsufficientFundFaultMessageException messageException = new InsufficientFundFaultMessageException("Insufficient funds");
+ messageException.setFaultMessage(fault);
+ throw messageException;
+ }
+
+ final WithdrawResponse response = new WithdrawResponse();
+ response.setBalance(1000 - amount);
+ return response;
+ }
+
+ }
+
Modified: webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/googlespellcheck/build.xml Wed Dec 20 04:23:24 2006
@@ -1,95 +1,111 @@
-
-<project basedir="." default="run.client">
-
- <property name="wsdl" value="http://tools.wso2.net:12001/axis2/services/SimplifiedSpellCheck?wsdl" />
-
- <property name="dest.dir" value="build" />
-
- <property name="dest.dir.classes" value="${dest.dir}/classes" />
-
- <property name="dest.dir.lib" value="${dest.dir}/lib" />
-
- <property name="axis2.home" value="../../" />
-
- <path id="client.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${dest.dir.lib}" includes="*.jar" />
- </path>
-
- <path id="build.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <target name="clean">
-
- <delete dir="${dest.dir}" />
-
- <delete dir="src" includes="sample/spellcheck/stub/**"/>
-
- </target>
-
- <target name="prepare">
-
- <mkdir dir="${dest.dir}" />
-
- <mkdir dir="${dest.dir.classes}" />
-
- <mkdir dir="${dest.dir.lib}" />
-
- </target>
-
- <target name="run.client" depends="clean,prepare">
-
- <antcall target="client.codegen-stub">
- <param name="wsdl" value="${wsdl}"/>
- </antcall>
-
- <antcall target="client.compile" />
-
- <antcall target="client.jar" />
-
- <antcall target="client.run" />
- </target>
-
- <target name="client.codegen-stub">
-
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${wsdl}" />
- <arg value="-p" />
- <arg value="sample.spellcheck.stub" />
- <arg value="-o" />
- <arg value="src" />
- <arg value="-f"/>
- <classpath refid="build.class.path" />
- </java>
-
- </target>
-
- <target name="client.compile">
-
- <javac srcdir="src" destdir="${dest.dir.classes}">
- <classpath refid="build.class.path" />
- </javac>
-
- </target>
-
- <target name="client.jar">
-
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/editor.jar" />
-
- </target>
-
- <target name="client.run">
-
- <java classname="sample.spellcheck.editor.SuggestionForm" fork="true">
- <classpath refid="client.class.path" />
- </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 basedir="." default="run.client">
+
+ <property name="wsdl" value="http://tools.wso2.net:12001/axis2/services/SimplifiedSpellCheck?wsdl" />
+
+ <property name="dest.dir" value="build" />
+
+ <property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+ <property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+ <property name="axis2.home" value="../../" />
+
+ <path id="client.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${dest.dir.lib}" includes="*.jar" />
+ </path>
+
+ <path id="build.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <target name="clean">
+
+ <delete dir="${dest.dir}" />
+
+ <delete dir="src" includes="sample/spellcheck/stub/**"/>
+
+ </target>
+
+ <target name="prepare">
+
+ <mkdir dir="${dest.dir}" />
+
+ <mkdir dir="${dest.dir.classes}" />
+
+ <mkdir dir="${dest.dir.lib}" />
+
+ </target>
+
+ <target name="run.client" depends="clean,prepare">
+
+ <antcall target="client.codegen-stub">
+ <param name="wsdl" value="${wsdl}"/>
+ </antcall>
+
+ <antcall target="client.compile" />
+
+ <antcall target="client.jar" />
+
+ <antcall target="client.run" />
+ </target>
+
+ <target name="client.codegen-stub">
+
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${wsdl}" />
+ <arg value="-p" />
+ <arg value="sample.spellcheck.stub" />
+ <arg value="-o" />
+ <arg value="src" />
+ <arg value="-f"/>
+ <classpath refid="build.class.path" />
+ </java>
+
+ </target>
+
+ <target name="client.compile">
+
+ <javac srcdir="src" destdir="${dest.dir.classes}">
+ <classpath refid="build.class.path" />
+ </javac>
+
+ </target>
+
+ <target name="client.jar">
+
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/editor.jar" />
+
+ </target>
+
+ <target name="client.run">
+
+ <java classname="sample.spellcheck.editor.SuggestionForm" fork="true">
+ <classpath refid="client.class.path" />
+ </java>
+
+ </target>
+
</project>
Modified: webservices/axis2/branches/java/1_1/modules/samples/maven.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/maven.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/maven.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/maven.xml 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.
+ */
+ -->
<project default="jar"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/MTOMSample.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/MTOMSample.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/MTOMSample.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/MTOMSample.wsdl Wed Dec 20 04:23:24 2006
@@ -1,84 +1,101 @@
-<wsdl:definitions xmlns:tns="http://ws.apache.org/axis2/mtomsample/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
- xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
- xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns="http://schemas.xmlsoap.org/wsdl/"
- targetNamespace="http://ws.apache.org/axis2/mtomsample/">
- <wsdl:types>
- <xsd:schema xmlns="http://schemas.xmlsoap.org/wsdl/"
- attributeFormDefault="qualified" elementFormDefault="qualified"
- targetNamespace="http://ws.apache.org/axis2/mtomsample/">
- <xsd:import namespace="http://www.w3.org/2005/05/xmlmime"
- schemaLocation="xmime.xsd" />
- <xsd:complexType name="AttachmentType">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="fileName"
- type="xsd:string" />
- <xsd:element minOccurs="0" name="binaryData"
- type="xmime:base64Binary" />
- </xsd:sequence>
- </xsd:complexType>
- <xsd:element name="AttachmentRequest" type="tns:AttachmentType" />
- <xsd:element name="AttachmentResponse" type="xsd:string" />
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="AttachmentRequest">
- <wsdl:part name="part1" element="tns:AttachmentRequest" />
- </wsdl:message>
- <wsdl:message name="AttachmentResponse">
- <wsdl:part name="part1" element="tns:AttachmentResponse" />
- </wsdl:message>
- <wsdl:portType name="MTOMServicePortType">
- <wsdl:operation name="attachment">
- <wsdl:input message="tns:AttachmentRequest"
- wsaw:Action="attachment" />
- <wsdl:output message="tns:AttachmentResponse"
- wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse" />
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="MTOMServiceSOAP11Binding"
- type="tns:MTOMServicePortType">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <wsdl:operation name="attachment">
- <soap:operation soapAction="attachment" style="document" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:binding name="MTOMServiceSOAP12Binding"
- type="tns:MTOMServicePortType">
- <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <wsdl:operation name="attachment">
- <soap12:operation soapAction="attachment" style="document" />
- <wsdl:input>
- <soap12:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap12:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="MTOMSample">
- <wsdl:port name="MTOMSampleSOAP11port_http"
- binding="tns:MTOMServiceSOAP11Binding">
- <soap:address
- location="http://localhost:8080/axis2/services/MTOMSample" />
- </wsdl:port>
- <wsdl:port name="MTOMSampleSOAP12port_http"
- binding="tns:MTOMServiceSOAP12Binding">
- <soap12:address
- location="http://localhost:8080/axis2/services/MTOMSample" />
- </wsdl:port>
- </wsdl:service>
+<!--
+/*
+ * 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 xmlns:tns="http://ws.apache.org/axis2/mtomsample/"
+ xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
+ xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
+ xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
+ xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
+ xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="http://ws.apache.org/axis2/mtomsample/">
+ <wsdl:types>
+ <xsd:schema xmlns="http://schemas.xmlsoap.org/wsdl/"
+ attributeFormDefault="qualified" elementFormDefault="qualified"
+ targetNamespace="http://ws.apache.org/axis2/mtomsample/">
+ <xsd:import namespace="http://www.w3.org/2005/05/xmlmime"
+ schemaLocation="xmime.xsd" />
+ <xsd:complexType name="AttachmentType">
+ <xsd:sequence>
+ <xsd:element minOccurs="0" name="fileName"
+ type="xsd:string" />
+ <xsd:element minOccurs="0" name="binaryData"
+ type="xmime:base64Binary" />
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="AttachmentRequest" type="tns:AttachmentType" />
+ <xsd:element name="AttachmentResponse" type="xsd:string" />
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="AttachmentRequest">
+ <wsdl:part name="part1" element="tns:AttachmentRequest" />
+ </wsdl:message>
+ <wsdl:message name="AttachmentResponse">
+ <wsdl:part name="part1" element="tns:AttachmentResponse" />
+ </wsdl:message>
+ <wsdl:portType name="MTOMServicePortType">
+ <wsdl:operation name="attachment">
+ <wsdl:input message="tns:AttachmentRequest"
+ wsaw:Action="attachment" />
+ <wsdl:output message="tns:AttachmentResponse"
+ wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="MTOMServiceSOAP11Binding"
+ type="tns:MTOMServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
+ style="document" />
+ <wsdl:operation name="attachment">
+ <soap:operation soapAction="attachment" style="document" />
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="MTOMServiceSOAP12Binding"
+ type="tns:MTOMServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
+ style="document" />
+ <wsdl:operation name="attachment">
+ <soap12:operation soapAction="attachment" style="document" />
+ <wsdl:input>
+ <soap12:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="MTOMSample">
+ <wsdl:port name="MTOMSampleSOAP11port_http"
+ binding="tns:MTOMServiceSOAP11Binding">
+ <soap:address
+ location="http://localhost:8080/axis2/services/MTOMSample" />
+ </wsdl:port>
+ <wsdl:port name="MTOMSampleSOAP12port_http"
+ binding="tns:MTOMServiceSOAP12Binding">
+ <soap12:address
+ location="http://localhost:8080/axis2/services/MTOMSample" />
+ </wsdl:port>
+ </wsdl:service>
</wsdl:definitions>
Modified: webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/xmime.xsd
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/xmime.xsd?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/xmime.xsd (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/mtom/resources/xmime.xsd Wed Dec 20 04:23:24 2006
@@ -1,6 +1,23 @@
<?xml version="1.0"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
+<!--
+/*
+ * 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.
+ */
+ -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
targetNamespace="http://www.w3.org/2005/05/xmlmime">
<xs:attribute name="contentType">
<xs:simpleType>
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojo/build.xml Wed Dec 20 04:23:24 2006
@@ -1,148 +1,164 @@
-
-<project basedir="." default="generate.service">
-
- <property name="dest.dir" value="build" />
-
- <property name="dest.dir.classes" value="${dest.dir}/classes" />
-
- <property name="dest.dir.lib" value="${dest.dir}/lib" />
-
- <property name="axis2.home" value="../../" />
-
- <property name="repository.path" value="${axis2.home}/repository/services" />
-
- <path id="build.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- </path>
-
- <path id="client.class.path">
- <fileset dir="${axis2.home}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${dest.dir.lib}">
- <include name="*.jar" />
- </fileset>
-
- </path>
- <target name="clean">
- <delete dir="${dest.dir}" />
- <delete dir="src" includes="sample/addressbook/stub/**"/>
- </target>
-
- <target name="prepare">
-
- <mkdir dir="${dest.dir}" />
-
- <mkdir dir="${dest.dir.classes}" />
-
- <mkdir dir="${dest.dir.lib}" />
-
- <mkdir dir="${dest.dir.classes}/META-INF" />
-
- </target>
-
- <target name="generate.service" depends="clean,prepare">
-
- <copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
-
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
- <classpath refid="build.class.path" />
- </javac>
-
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
-
- <copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
-
- </target>
-
- <target name="rpc.client" depends="clean,prepare">
-
- <antcall target="rpc.client.compile" />
-
- <antcall target="rpc.client.jar" />
-
- <antcall target="rpc.client.run">
- <param name="uri" value="${uri}"/>
- </antcall>
-
- </target>
-
- <target name="rpc.client.compile">
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
- <classpath refid="build.class.path" />
- </javac>
- </target>
-
- <target name="rpc.client.jar">
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
- </target>
-
- <target name="rpc.client.run">
- <java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
- <classpath refid="client.class.path" />
- <arg value="${uri}" />
- </java>
- </target>
-
- <target name="check-parameters">
- <condition property="parameters.set">
- <and>
- <isset property="wsdl" />
- </and>
- </condition>
- <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
- <antcall target="print-usage" />
- </target>
-
- <target name="print-usage" unless="parameters.set">
- <echo message="ant adb.client -Dwsdl='http://<yourhost>:<yourport>/axis2/services/AdressBookService?wsdl'" />
- </target>
-
- <target name="adb.client" depends="check-parameters" if="parameters.set">
-
- <antcall target="clean" />
- <antcall target="prepare" />
- <antcall target="adb.client.codegen-stub">
- <param name="wsdl" value="${wsdl}"/>
- </antcall>
-
- <antcall target="adb.client.compile" />
-
- <antcall target="adb.client.jar" />
-
- <antcall target="adb.client.run" />
-
- </target>
-
- <target name="adb.client.codegen-stub">
- <java classname="org.apache.axis2.wsdl.WSDL2Java">
- <arg value="-uri" />
- <arg value="${wsdl}" />
- <arg value="-p" />
- <arg value="sample.addressbook.stub" />
- <arg value="-o" />
- <arg value="src" />
- <arg value="-f" />
- <classpath refid="build.class.path" />
- </java>
- </target>
-
- <target name="adb.client.compile">
- <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
- <classpath refid="build.class.path" />
- </javac>
- </target>
-
- <target name="adb.client.jar">
- <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
- </target>
-
- <target name="adb.client.run">
- <java classname="sample.addressbook.adbclient.AddressBookADBClient">
- <classpath refid="client.class.path" />
- </java>
- </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 name="dest.dir" value="build" />
+
+ <property name="dest.dir.classes" value="${dest.dir}/classes" />
+
+ <property name="dest.dir.lib" value="${dest.dir}/lib" />
+
+ <property name="axis2.home" value="../../" />
+
+ <property name="repository.path" value="${axis2.home}/repository/services" />
+
+ <path id="build.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <path id="client.class.path">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${dest.dir.lib}">
+ <include name="*.jar" />
+ </fileset>
+
+ </path>
+ <target name="clean">
+ <delete dir="${dest.dir}" />
+ <delete dir="src" includes="sample/addressbook/stub/**"/>
+ </target>
+
+ <target name="prepare">
+
+ <mkdir dir="${dest.dir}" />
+
+ <mkdir dir="${dest.dir.classes}" />
+
+ <mkdir dir="${dest.dir.lib}" />
+
+ <mkdir dir="${dest.dir.classes}/META-INF" />
+
+ </target>
+
+ <target name="generate.service" depends="clean,prepare">
+
+ <copy file="src/META-INF/services.xml" tofile="${dest.dir.classes}/META-INF/services.xml" overwrite="true" />
+
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/service/**,sample/addressbook/entry/**">
+ <classpath refid="build.class.path" />
+ </javac>
+
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir}/AddressBookService.aar" />
+
+ <copy file="${dest.dir}/AddressBookService.aar" tofile="${repository.path}/AddressBookService.aar" overwrite="true" />
+
+ </target>
+
+ <target name="rpc.client" depends="clean,prepare">
+
+ <antcall target="rpc.client.compile" />
+
+ <antcall target="rpc.client.jar" />
+
+ <antcall target="rpc.client.run">
+ <param name="uri" value="${uri}"/>
+ </antcall>
+
+ </target>
+
+ <target name="rpc.client.compile">
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**">
+ <classpath refid="build.class.path" />
+ </javac>
+ </target>
+
+ <target name="rpc.client.jar">
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/rpc-client.jar" includes="sample/addressbook/rpcclient/**,sample/addressbook/entry/**" />
+ </target>
+
+ <target name="rpc.client.run">
+ <java classname="sample.addressbook.rpcclient.AddressBookRPCClient">
+ <classpath refid="client.class.path" />
+ <arg value="${uri}" />
+ </java>
+ </target>
+
+ <target name="check-parameters">
+ <condition property="parameters.set">
+ <and>
+ <isset property="wsdl" />
+ </and>
+ </condition>
+ <!-- This is a hack to get a if-else working in ant. Some much more "ANTy" person is welcome to improve this -->
+ <antcall target="print-usage" />
+ </target>
+
+ <target name="print-usage" unless="parameters.set">
+ <echo message="ant adb.client -Dwsdl='http://<yourhost>:<yourport>/axis2/services/AdressBookService?wsdl'" />
+ </target>
+
+ <target name="adb.client" depends="check-parameters" if="parameters.set">
+
+ <antcall target="clean" />
+ <antcall target="prepare" />
+ <antcall target="adb.client.codegen-stub">
+ <param name="wsdl" value="${wsdl}"/>
+ </antcall>
+
+ <antcall target="adb.client.compile" />
+
+ <antcall target="adb.client.jar" />
+
+ <antcall target="adb.client.run" />
+
+ </target>
+
+ <target name="adb.client.codegen-stub">
+ <java classname="org.apache.axis2.wsdl.WSDL2Java">
+ <arg value="-uri" />
+ <arg value="${wsdl}" />
+ <arg value="-p" />
+ <arg value="sample.addressbook.stub" />
+ <arg value="-o" />
+ <arg value="src" />
+ <arg value="-f" />
+ <classpath refid="build.class.path" />
+ </java>
+ </target>
+
+ <target name="adb.client.compile">
+ <javac srcdir="src" destdir="${dest.dir.classes}" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**">
+ <classpath refid="build.class.path" />
+ </javac>
+ </target>
+
+ <target name="adb.client.jar">
+ <jar basedir="${dest.dir.classes}" destfile="${dest.dir.lib}/adb-client.jar" includes="sample/addressbook/adbclient/**,sample/addressbook/stub/**" />
+ </target>
+
+ <target name="adb.client.run">
+ <java classname="sample.addressbook.adbclient.AddressBookADBClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+</project>
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojo/src/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojo/src/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojo/src/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojo/src/META-INF/services.xml Wed Dec 20 04:23:24 2006
@@ -1,13 +1,30 @@
-<service name="AddressBookService" scope="application">
- <description>
- POJO: AddressBook Service
- </description>
- <messageReceivers>
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
- class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
- class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
- </messageReceivers>
- <parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService</parameter>
-
+<!--
+/*
+ * 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="AddressBookService" scope="application">
+ <description>
+ POJO: AddressBook Service
+ </description>
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+ class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+ class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
+ </messageReceivers>
+ <parameter name="ServiceClass" locked="false">sample.addressbook.service.AddressBookService</parameter>
+
</service>
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojo/src/sample/addressbook/service/AddressBookService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojo/src/sample/addressbook/service/AddressBookService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojo/src/sample/addressbook/service/AddressBookService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojo/src/sample/addressbook/service/AddressBookService.java Wed Dec 20 04:23:24 2006
@@ -1,31 +1,47 @@
-package sample.addressbook.service;
-
-
-import java.util.HashMap;
-
-import sample.addressbook.entry.Entry;
-
-
-
-public class AddressBookService {
-
- private HashMap entries = new HashMap();
-
- /**
- * Add an Entry to the Address Book
- * @param entry
- */
- public void addEntry(Entry entry) {
- this.entries.put(entry.getName(), entry);
- }
-
- /**
- * Search an address of a person
- *
- * @param name the name of the person whose address needs to be found
- * @return return the address entry of the person.
- */
- public Entry findEntry(String name) {
- return (Entry) this.entries.get(name);
- }
-}
+/*
+ * 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.
+ */
+
+package sample.addressbook.service;
+
+
+import java.util.HashMap;
+
+import sample.addressbook.entry.Entry;
+
+
+
+public class AddressBookService {
+
+ private HashMap entries = new HashMap();
+
+ /**
+ * Add an Entry to the Address Book
+ * @param entry
+ */
+ public void addEntry(Entry entry) {
+ this.entries.put(entry.getName(), entry);
+ }
+
+ /**
+ * Search an address of a person
+ *
+ * @param name the name of the person whose address needs to be found
+ * @return return the address entry of the person.
+ */
+ public Entry findEntry(String name) {
+ return (Entry) this.entries.get(name);
+ }
+}
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguide/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguide/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguide/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguide/build.xml Wed Dec 20 04:23:24 2006
@@ -1,4 +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="generate.service">
<property name="service.name" value="WeatherService" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/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="WeatherService" scope="application">
<description>
Weather POJO Service
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/data/Weather.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/data/Weather.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/data/Weather.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/data/Weather.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.pojo.data;
public class Weather{
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/rpcclient/WeatherRPCClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/rpcclient/WeatherRPCClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/rpcclient/WeatherRPCClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/rpcclient/WeatherRPCClient.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.pojo.rpcclient;
import javax.xml.namespace.QName;
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/service/WeatherService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/service/WeatherService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/service/WeatherService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguide/src/sample/pojo/service/WeatherService.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.pojo.service;
import sample.pojo.data.Weather;
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/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="generate.service" name="WeatherSpringService">
<property environment="env" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/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="SpringInit" class="sample.spring.service.SpringInit">
<description>
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/applicationContext.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/applicationContext.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/applicationContext.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/applicationContext.xml 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.
+ */
+ -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/client/WeatherSpringRPCClient.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package client;
import javax.xml.namespace.QName;
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/bean/Weather.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/bean/Weather.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/bean/Weather.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/bean/Weather.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.spring.bean;
public class Weather{
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/SpringInit.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/SpringInit.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/SpringInit.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/SpringInit.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.spring.service;
import org.apache.axiom.om.OMElement;
Modified: webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/WeatherSpringService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/WeatherSpringService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/WeatherSpringService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/pojoguidespring/src/sample/spring/service/WeatherSpringService.java Wed Dec 20 04:23:24 2006
@@ -1,3 +1,19 @@
+/*
+ * 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.
+ */
+
package sample.spring.service;
import sample.spring.bean.Weather;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/build.xml Wed Dec 20 04:23:24 2006
@@ -1,57 +1,75 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <target name="compile.service">
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${build.dir}/classes"/>
-
- <!--First let's compile the classes-->
- <javac debug="on"
- fork="true"
- destdir="${build.dir}/classes"
- srcdir="${basedir}/src"
- classpathref="axis2.classpath">
- </javac>
- </target>
-
- <target name="generate.wsdl" depends="compile.service">
- <taskdef name="java2wsdl"
- classname="org.apache.ws.java2wsdl.Java2WSDLTask"
- classpathref="axis2.classpath"/>
- <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
- outputLocation="${build.dir}"
- targetNamespace="http://quickstart.samples/"
- schemaTargetNamespace="http://quickstart.samples/xsd">
- <classpath>
- <pathelement path="${axis2.classpath}"/>
- <pathelement location="${build.dir}/classes"/>
- </classpath>
- </java2wsdl>
- </target>
-
- <target name="generate.service" depends="compile.service">
- <!--aar them up -->
- <copy toDir="${build.dir}/classes" failonerror="false">
- <fileset dir="${basedir}/resources">
- <include name="**/*.xml"/>
- </fileset>
- </copy>
- <jar destfile="${build.dir}/StockQuoteService.aar">
- <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
- </jar>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </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="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="compile.service">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.dir}/classes"/>
+
+ <!--First let's compile the classes-->
+ <javac debug="on"
+ fork="true"
+ destdir="${build.dir}/classes"
+ srcdir="${basedir}/src"
+ classpathref="axis2.classpath">
+ </javac>
+ </target>
+
+ <target name="generate.wsdl" depends="compile.service">
+ <taskdef name="java2wsdl"
+ classname="org.apache.ws.java2wsdl.Java2WSDLTask"
+ classpathref="axis2.classpath"/>
+ <java2wsdl className="samples.quickstart.service.pojo.StockQuoteService"
+ outputLocation="${build.dir}"
+ targetNamespace="http://quickstart.samples/"
+ schemaTargetNamespace="http://quickstart.samples/xsd">
+ <classpath>
+ <pathelement path="${axis2.classpath}"/>
+ <pathelement location="${build.dir}/classes"/>
+ </classpath>
+ </java2wsdl>
+ </target>
+
+ <target name="generate.service" depends="compile.service">
+ <!--aar them up -->
+ <copy toDir="${build.dir}/classes" failonerror="false">
+ <fileset dir="${basedir}/resources">
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+ <jar destfile="${build.dir}/StockQuoteService.aar">
+ <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+ </jar>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/resources/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="StockQuoteService" scope="application" targetNamespace="http://quickstart.samples/">
<description>
Stock Quote Service
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstart/src/samples/quickstart/service/pojo/StockQuoteService.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.quickstart.service.pojo;
import java.util.HashMap;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/build.xml Wed Dec 20 04:23:24 2006
@@ -1,80 +1,97 @@
-<project basedir="." default="generate.service">
-
- <property environment="env"/>
- <property name="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
-
- <property name="build.dir" value="build"/>
-
- <path id="axis2.classpath">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
- <path id="client.class.path">
- <fileset dir="${AXIS2_HOME}/lib">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${build.dir}/client/build/lib" >
- <include name="*.jar" />
- </fileset>
- </path>
-
- <target name="init">
- <mkdir dir="${build.dir}"/>
- </target>
-
- <target name="generate.service" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/service"
- packageName="samples.quickstart.service.adb"
- language="java"
- databindingName="adb"
- synconly="true"
- serverside="true"
- serverSideInterface="true"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
- generateservicexml="true"/>
- <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java"
- toDir="${build.dir}/service/src/samples/quickstart/service/adb/"
- overwrite="yes">
- </copy>
- <copy file="${basedir}/resources/META-INF/services.xml"
- toDir="${build.dir}/service/resources/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/service"/>
- </target>
-
- <target name="generate.client" depends="init">
- <taskdef name="wsdl2java"
- classname="org.apache.axis2.tool.ant.AntCodegenTask"
- classpathref="axis2.classpath"/>
- <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
- output="${build.dir}/client"
- packageName="samples.quickstart.service.adb"
- databindingName="adb"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
- language="java"
- synconly="true"/>
- <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
- toDir="${build.dir}/client/src/samples/quickstart/clients/"
- overwrite="yes">
- </copy>
- <ant dir="${build.dir}/client"/>
- </target>
-
- <target name="generate.all" depends="generate.service, generate.client"/>
-
- <target name="run.client" depends="generate.client">
- <java classname="samples.quickstart.clients.ADBClient">
- <classpath refid="client.class.path" />
- </java>
- </target>
-
- <target name="clean">
- <delete dir="${build.dir}"/>
- </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="AXIS2_HOME" value="${env.AXIS2_HOME}"/>
+
+ <property name="build.dir" value="build"/>
+
+ <path id="axis2.classpath">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+ <path id="client.class.path">
+ <fileset dir="${AXIS2_HOME}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${build.dir}/client/build/lib" >
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
+ <target name="init">
+ <mkdir dir="${build.dir}"/>
+ </target>
+
+ <target name="generate.service" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/service"
+ packageName="samples.quickstart.service.adb"
+ language="java"
+ databindingName="adb"
+ synconly="true"
+ serverside="true"
+ serverSideInterface="true"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
+ generateservicexml="true"/>
+ <copy file="${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java"
+ toDir="${build.dir}/service/src/samples/quickstart/service/adb/"
+ overwrite="yes">
+ </copy>
+ <copy file="${basedir}/resources/META-INF/services.xml"
+ toDir="${build.dir}/service/resources/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/service"/>
+ </target>
+
+ <target name="generate.client" depends="init">
+ <taskdef name="wsdl2java"
+ classname="org.apache.axis2.tool.ant.AntCodegenTask"
+ classpathref="axis2.classpath"/>
+ <wsdl2java wsdlFilename="${basedir}/resources/META-INF/StockQuoteService.wsdl"
+ output="${build.dir}/client"
+ packageName="samples.quickstart.service.adb"
+ databindingName="adb"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd"
+ language="java"
+ synconly="true"/>
+ <copy file="${basedir}/src/samples/quickstart/clients/ADBClient.java"
+ toDir="${build.dir}/client/src/samples/quickstart/clients/"
+ overwrite="yes">
+ </copy>
+ <ant dir="${build.dir}/client"/>
+ </target>
+
+ <target name="generate.all" depends="generate.service, generate.client"/>
+
+ <target name="run.client" depends="generate.client">
+ <java classname="samples.quickstart.clients.ADBClient">
+ <classpath refid="client.class.path" />
+ </java>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build.dir}"/>
+ </target>
+</project>
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/StockQuoteService.wsdl Wed Dec 20 04:23:24 2006
@@ -1,24 +1,41 @@
-<wsdl:definitions xmlns:axis2="http://quickstart.samples/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://quickstart.samples/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://quickstart.samples/"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://quickstart.samples/xsd">
-<xs:element name="getPrice">
-<xs:complexType>
-<xs:sequence>
-<xs:element name="symbol" nillable="true" type="xs:string" />
-</xs:sequence>
-</xs:complexType>
-</xs:element>
-<xs:element name="getPriceResponse">
-<xs:complexType>
-<xs:sequence>
-<xs:element name="return" nillable="true" type="xs:double" />
-</xs:sequence>
-</xs:complexType>
-</xs:element>
-<xs:element name="update">
-<xs:complexType>
-<xs:sequence>
-<xs:element name="symbol" nillable="true" type="xs:string" />
-<xs:element name="price" nillable="true" type="xs:double" />
-</xs:sequence>
-</xs:complexType>
-</xs:element>
+<!--
+/*
+ * 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 xmlns:axis2="http://quickstart.samples/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://quickstart.samples/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://quickstart.samples/"><wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://quickstart.samples/xsd">
+<xs:element name="getPrice">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="getPriceResponse">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="return" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="update">
+<xs:complexType>
+<xs:sequence>
+<xs:element name="symbol" nillable="true" type="xs:string" />
+<xs:element name="price" nillable="true" type="xs:double" />
+</xs:sequence>
+</xs:complexType>
+</xs:element>
</xs:schema></wsdl:types><wsdl:message name="getPriceMessage"><wsdl:part name="part1" element="ns:getPrice" /></wsdl:message><wsdl:message name="getPriceResponseMessage"><wsdl:part name="part1" element="ns:getPriceResponse" /></wsdl:message><wsdl:message name="updateMessage"><wsdl:part name="part1" element="ns:update" /></wsdl:message><wsdl:portType name="StockQuoteServicePortType"><wsdl:operation name="getPrice"><wsdl:input message="axis2:getPriceMessage" /><wsdl:output message="axis2:getPriceResponseMessage" /></wsdl:operation><wsdl:operation name="update"><wsdl:input message="axis2:updateMessage" /></wsdl:operation></wsdl:portType><wsdl:binding name="StockQuoteServiceSOAP11Binding" type="axis2:StockQuoteServicePortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap:body use="literal" namespace="http://quickstart.samples/" /></w
sdl:input><wsdl:output><soap:body use="literal" namespace="http://quickstart.samples/" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap:operation soapAction="urn:update" style="document" /><wsdl:input><soap:body use="literal" namespace="http://quickstart.samples/" /></wsdl:input></wsdl:operation></wsdl:binding><wsdl:binding name="StockQuoteServiceSOAP12Binding" type="axis2:StockQuoteServicePortType"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /><wsdl:operation name="getPrice"><soap12:operation soapAction="urn:getPrice" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://quickstart.samples/" /></wsdl:input><wsdl:output><soap12:body use="literal" namespace="http://quickstart.samples/" /></wsdl:output></wsdl:operation><wsdl:operation name="update"><soap12:operation soapAction="urn:update" style="document" /><wsdl:input><soap12:body use="literal" namespace="http://quickstart.samples/" /></wsdl:inpu
t></wsdl:operation></wsdl:binding><wsdl:service name="StockQuoteService"><wsdl:port name="StockQuoteServiceSOAP11port" binding="axis2:StockQuoteServiceSOAP11Binding"><soap:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port><wsdl:port name="StockQuoteServiceSOAP12port" binding="axis2:StockQuoteServiceSOAP12Binding"><soap12:address location="http://localhost:8080/axis2/services/StockQuoteService" /></wsdl:port></wsdl:service></wsdl:definitions>
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/resources/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="StockQuoteService" scope="application">
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org