From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/com/example/uszip/GetInfoByAreaCode.java | 81 +++++++++++ .../example/uszip/GetInfoByAreaCodeResponse.java | 158 +++++++++++++++++++++ .../main/java/com/example/uszip/GetInfoByCity.java | 81 +++++++++++ .../com/example/uszip/GetInfoByCityResponse.java | 158 +++++++++++++++++++++ .../java/com/example/uszip/GetInfoByState.java | 81 +++++++++++ .../com/example/uszip/GetInfoByStateResponse.java | 158 +++++++++++++++++++++ .../main/java/com/example/uszip/GetInfoByZIP.java | 81 +++++++++++ .../com/example/uszip/GetInfoByZIPResponse.java | 158 +++++++++++++++++++++ .../main/java/com/example/uszip/ObjectFactory.java | 145 +++++++++++++++++++ .../src/main/java/com/example/uszip/USZip.java | 89 ++++++++++++ .../src/main/java/com/example/uszip/USZipSoap.java | 103 ++++++++++++++ .../main/java/com/example/uszip/package-info.java | 20 +++ 12 files changed, 1313 insertions(+) create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java create mode 100644 sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java (limited to 'sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip') diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java new file mode 100644 index 0000000000..8c9a48bf40 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java @@ -0,0 +1,81 @@ +/* + * 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. + */ +package com.example.uszip; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="USAreaCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "usAreaCode" +}) +@XmlRootElement(name = "GetInfoByAreaCode") +public class GetInfoByAreaCode { + + @XmlElement(name = "USAreaCode") + protected String usAreaCode; + + /** + * Gets the value of the usAreaCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUSAreaCode() { + return usAreaCode; + } + + /** + * Sets the value of the usAreaCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUSAreaCode(String value) { + this.usAreaCode = value; + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java new file mode 100644 index 0000000000..93847c8809 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java @@ -0,0 +1,158 @@ +/* + * 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. + */ +package com.example.uszip; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoByAreaCodeResult" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "getInfoByAreaCodeResult" +}) +@XmlRootElement(name = "GetInfoByAreaCodeResponse") +public class GetInfoByAreaCodeResponse { + + @XmlElement(name = "GetInfoByAreaCodeResult") + protected GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult getInfoByAreaCodeResult; + + /** + * Gets the value of the getInfoByAreaCodeResult property. + * + * @return + * possible object is + * {@link GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult } + * + */ + public GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult getGetInfoByAreaCodeResult() { + return getInfoByAreaCodeResult; + } + + /** + * Sets the value of the getInfoByAreaCodeResult property. + * + * @param value + * allowed object is + * {@link GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult } + * + */ + public void setGetInfoByAreaCodeResult(GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult value) { + this.getInfoByAreaCodeResult = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class GetInfoByAreaCodeResult { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java new file mode 100644 index 0000000000..cf9276d417 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java @@ -0,0 +1,81 @@ +/* + * 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. + */ +package com.example.uszip; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="USCity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "usCity" +}) +@XmlRootElement(name = "GetInfoByCity") +public class GetInfoByCity { + + @XmlElement(name = "USCity") + protected String usCity; + + /** + * Gets the value of the usCity property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUSCity() { + return usCity; + } + + /** + * Sets the value of the usCity property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUSCity(String value) { + this.usCity = value; + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java new file mode 100644 index 0000000000..9dc0e41b2b --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java @@ -0,0 +1,158 @@ +/* + * 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. + */ +package com.example.uszip; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoByCityResult" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "getInfoByCityResult" +}) +@XmlRootElement(name = "GetInfoByCityResponse") +public class GetInfoByCityResponse { + + @XmlElement(name = "GetInfoByCityResult") + protected GetInfoByCityResponse.GetInfoByCityResult getInfoByCityResult; + + /** + * Gets the value of the getInfoByCityResult property. + * + * @return + * possible object is + * {@link GetInfoByCityResponse.GetInfoByCityResult } + * + */ + public GetInfoByCityResponse.GetInfoByCityResult getGetInfoByCityResult() { + return getInfoByCityResult; + } + + /** + * Sets the value of the getInfoByCityResult property. + * + * @param value + * allowed object is + * {@link GetInfoByCityResponse.GetInfoByCityResult } + * + */ + public void setGetInfoByCityResult(GetInfoByCityResponse.GetInfoByCityResult value) { + this.getInfoByCityResult = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class GetInfoByCityResult { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java new file mode 100644 index 0000000000..48be94b14a --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java @@ -0,0 +1,81 @@ +/* + * 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. + */ +package com.example.uszip; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="USState" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "usState" +}) +@XmlRootElement(name = "GetInfoByState") +public class GetInfoByState { + + @XmlElement(name = "USState") + protected String usState; + + /** + * Gets the value of the usState property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUSState() { + return usState; + } + + /** + * Sets the value of the usState property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUSState(String value) { + this.usState = value; + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java new file mode 100644 index 0000000000..1645e11ca2 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java @@ -0,0 +1,158 @@ +/* + * 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. + */ +package com.example.uszip; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoByStateResult" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "getInfoByStateResult" +}) +@XmlRootElement(name = "GetInfoByStateResponse") +public class GetInfoByStateResponse { + + @XmlElement(name = "GetInfoByStateResult") + protected GetInfoByStateResponse.GetInfoByStateResult getInfoByStateResult; + + /** + * Gets the value of the getInfoByStateResult property. + * + * @return + * possible object is + * {@link GetInfoByStateResponse.GetInfoByStateResult } + * + */ + public GetInfoByStateResponse.GetInfoByStateResult getGetInfoByStateResult() { + return getInfoByStateResult; + } + + /** + * Sets the value of the getInfoByStateResult property. + * + * @param value + * allowed object is + * {@link GetInfoByStateResponse.GetInfoByStateResult } + * + */ + public void setGetInfoByStateResult(GetInfoByStateResponse.GetInfoByStateResult value) { + this.getInfoByStateResult = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class GetInfoByStateResult { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java new file mode 100644 index 0000000000..45c948b4b4 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java @@ -0,0 +1,81 @@ +/* + * 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. + */ +package com.example.uszip; + +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; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="USZip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "usZip" +}) +@XmlRootElement(name = "GetInfoByZIP") +public class GetInfoByZIP { + + @XmlElement(name = "USZip") + protected String usZip; + + /** + * Gets the value of the usZip property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUSZip() { + return usZip; + } + + /** + * Sets the value of the usZip property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUSZip(String value) { + this.usZip = value; + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java new file mode 100644 index 0000000000..9e78dc6d0a --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java @@ -0,0 +1,158 @@ +/* + * 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. + */ +package com.example.uszip; + +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GetInfoByZIPResult" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "getInfoByZIPResult" +}) +@XmlRootElement(name = "GetInfoByZIPResponse") +public class GetInfoByZIPResponse { + + @XmlElement(name = "GetInfoByZIPResult") + protected GetInfoByZIPResponse.GetInfoByZIPResult getInfoByZIPResult; + + /** + * Gets the value of the getInfoByZIPResult property. + * + * @return + * possible object is + * {@link GetInfoByZIPResponse.GetInfoByZIPResult } + * + */ + public GetInfoByZIPResponse.GetInfoByZIPResult getGetInfoByZIPResult() { + return getInfoByZIPResult; + } + + /** + * Sets the value of the getInfoByZIPResult property. + * + * @param value + * allowed object is + * {@link GetInfoByZIPResponse.GetInfoByZIPResult } + * + */ + public void setGetInfoByZIPResult(GetInfoByZIPResponse.GetInfoByZIPResult value) { + this.getInfoByZIPResult = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class GetInfoByZIPResult { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getContent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java new file mode 100644 index 0000000000..ced83ff09a --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java @@ -0,0 +1,145 @@ +/* + * 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. + */ +package com.example.uszip; + +import javax.xml.bind.annotation.XmlRegistry; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.example.uszip package. + *

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: com.example.uszip + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link GetInfoByCity } + * + */ + public GetInfoByCity createGetInfoByCity() { + return new GetInfoByCity(); + } + + /** + * Create an instance of {@link GetInfoByState } + * + */ + public GetInfoByState createGetInfoByState() { + return new GetInfoByState(); + } + + /** + * Create an instance of {@link GetInfoByZIPResponse.GetInfoByZIPResult } + * + */ + public GetInfoByZIPResponse.GetInfoByZIPResult createGetInfoByZIPResponseGetInfoByZIPResult() { + return new GetInfoByZIPResponse.GetInfoByZIPResult(); + } + + /** + * Create an instance of {@link GetInfoByStateResponse.GetInfoByStateResult } + * + */ + public GetInfoByStateResponse.GetInfoByStateResult createGetInfoByStateResponseGetInfoByStateResult() { + return new GetInfoByStateResponse.GetInfoByStateResult(); + } + + /** + * Create an instance of {@link GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult } + * + */ + public GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult createGetInfoByAreaCodeResponseGetInfoByAreaCodeResult() { + return new GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult(); + } + + /** + * Create an instance of {@link GetInfoByZIP } + * + */ + public GetInfoByZIP createGetInfoByZIP() { + return new GetInfoByZIP(); + } + + /** + * Create an instance of {@link GetInfoByAreaCodeResponse } + * + */ + public GetInfoByAreaCodeResponse createGetInfoByAreaCodeResponse() { + return new GetInfoByAreaCodeResponse(); + } + + /** + * Create an instance of {@link GetInfoByCityResponse } + * + */ + public GetInfoByCityResponse createGetInfoByCityResponse() { + return new GetInfoByCityResponse(); + } + + /** + * Create an instance of {@link GetInfoByStateResponse } + * + */ + public GetInfoByStateResponse createGetInfoByStateResponse() { + return new GetInfoByStateResponse(); + } + + /** + * Create an instance of {@link GetInfoByCityResponse.GetInfoByCityResult } + * + */ + public GetInfoByCityResponse.GetInfoByCityResult createGetInfoByCityResponseGetInfoByCityResult() { + return new GetInfoByCityResponse.GetInfoByCityResult(); + } + + /** + * Create an instance of {@link GetInfoByZIPResponse } + * + */ + public GetInfoByZIPResponse createGetInfoByZIPResponse() { + return new GetInfoByZIPResponse(); + } + + /** + * Create an instance of {@link GetInfoByAreaCode } + * + */ + public GetInfoByAreaCode createGetInfoByAreaCode() { + return new GetInfoByAreaCode(); + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java new file mode 100644 index 0000000000..22493ba9b8 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java @@ -0,0 +1,89 @@ +/* + * 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. + */ +package com.example.uszip; + +import java.net.MalformedURLException; +import java.net.URL; +import java.util.logging.Logger; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + * + */ +@WebServiceClient(name = "USZip", targetNamespace = "http://www.webserviceX.NET", wsdlLocation = "file:/C:/Tuscany/java/sca/demos/us-location/src/main/resources/wsdl/uszip.wsdl") +public class USZip + extends Service +{ + + private final static URL USZIP_WSDL_LOCATION; + private final static Logger logger = Logger.getLogger(com.example.uszip.USZip.class.getName()); + + static { + URL url = null; + try { + URL baseUrl; + baseUrl = com.example.uszip.USZip.class.getResource("."); + url = new URL(baseUrl, "file:/C:/Tuscany/java/sca/demos/us-location/src/main/resources/wsdl/uszip.wsdl"); + } catch (MalformedURLException e) { + logger.warning("Failed to create URL for the wsdl Location: 'file:/C:/Tuscany/java/sca/demos/us-location/src/main/resources/wsdl/uszip.wsdl', retrying as a local file"); + logger.warning(e.getMessage()); + } + USZIP_WSDL_LOCATION = url; + } + + public USZip(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public USZip() { + super(USZIP_WSDL_LOCATION, new QName("http://www.webserviceX.NET", "USZip")); + } + + /** + * + * @return + * returns USZipSoap + */ + @WebEndpoint(name = "USZipSoap") + public USZipSoap getUSZipSoap() { + return super.getPort(new QName("http://www.webserviceX.NET", "USZipSoap"), USZipSoap.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns USZipSoap + */ + @WebEndpoint(name = "USZipSoap") + public USZipSoap getUSZipSoap(WebServiceFeature... features) { + return super.getPort(new QName("http://www.webserviceX.NET", "USZipSoap"), USZipSoap.class, features); + } + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java new file mode 100644 index 0000000000..5ac370005f --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java @@ -0,0 +1,103 @@ +/* + * 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. + */ +package com.example.uszip; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.3-b02- + * Generated source version: 2.1 + * + */ +@WebService(name = "USZipSoap", targetNamespace = "http://www.webserviceX.NET") +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface USZipSoap { + + + /** + * Get State Code,City,Area Code,Time Zone,Zip Code by Zip Code + * + * @param usZip + * @return + * returns com.example.uszip.GetInfoByZIPResponse.GetInfoByZIPResult + */ + @WebMethod(operationName = "GetInfoByZIP", action = "http://www.webserviceX.NET/GetInfoByZIP") + @WebResult(name = "GetInfoByZIPResult", targetNamespace = "http://www.webserviceX.NET") + @RequestWrapper(localName = "GetInfoByZIP", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByZIP") + @ResponseWrapper(localName = "GetInfoByZIPResponse", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByZIPResponse") + public com.example.uszip.GetInfoByZIPResponse.GetInfoByZIPResult getInfoByZIP( + @WebParam(name = "USZip", targetNamespace = "http://www.webserviceX.NET") + String usZip); + + /** + * Get State Code,City,Area Code,Time Zone,Zip Code by City + * + * @param usCity + * @return + * returns com.example.uszip.GetInfoByCityResponse.GetInfoByCityResult + */ + @WebMethod(operationName = "GetInfoByCity", action = "http://www.webserviceX.NET/GetInfoByCity") + @WebResult(name = "GetInfoByCityResult", targetNamespace = "http://www.webserviceX.NET") + @RequestWrapper(localName = "GetInfoByCity", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByCity") + @ResponseWrapper(localName = "GetInfoByCityResponse", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByCityResponse") + public com.example.uszip.GetInfoByCityResponse.GetInfoByCityResult getInfoByCity( + @WebParam(name = "USCity", targetNamespace = "http://www.webserviceX.NET") + String usCity); + + /** + * Get State Code,City,Area Code,Time Zone,Zip Code by state + * + * @param usState + * @return + * returns com.example.uszip.GetInfoByStateResponse.GetInfoByStateResult + */ + @WebMethod(operationName = "GetInfoByState", action = "http://www.webserviceX.NET/GetInfoByState") + @WebResult(name = "GetInfoByStateResult", targetNamespace = "http://www.webserviceX.NET") + @RequestWrapper(localName = "GetInfoByState", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByState") + @ResponseWrapper(localName = "GetInfoByStateResponse", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByStateResponse") + public com.example.uszip.GetInfoByStateResponse.GetInfoByStateResult getInfoByState( + @WebParam(name = "USState", targetNamespace = "http://www.webserviceX.NET") + String usState); + + /** + * Get State Code,City,Area Code,Time Zone,Zip Code by Area Code + * + * @param usAreaCode + * @return + * returns com.example.uszip.GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult + */ + @WebMethod(operationName = "GetInfoByAreaCode", action = "http://www.webserviceX.NET/GetInfoByAreaCode") + @WebResult(name = "GetInfoByAreaCodeResult", targetNamespace = "http://www.webserviceX.NET") + @RequestWrapper(localName = "GetInfoByAreaCode", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByAreaCode") + @ResponseWrapper(localName = "GetInfoByAreaCodeResponse", targetNamespace = "http://www.webserviceX.NET", className = "com.example.uszip.GetInfoByAreaCodeResponse") + public com.example.uszip.GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult getInfoByAreaCode( + @WebParam(name = "USAreaCode", targetNamespace = "http://www.webserviceX.NET") + String usAreaCode); + +} diff --git a/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java new file mode 100644 index 0000000000..d120f34ee5 --- /dev/null +++ b/sandbox/axis2-1.4/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java @@ -0,0 +1,20 @@ +/* + * 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. + */ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package com.example.uszip; -- cgit v1.2.3