You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2006/12/20 13:23:42 UTC
svn commit: r489066 [22/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/quickstartadb/src/samples/quickstart/clients/ADBClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/clients/ADBClient.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.clients;
import samples.quickstart.service.adb.StockQuoteServiceStub;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartadb/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.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.adb;
import samples.quickstart.service.adb.xsd.GetPriceResponse;
import samples.quickstart.service.adb.xsd.Update;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/build.xml Wed Dec 20 04:23:24 2006
@@ -1,55 +1,72 @@
-<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>
- <pathelement location="${build.dir}/classes" />
- </path>
-
- <target name="compile">
- <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.service" depends="compile">
- <!--aar them up -->
- <copy toDir="${build.dir}/classes" failonerror="false">
- <fileset dir="${basedir}/resources">
- <include name="**/*.xml"/>
- <include name="**/*.wsdl"/>
- </fileset>
- </copy>
- <jar destfile="${build.dir}/StockQuoteService.aar">
- <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
- </jar>
- </target>
-
- <target name="run.client" depends="compile">
- <java classname="samples.quickstart.clients.AXIOMClient">
- <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>
+ <pathelement location="${build.dir}/classes" />
+ </path>
+
+ <target name="compile">
+ <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.service" depends="compile">
+ <!--aar them up -->
+ <copy toDir="${build.dir}/classes" failonerror="false">
+ <fileset dir="${basedir}/resources">
+ <include name="**/*.xml"/>
+ <include name="**/*.wsdl"/>
+ </fileset>
+ </copy>
+ <jar destfile="${build.dir}/StockQuoteService.aar">
+ <fileset excludes="**/Test.class" dir="${build.dir}/classes"/>
+ </jar>
+ </target>
+
+ <target name="run.client" depends="compile">
+ <java classname="samples.quickstart.clients.AXIOMClient">
+ <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/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/StockQuoteService.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/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/quickstartaxiom/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/resources/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/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">
<description>
Stock Quote Service
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/clients/AXIOMClient.java Wed Dec 20 04:23:24 2006
@@ -1,72 +1,87 @@
-package samples.quickstart.clients;
-
-import org.apache.axiom.om.OMAbstractFactory;
-import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNamespace;
-import org.apache.axis2.Constants;
-import org.apache.axis2.addressing.EndpointReference;
-import org.apache.axis2.client.Options;
-import org.apache.axis2.client.ServiceClient;
-
-public class AXIOMClient {
-
- private static EndpointReference targetEPR =
- new EndpointReference(
- "http://localhost:8080/axis2/services/StockQuoteService");
-
- public static OMElement getPricePayload(String symbol) {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace(
- "http://quickstart.samples/xsd", "tns");
-
- OMElement method = fac.createOMElement("getPrice", omNs);
- OMElement value = fac.createOMElement("symbol", omNs);
- value.addChild(fac.createOMText(value, symbol));
- method.addChild(value);
- return method;
- }
-
- public static OMElement updatePayload(String symbol, double price) {
- OMFactory fac = OMAbstractFactory.getOMFactory();
- OMNamespace omNs = fac.createOMNamespace(
- "http://quickstart.samples/xsd", "tns");
-
- OMElement method = fac.createOMElement("update", omNs);
-
- OMElement value1 = fac.createOMElement("symbol", omNs);
- value1.addChild(fac.createOMText(value1, symbol));
- method.addChild(value1);
-
- OMElement value2 = fac.createOMElement("price", omNs);
- value2.addChild(fac.createOMText(value2,
- Double.toString(price)));
- method.addChild(value2);
- return method;
- }
-
- public static void main(String[] args) {
- try {
- OMElement getPricePayload = getPricePayload("WSO");
- OMElement updatePayload = updatePayload("WSO", 123.42);
- Options options = new Options();
- options.setTo(targetEPR);
- options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
-
- ServiceClient sender = new ServiceClient();
- sender.setOptions(options);
-
- sender.fireAndForget(updatePayload);
- System.err.println("done");
- Thread.sleep(3000);
- OMElement result = sender.sendReceive(getPricePayload);
-
- String response = result.getFirstElement().getText();
- System.err.println("Current price of WSO: " + response);
-
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
-}
+/*
+* 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.clients;
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNamespace;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+
+public class AXIOMClient {
+
+ private static EndpointReference targetEPR =
+ new EndpointReference(
+ "http://localhost:8080/axis2/services/StockQuoteService");
+
+ public static OMElement getPricePayload(String symbol) {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMNamespace omNs = fac.createOMNamespace(
+ "http://quickstart.samples/xsd", "tns");
+
+ OMElement method = fac.createOMElement("getPrice", omNs);
+ OMElement value = fac.createOMElement("symbol", omNs);
+ value.addChild(fac.createOMText(value, symbol));
+ method.addChild(value);
+ return method;
+ }
+
+ public static OMElement updatePayload(String symbol, double price) {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMNamespace omNs = fac.createOMNamespace(
+ "http://quickstart.samples/xsd", "tns");
+
+ OMElement method = fac.createOMElement("update", omNs);
+
+ OMElement value1 = fac.createOMElement("symbol", omNs);
+ value1.addChild(fac.createOMText(value1, symbol));
+ method.addChild(value1);
+
+ OMElement value2 = fac.createOMElement("price", omNs);
+ value2.addChild(fac.createOMText(value2,
+ Double.toString(price)));
+ method.addChild(value2);
+ return method;
+ }
+
+ public static void main(String[] args) {
+ try {
+ OMElement getPricePayload = getPricePayload("WSO");
+ OMElement updatePayload = updatePayload("WSO", 123.42);
+ Options options = new Options();
+ options.setTo(targetEPR);
+ options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
+
+ ServiceClient sender = new ServiceClient();
+ sender.setOptions(options);
+
+ sender.fireAndForget(updatePayload);
+ System.err.println("done");
+ Thread.sleep(3000);
+ OMElement result = sender.sendReceive(getPricePayload);
+
+ String response = result.getFirstElement().getText();
+ System.err.println("Current price of WSO: " + response);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+}
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/StockQuoteService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartaxiom/src/samples/quickstart/service/axiom/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.axiom;
import javax.xml.stream.XMLStreamException;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/build.xml Wed Dec 20 04:23:24 2006
@@ -1,83 +1,100 @@
-<project basedir="." default="generate.all">
-
- <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">
- <delete dir="${build.dir}"/>
- <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.jibx"
- language="java"
- databindingName="jibx"
- unwrap="true"
- synconly="true"
- serverside="true"
- serverSideInterface="true"
- namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
- generateservicexml="true"/>
- <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
- toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
- 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.jibx"
- databindingName="jibx"
- namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
- language="java"
- unwrap="true"
- synconly="true"/>
- <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.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.JiBXClient">
- <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.all">
+
+ <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">
+ <delete dir="${build.dir}"/>
+ <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.jibx"
+ language="java"
+ databindingName="jibx"
+ unwrap="true"
+ synconly="true"
+ serverside="true"
+ serverSideInterface="true"
+ namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+ generateservicexml="true"/>
+ <copy file="${basedir}/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java"
+ toDir="${build.dir}/service/src/samples/quickstart/service/jibx/"
+ 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.jibx"
+ databindingName="jibx"
+ namespaceToPackages="http://StockQuoteService/xsd=samples.quickstart.service.jibx.xsd"
+ language="java"
+ unwrap="true"
+ synconly="true"/>
+ <copy file="${basedir}/src/samples/quickstart/clients/JiBXClient.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.JiBXClient">
+ <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/quickstartjibx/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/StockQuoteService.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/StockQuoteService.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/StockQuoteService.wsdl Wed Dec 20 04:23:24 2006
@@ -1,3 +1,21 @@
+<!--
+/*
+ * 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://StockQuoteService" 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://StockQuoteService/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://StockQuoteService">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://StockQuoteService/xsd">
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/resources/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/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"
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/clients/JiBXClient.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.clients;
import samples.quickstart.service.jibx.StockQuoteServiceStub;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartjibx/src/samples/quickstart/service/jibx/StockQuoteServiceSkeleton.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.jibx;
import java.util.HashMap;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/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.xmlbeans"
- language="java"
- databindingName="xmlbeans"
- synconly="true"
- serverside="true"
- serverSideInterface="true"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
- generateservicexml="true"/>
- <copy file="${basedir}/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java"
- toDir="${build.dir}/service/src/samples/quickstart/service/xmlbeans/"
- 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.xmlbeans"
- databindingName="xmlbeans"
- namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
- language="java"
- synconly="true"/>
- <copy file="${basedir}/src/samples/quickstart/clients/XMLBEANSClient.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.XMLBEANSClient">
- <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.xmlbeans"
+ language="java"
+ databindingName="xmlbeans"
+ synconly="true"
+ serverside="true"
+ serverSideInterface="true"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
+ generateservicexml="true"/>
+ <copy file="${basedir}/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java"
+ toDir="${build.dir}/service/src/samples/quickstart/service/xmlbeans/"
+ 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.xmlbeans"
+ databindingName="xmlbeans"
+ namespaceToPackages="http://quickstart.samples/xsd=samples.quickstart.service.xmlbeans.xsd"
+ language="java"
+ synconly="true"/>
+ <copy file="${basedir}/src/samples/quickstart/clients/XMLBEANSClient.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.XMLBEANSClient">
+ <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/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/StockQuoteService.wsdl (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/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/quickstartxmlbeans/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/resources/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/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"
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/clients/XMLBEANSClient.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.clients;
import samples.quickstart.service.xmlbeans.StockQuoteServiceStub;
Modified: webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/quickstartxmlbeans/src/samples/quickstart/service/xmlbeans/StockQuoteServiceSkeleton.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.
+*/
/**
* StockQuoteServiceSkeleton.java
*
Modified: webservices/axis2/branches/java/1_1/modules/samples/script/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/script/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/script/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/script/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 name="samples" default="alltests">
<property name="mainDir" value="../.."/>
<path id="axis.classpath">
Modified: webservices/axis2/branches/java/1_1/modules/samples/script/mail-test.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/script/mail-test.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/script/mail-test.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/script/mail-test.xml Wed Dec 20 04:23:24 2006
@@ -1,4 +1,21 @@
<?xml version="1.0"?>
+<!--
+/*
+ * 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.
+ */
+ -->
<!-- ======================================================================
Feb 11, 2005 1:04:21 PM
Modified: webservices/axis2/branches/java/1_1/modules/samples/script/wsdl-test.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/script/wsdl-test.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/script/wsdl-test.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/script/wsdl-test.xml Wed Dec 20 04:23:24 2006
@@ -1,5 +1,21 @@
<?xml version="1.0"?>
-
+<!--
+/*
+ * 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" basedir=".." default="testCodeGen">
<property name="maven.repo.local" value="${user.home}/.maven/repository/" />
Modified: webservices/axis2/branches/java/1_1/modules/samples/security/keys/client.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/keys/client.properties?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/keys/client.properties (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/keys/client.properties Wed Dec 20 04:23:24 2006
@@ -1,4 +1,19 @@
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=apache
+# -------------------------------------------------------------------
+# 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.
+# -------------------------------------------------------------------
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.type=jks
+org.apache.ws.security.crypto.merlin.keystore.password=apache
org.apache.ws.security.crypto.merlin.file=client.jks
Modified: webservices/axis2/branches/java/1_1/modules/samples/security/keys/service.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/security/keys/service.properties?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/security/keys/service.properties (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/security/keys/service.properties Wed Dec 20 04:23:24 2006
@@ -1,4 +1,19 @@
-org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
-org.apache.ws.security.crypto.merlin.keystore.type=jks
-org.apache.ws.security.crypto.merlin.keystore.password=apache
+# -------------------------------------------------------------------
+# 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.
+# -------------------------------------------------------------------
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.type=jks
+org.apache.ws.security.crypto.merlin.keystore.password=apache
org.apache.ws.security.crypto.merlin.file=service.jks
Modified: webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/build.xml Wed Dec 20 04:23:24 2006
@@ -1,102 +1,119 @@
-<project basedir="." default="build" name="Library">
-
- <property environment="env"/>
- <property name="service-name" value="Library.aar"/>
- <property name="dest.dir" value="target"/>
- <property name="axis2.home" value="../../" />
-
- <property name="repository.path" value="${axis2.home}/repository/services" />
-
- <property name="dest.dir.classes" value="${dest.dir}/classes"/>
-
- <property name="dest.dir.lib" value="${dest.dir}/lib"/>
- <property name="catalina-modules"
- value="${env.CATALINA_HOME}/webapps/axis2/WEB-INF/services"/>
-
- <path id="build.class.path">
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </path>
-
- <target name="clean">
- <delete dir="${dest.dir}"/>
- </target>
-
- <target name="prepare" depends="clean">
-
- <mkdir dir="${dest.dir}"/>
-
- <mkdir dir="${dest.dir.classes}"/>
-
- <mkdir dir="${dest.dir.classes}/META-INF"/>
-
- </target>
-
- <target name="build" depends="prepare">
-
- <mkdir dir="${dest.dir}"/>
-
- <mkdir dir="${dest.dir.classes}"/>
- <mkdir dir="${dest.dir.classes}/META-INF"/>
-
- <copy file="src/META-INF/services.xml"
- tofile="${dest.dir.classes}/META-INF/services.xml"
- overwrite="true"/>
-
- <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
- <classpath refid="build.class.path"/>
- </javac>
-
- <jar basedir="${dest.dir.classes}"
- destfile="${dest.dir}/${service-name}"/>
-
- </target>
-
- <target name="generate.service" depends="prepare">
-
- <mkdir dir="${dest.dir}"/>
-
- <mkdir dir="${dest.dir.classes}"/>
- <mkdir dir="${dest.dir.classes}/META-INF"/>
-
- <copy file="src/META-INF/services.xml"
- tofile="${dest.dir.classes}/META-INF/services.xml"
- overwrite="true"/>
-
- <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
- <classpath refid="build.class.path"/>
- </javac>
-
- <jar basedir="${dest.dir.classes}"
- destfile="${repository.path}/${service-name}"/>
-
- </target>
-
-
-
- <target name="run.client" depends="prepare">
- <mkdir dir="${dest.dir}"/>
- <mkdir dir="${dest.dir.classes}"/>
- <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="client/**">
- <classpath>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </javac>
-
- <java classname="client.LibraryServiceClient">
- <classpath>
- <pathelement location="${dest.dir.classes}"/>
- <fileset dir="../../lib">
- <include name="*.jar"/>
- </fileset>
- </classpath>
- </java>
- </target>
- <target name="copy.to.tomcat" depends="build">
- <copy file="${dest.dir}/${service-name}" todir="${catalina-modules}"/>
- </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="build" name="Library">
+
+ <property environment="env"/>
+ <property name="service-name" value="Library.aar"/>
+ <property name="dest.dir" value="target"/>
+ <property name="axis2.home" value="../../" />
+
+ <property name="repository.path" value="${axis2.home}/repository/services" />
+
+ <property name="dest.dir.classes" value="${dest.dir}/classes"/>
+
+ <property name="dest.dir.lib" value="${dest.dir}/lib"/>
+ <property name="catalina-modules"
+ value="${env.CATALINA_HOME}/webapps/axis2/WEB-INF/services"/>
+
+ <path id="build.class.path">
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="clean">
+ <delete dir="${dest.dir}"/>
+ </target>
+
+ <target name="prepare" depends="clean">
+
+ <mkdir dir="${dest.dir}"/>
+
+ <mkdir dir="${dest.dir.classes}"/>
+
+ <mkdir dir="${dest.dir.classes}/META-INF"/>
+
+ </target>
+
+ <target name="build" depends="prepare">
+
+ <mkdir dir="${dest.dir}"/>
+
+ <mkdir dir="${dest.dir.classes}"/>
+ <mkdir dir="${dest.dir.classes}/META-INF"/>
+
+ <copy file="src/META-INF/services.xml"
+ tofile="${dest.dir.classes}/META-INF/services.xml"
+ overwrite="true"/>
+
+ <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
+ <classpath refid="build.class.path"/>
+ </javac>
+
+ <jar basedir="${dest.dir.classes}"
+ destfile="${dest.dir}/${service-name}"/>
+
+ </target>
+
+ <target name="generate.service" depends="prepare">
+
+ <mkdir dir="${dest.dir}"/>
+
+ <mkdir dir="${dest.dir.classes}"/>
+ <mkdir dir="${dest.dir.classes}/META-INF"/>
+
+ <copy file="src/META-INF/services.xml"
+ tofile="${dest.dir.classes}/META-INF/services.xml"
+ overwrite="true"/>
+
+ <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="sample/**">
+ <classpath refid="build.class.path"/>
+ </javac>
+
+ <jar basedir="${dest.dir.classes}"
+ destfile="${repository.path}/${service-name}"/>
+
+ </target>
+
+
+
+ <target name="run.client" depends="prepare">
+ <mkdir dir="${dest.dir}"/>
+ <mkdir dir="${dest.dir.classes}"/>
+ <javac debug="on" srcdir="src" destdir="${dest.dir.classes}" includes="client/**">
+ <classpath>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+
+ <java classname="client.LibraryServiceClient">
+ <classpath>
+ <pathelement location="${dest.dir.classes}"/>
+ <fileset dir="../../lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </java>
+ </target>
+ <target name="copy.to.tomcat" depends="build">
+ <copy file="${dest.dir}/${service-name}" todir="${catalina-modules}"/>
+ </target>
+
+</project>
Modified: webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/META-INF/services.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/src/META-INF/services.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/servicelifecycle/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="Library"
class="sample.servicelifecycle.LibraryLifeCycle" scope="application">
<description>
Modified: webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/build.xml Wed Dec 20 04:23:24 2006
@@ -1,65 +1,82 @@
-<project name="SOAPWithAttachmentsSample" default="generate.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/swaSampleClient.jar" />
- </path>
-
- <target name="generate.service" depends="compile">
- <jar destfile="${build.dir}/sample-swa.aar">
- <fileset dir="resources/">
- <include name="META-INF/services.xml" />
- </fileset>
- <fileset dir="${build.dir}/classes">
- <include name="sample/soapwithattachments/service/**/*.class" />
- </fileset>
- </jar>
- <copy file="${build.dir}/sample-swa.aar" tofile="${axis2.home}/repository/services/sample-swa.aar" overwrite="true" />
- </target>
-
- <target name="compile">
- <mkdir dir="${client.classes.dir}" />
- <!-- Compile client -->
- <javac debug="on" srcdir="src" destdir="${client.classes.dir}">
- <classpath refid="axis.classpath" />
- </javac>
- </target>
- <target name="check-parameters">
- <condition property="parameters.set">
- <and>
- <isset property="dest" />
- <isset property="file" />
- </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 -Dfile <file to be transfered> -Ddest <name of the destination file>" />
- </target>
-
- <target name="run.client" depends="compile,check-parameters" if="parameters.set">
- <jar destfile="${build.dir}/swaSampleClient.jar">
- <fileset dir="${build.dir}/classes">
- <include name="sample/soapwithattachments/client/**/*.class" />
- </fileset>
- </jar>
- <java classname="sample.soapwithattachments.client.SWAClient" classpathref="axis.classpath" fork="true">
- <arg value="-file" />
- <arg value="${file}" />
- <arg value="-dest" />
- <arg value="${dest}" />
- <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="SOAPWithAttachmentsSample" default="generate.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/swaSampleClient.jar" />
+ </path>
+
+ <target name="generate.service" depends="compile">
+ <jar destfile="${build.dir}/sample-swa.aar">
+ <fileset dir="resources/">
+ <include name="META-INF/services.xml" />
+ </fileset>
+ <fileset dir="${build.dir}/classes">
+ <include name="sample/soapwithattachments/service/**/*.class" />
+ </fileset>
+ </jar>
+ <copy file="${build.dir}/sample-swa.aar" tofile="${axis2.home}/repository/services/sample-swa.aar" overwrite="true" />
+ </target>
+
+ <target name="compile">
+ <mkdir dir="${client.classes.dir}" />
+ <!-- Compile client -->
+ <javac debug="on" srcdir="src" destdir="${client.classes.dir}">
+ <classpath refid="axis.classpath" />
+ </javac>
+ </target>
+ <target name="check-parameters">
+ <condition property="parameters.set">
+ <and>
+ <isset property="dest" />
+ <isset property="file" />
+ </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 -Dfile <file to be transfered> -Ddest <name of the destination file>" />
+ </target>
+
+ <target name="run.client" depends="compile,check-parameters" if="parameters.set">
+ <jar destfile="${build.dir}/swaSampleClient.jar">
+ <fileset dir="${build.dir}/classes">
+ <include name="sample/soapwithattachments/client/**/*.class" />
+ </fileset>
+ </jar>
+ <java classname="sample.soapwithattachments.client.SWAClient" classpathref="axis.classpath" fork="true">
+ <arg value="-file" />
+ <arg value="${file}" />
+ <arg value="-dest" />
+ <arg value="${dest}" />
+ <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/soapwithattachments/src/sample/soapwithattachments/service/AttachmentService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/src/sample/soapwithattachments/service/AttachmentService.java?view=diff&rev=489066&r1=489065&r2=489066
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/src/sample/soapwithattachments/service/AttachmentService.java (original)
+++ webservices/axis2/branches/java/1_1/modules/samples/soapwithattachments/src/sample/soapwithattachments/service/AttachmentService.java Wed Dec 20 04:23:24 2006
@@ -1,28 +1,43 @@
-package sample.soapwithattachments.service;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import javax.activation.DataHandler;
-
-import org.apache.axiom.attachments.Attachments;
-import org.apache.axis2.context.MessageContext;
-
-public class AttachmentService {
-
- public String uploadFile(String name, String attchmentID) throws IOException
- {
- MessageContext msgCtx = MessageContext.getCurrentMessageContext();
- Attachments attachment = msgCtx.getAttachmentMap();
- DataHandler dataHandler = attachment.getDataHandler(attchmentID);
- File file = new File(
- name);
- FileOutputStream fileOutputStream = new FileOutputStream(file);
- dataHandler.writeTo(fileOutputStream);
- fileOutputStream.flush();
- fileOutputStream.close();
-
- return "File saved succesfully.";
- }
-
-}
+/*
+* 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 sample.soapwithattachments.service;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+
+import org.apache.axiom.attachments.Attachments;
+import org.apache.axis2.context.MessageContext;
+
+public class AttachmentService {
+
+ public String uploadFile(String name, String attchmentID) throws IOException
+ {
+ MessageContext msgCtx = MessageContext.getCurrentMessageContext();
+ Attachments attachment = msgCtx.getAttachmentMap();
+ DataHandler dataHandler = attachment.getDataHandler(attchmentID);
+ File file = new File(
+ name);
+ FileOutputStream fileOutputStream = new FileOutputStream(file);
+ dataHandler.writeTo(fileOutputStream);
+ fileOutputStream.flush();
+ fileOutputStream.close();
+
+ return "File saved succesfully.";
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org