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 di...@apache.org on 2007/04/06 00:08:38 UTC
svn commit: r525979 - in
/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator: ./
resources/ resources/META-INF/ src/ src/org/ src/org/apache/
src/org/apache/axis2/ src/org/apache/axis2/jaxws/
src/org/apache/axis2/jaxws/calculator/
Author: dims
Date: Thu Apr 5 15:08:35 2007
New Revision: 525979
URL: http://svn.apache.org/viewvc?view=rev&rev=525979
Log:
JAXWS based Calculator service. Additional bonus, m2 pom sample for generating an aar
Added:
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/pom.xml
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/services.xml
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java
webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/pom.xml?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/pom.xml (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/pom.xml Thu Apr 5 15:08:35 2007
@@ -0,0 +1,91 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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 xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.axis2.samples</groupId>
+ <artifactId>jaxws-calculator</artifactId>
+ <packaging>aar</packaging>
+ <version>SNAPSHOT</version>
+ <name>JAXWS Calculator Service</name>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.axis2.maven2</groupId>
+ <artifactId>axis2-aar-maven-plugin</artifactId>
+ <version>1.2-SNAPSHOT</version>
+ <extensions>true</extensions>
+ <configuration>
+ <servicesXmlFile>resources/META-INF/services.xml</servicesXmlFile>
+ <wsdlFile>resources/META-INF/CalculatorService.wsdl</wsdlFile>
+ <includeDependencies>false</includeDependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-jaxws</artifactId>
+ <version>SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>apache-m2</id>
+ <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+ </repository>
+ <repository>
+ <id>apache-snapshots</id>
+ <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+ </repository>
+ <repository>
+ <id>maven2</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>apache-m2</id>
+ <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>apache-snapshots</id>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>maven2</id>
+ <url>http://repo1.maven.org/maven2/</url>
+ </pluginRepository>
+ </pluginRepositories>
+</project>
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/CalculatorService.wsdl Thu Apr 5 15:08:35 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="http://calculator.jaxws.axis2.apache.org"
+ targetNamespace="http://calculator.jaxws.axis2.apache.org"
+ name="Calculator">
+ <wsdl:types>
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://calculator.jaxws.axis2.org"
+ targetNamespace="http://calculator.jaxws.axis2.apache.org"
+ attributeFormDefault="unqualified"
+ elementFormDefault="qualified">
+ <xsd:element name="add">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value1" type="xsd:int"/>
+ <xsd:element name="value2" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="addResponse">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="return" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="add">
+ <wsdl:part name="add" element="tns:add"/>
+ </wsdl:message>
+ <wsdl:message name="addResponse">
+ <wsdl:part name="addResponse" element="tns:addResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="Calculator">
+ <wsdl:operation name="add">
+ <wsdl:input name="add" message="tns:add"/>
+ <wsdl:output name="addResponse" message="tns:addResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CalculatorSoapBinding" type="tns:Calculator">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="add">
+ <soap:operation soapAction="add" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="CalculatorService">
+ <wsdl:port name="Calculator" binding="tns:CalculatorSoapBinding">
+ <soap:address location="http://localhost:8080/jaxws-calculator-1.0/calculator"/>
+ <wswa:UsingAddressing xmlns:wswa="http://www.w3.org/2005/08/addressing/wsdl"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/services.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/services.xml?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/services.xml (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/resources/META-INF/services.xml Thu Apr 5 15:08:35 2007
@@ -0,0 +1,32 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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="CalculatorService">
+ <parameter name="useOriginalwsdl">true</parameter>
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+ class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/>
+ </messageReceivers>
+ <parameter locked="false" name="ServiceClass">org.apache.axis2.jaxws.calculator.CalculatorService</parameter>
+ <operation name="invoke" mep="http://www.w3.org/2004/08/wsdl/in-out">
+ <actionMapping/>
+ </operation>
+ </service>
+</serviceGroup>
+
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Add.java Thu Apr 5 15:08:35 2007
@@ -0,0 +1,93 @@
+/*
+* 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 org.apache.axis2.jaxws.calculator;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for add element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <element name="add">
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="value1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="value2" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "value1",
+ "value2"
+})
+@XmlRootElement(name = "add")
+public class Add {
+
+ @XmlElement(namespace = "http://calculator.jaxws.axis2.apache.org")
+ protected int value1;
+ @XmlElement(namespace = "http://calculator.jaxws.axis2.apache.org")
+ protected int value2;
+
+ /**
+ * Gets the value of the value1 property.
+ *
+ */
+ public int getValue1() {
+ return value1;
+ }
+
+ /**
+ * Sets the value of the value1 property.
+ *
+ */
+ public void setValue1(int value) {
+ this.value1 = value;
+ }
+
+ /**
+ * Gets the value of the value2 property.
+ *
+ */
+ public int getValue2() {
+ return value2;
+ }
+
+ /**
+ * Sets the value of the value2 property.
+ *
+ */
+ public void setValue2(int value) {
+ this.value2 = value;
+ }
+
+}
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/AddResponse.java Thu Apr 5 15:08:35 2007
@@ -0,0 +1,73 @@
+/*
+* 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 org.apache.axis2.jaxws.calculator;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addResponse element declaration.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <element name="addResponse">
+ * <complexType>
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </element>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "_return"
+})
+@XmlRootElement(name = "addResponse")
+public class AddResponse {
+
+ @XmlElement(name = "return", namespace = "http://calculator.jaxws.axis2.apache.org")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/Calculator.java Thu Apr 5 15:08:35 2007
@@ -0,0 +1,54 @@
+/*
+* 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 org.apache.axis2.jaxws.calculator;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0_01-b59-fcs
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "Calculator", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+public interface Calculator {
+
+
+ /**
+ *
+ * @param value1
+ * @param value2
+ * @return
+ * returns int
+ */
+ @WebMethod(action = "add")
+ @WebResult(targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+ @RequestWrapper(localName = "add", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.Add")
+ @ResponseWrapper(localName = "addResponse", targetNamespace = "http://calculator.jaxws.axis2.apache.org", className = "org.apache.axis2.jaxws.calculator.AddResponse")
+ public int add(
+ @WebParam(name = "value1", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+ int value1,
+ @WebParam(name = "value2", targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+ int value2);
+
+}
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/CalculatorService.java Thu Apr 5 15:08:35 2007
@@ -0,0 +1,49 @@
+ /*
+* 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 org.apache.axis2.jaxws.calculator;
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceContext;
+
+@WebService(serviceName = "Calculator",
+ endpointInterface = "org.apache.axis2.jaxws.calculator.Calculator",
+ targetNamespace = "http://calculator.jaxws.axis2.apache.org")
+public class CalculatorService implements Calculator {
+
+ @Resource
+ private WebServiceContext context;
+
+ /**
+ * @return
+ * returns javax.xml.ws.WebServiceContext
+ */
+ public WebServiceContext getContext() {
+ return context;
+ }
+
+ /**
+ * @param value1
+ * @param value2
+ * @return
+ * returns int
+ */
+ public int add(int value1, int value2) {
+ System.out.println("User Principal: " + context.getUserPrincipal());
+ System.out.println("value1: " + value1 + " value2: " + value2);
+ return value1 + value2;
+ }
+}
\ No newline at end of file
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/ObjectFactory.java Thu Apr 5 15:08:35 2007
@@ -0,0 +1,63 @@
+/*
+* 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 org.apache.axis2.jaxws.calculator;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.apache.axis2.jaxws.calculator package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.apache.axis2.jaxws.calculator
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link Add }
+ *
+ */
+ public Add createAdd() {
+ return new Add();
+ }
+
+ /**
+ * Create an instance of {@link AddResponse }
+ *
+ */
+ public AddResponse createAddResponse() {
+ return new AddResponse();
+ }
+
+}
Added: webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java?view=auto&rev=525979
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java (added)
+++ webservices/axis2/branches/java/1_2/modules/samples/jaxws-calculator/src/org/apache/axis2/jaxws/calculator/package-info.java Thu Apr 5 15:08:35 2007
@@ -0,0 +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.
+*/
+
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://calculator.jaxws.axis2.apache.org")
+package org.apache.axis2.jaxws.calculator;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org