summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java158
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java158
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java158
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java158
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java145
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java89
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java103
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java20
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java87
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java81
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java118
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java219
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java91
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java73
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java251
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java20
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/LocationClient.java55
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java56
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java60
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java43
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java38
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java30
-rw-r--r--sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java82
30 files changed, 2860 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java
new file mode 100644
index 0000000000..8c9a48bf40
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="USAreaCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java
new file mode 100644
index 0000000000..93847c8809
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetInfoByAreaCodeResult" minOccurs="0">
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * &lt;/element>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+ "content"
+ })
+ public static class GetInfoByAreaCodeResult {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java
new file mode 100644
index 0000000000..cf9276d417
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="USCity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java
new file mode 100644
index 0000000000..9dc0e41b2b
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetInfoByCityResult" minOccurs="0">
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * &lt;/element>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+ "content"
+ })
+ public static class GetInfoByCityResult {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java
new file mode 100644
index 0000000000..48be94b14a
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="USState" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java
new file mode 100644
index 0000000000..1645e11ca2
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetInfoByStateResult" minOccurs="0">
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * &lt;/element>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+ "content"
+ })
+ public static class GetInfoByStateResult {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java
new file mode 100644
index 0000000000..45c948b4b4
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="USZip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java
new file mode 100644
index 0000000000..9e78dc6d0a
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetInfoByZIPResult" minOccurs="0">
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * &lt;/element>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@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;
+ }
+
+
+ /**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;any/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+ @XmlAccessorType(XmlAccessType.FIELD)
+ @XmlType(name = "", propOrder = {
+ "content"
+ })
+ public static class GetInfoByZIPResult {
+
+ @XmlMixed
+ @XmlAnyElement(lax = true)
+ protected List<Object> content;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the content property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getContent().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link String }
+ * {@link Object }
+ *
+ *
+ */
+ public List<Object> getContent() {
+ if (content == null) {
+ content = new ArrayList<Object>();
+ }
+ return this.content;
+ }
+
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java
new file mode 100644
index 0000000000..ced83ff09a
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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.
+ * <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: 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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java
new file mode 100644
index 0000000000..22493ba9b8
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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 <code>features</code> 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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java
new file mode 100644
index 0000000000..5ac370005f
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java
new file mode 100644
index 0000000000..d120f34ee5
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/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;
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java
new file mode 100644
index 0000000000..5385fb57be
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java
@@ -0,0 +1,87 @@
+/*
+ * 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.weather;
+
+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.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for ArrayOfWeatherData complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType name="ArrayOfWeatherData">
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="WeatherData" type="{http://www.webservicex.net}WeatherData" maxOccurs="unbounded" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "ArrayOfWeatherData", propOrder = {
+ "weatherData"
+})
+public class ArrayOfWeatherData {
+
+ @XmlElement(name = "WeatherData")
+ protected List<WeatherData> weatherData;
+
+ /**
+ * Gets the value of the weatherData property.
+ *
+ * <p>
+ * 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 <CODE>set</CODE> method for the weatherData property.
+ *
+ * <p>
+ * For example, to add a new item, do as follows:
+ * <pre>
+ * getWeatherData().add(newItem);
+ * </pre>
+ *
+ *
+ * <p>
+ * Objects of the following type(s) are allowed in the list
+ * {@link WeatherData }
+ *
+ *
+ */
+ public List<WeatherData> getWeatherData() {
+ if (weatherData == null) {
+ weatherData = new ArrayList<WeatherData>();
+ }
+ return this.weatherData;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java
new file mode 100644
index 0000000000..9eb205e75d
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.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.weather;
+
+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 anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="PlaceName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "placeName"
+})
+@XmlRootElement(name = "GetWeatherByPlaceName")
+public class GetWeatherByPlaceName {
+
+ @XmlElement(name = "PlaceName")
+ protected String placeName;
+
+ /**
+ * Gets the value of the placeName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPlaceName() {
+ return placeName;
+ }
+
+ /**
+ * Sets the value of the placeName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPlaceName(String value) {
+ this.placeName = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java
new file mode 100644
index 0000000000..e281509623
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.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.weather;
+
+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 anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetWeatherByPlaceNameResult" type="{http://www.webservicex.net}WeatherForecasts"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "getWeatherByPlaceNameResult"
+})
+@XmlRootElement(name = "GetWeatherByPlaceNameResponse")
+public class GetWeatherByPlaceNameResponse {
+
+ @XmlElement(name = "GetWeatherByPlaceNameResult", required = true)
+ protected WeatherForecasts getWeatherByPlaceNameResult;
+
+ /**
+ * Gets the value of the getWeatherByPlaceNameResult property.
+ *
+ * @return
+ * possible object is
+ * {@link WeatherForecasts }
+ *
+ */
+ public WeatherForecasts getGetWeatherByPlaceNameResult() {
+ return getWeatherByPlaceNameResult;
+ }
+
+ /**
+ * Sets the value of the getWeatherByPlaceNameResult property.
+ *
+ * @param value
+ * allowed object is
+ * {@link WeatherForecasts }
+ *
+ */
+ public void setGetWeatherByPlaceNameResult(WeatherForecasts value) {
+ this.getWeatherByPlaceNameResult = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java
new file mode 100644
index 0000000000..08d4a70364
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.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.weather;
+
+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 anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="ZipCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "zipCode"
+})
+@XmlRootElement(name = "GetWeatherByZipCode")
+public class GetWeatherByZipCode {
+
+ @XmlElement(name = "ZipCode")
+ protected String zipCode;
+
+ /**
+ * Gets the value of the zipCode property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getZipCode() {
+ return zipCode;
+ }
+
+ /**
+ * Sets the value of the zipCode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setZipCode(String value) {
+ this.zipCode = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java
new file mode 100644
index 0000000000..9288f5332e
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.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.weather;
+
+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 anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="GetWeatherByZipCodeResult" type="{http://www.webservicex.net}WeatherForecasts"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "", propOrder = {
+ "getWeatherByZipCodeResult"
+})
+@XmlRootElement(name = "GetWeatherByZipCodeResponse")
+public class GetWeatherByZipCodeResponse {
+
+ @XmlElement(name = "GetWeatherByZipCodeResult", required = true)
+ protected WeatherForecasts getWeatherByZipCodeResult;
+
+ /**
+ * Gets the value of the getWeatherByZipCodeResult property.
+ *
+ * @return
+ * possible object is
+ * {@link WeatherForecasts }
+ *
+ */
+ public WeatherForecasts getGetWeatherByZipCodeResult() {
+ return getWeatherByZipCodeResult;
+ }
+
+ /**
+ * Sets the value of the getWeatherByZipCodeResult property.
+ *
+ * @param value
+ * allowed object is
+ * {@link WeatherForecasts }
+ *
+ */
+ public void setGetWeatherByZipCodeResult(WeatherForecasts value) {
+ this.getWeatherByZipCodeResult = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java
new file mode 100644
index 0000000000..0c4fdbcde1
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java
@@ -0,0 +1,118 @@
+/*
+ * 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.weather;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the com.example.weather 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 {
+
+ private final static QName _WeatherForecasts_QNAME = new QName("http://www.webservicex.net", "WeatherForecasts");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.example.weather
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link WeatherData }
+ *
+ */
+ public WeatherData createWeatherData() {
+ return new WeatherData();
+ }
+
+ /**
+ * Create an instance of {@link GetWeatherByPlaceName }
+ *
+ */
+ public GetWeatherByPlaceName createGetWeatherByPlaceName() {
+ return new GetWeatherByPlaceName();
+ }
+
+ /**
+ * Create an instance of {@link GetWeatherByPlaceNameResponse }
+ *
+ */
+ public GetWeatherByPlaceNameResponse createGetWeatherByPlaceNameResponse() {
+ return new GetWeatherByPlaceNameResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetWeatherByZipCodeResponse }
+ *
+ */
+ public GetWeatherByZipCodeResponse createGetWeatherByZipCodeResponse() {
+ return new GetWeatherByZipCodeResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetWeatherByZipCode }
+ *
+ */
+ public GetWeatherByZipCode createGetWeatherByZipCode() {
+ return new GetWeatherByZipCode();
+ }
+
+ /**
+ * Create an instance of {@link WeatherForecasts }
+ *
+ */
+ public WeatherForecasts createWeatherForecasts() {
+ return new WeatherForecasts();
+ }
+
+ /**
+ * Create an instance of {@link ArrayOfWeatherData }
+ *
+ */
+ public ArrayOfWeatherData createArrayOfWeatherData() {
+ return new ArrayOfWeatherData();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link WeatherForecasts }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://www.webservicex.net", name = "WeatherForecasts")
+ public JAXBElement<WeatherForecasts> createWeatherForecasts(WeatherForecasts value) {
+ return new JAXBElement<WeatherForecasts>(_WeatherForecasts_QNAME, WeatherForecasts.class, null, value);
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java
new file mode 100644
index 0000000000..a4ca6190b5
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java
@@ -0,0 +1,219 @@
+/*
+ * 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.weather;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for WeatherData complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType name="WeatherData">
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="Day" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="WeatherImage" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="MaxTemperatureF" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="MinTemperatureF" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="MaxTemperatureC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="MinTemperatureC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "WeatherData", propOrder = {
+ "day",
+ "weatherImage",
+ "maxTemperatureF",
+ "minTemperatureF",
+ "maxTemperatureC",
+ "minTemperatureC"
+})
+public class WeatherData {
+
+ @XmlElement(name = "Day")
+ protected String day;
+ @XmlElement(name = "WeatherImage")
+ protected String weatherImage;
+ @XmlElement(name = "MaxTemperatureF")
+ protected String maxTemperatureF;
+ @XmlElement(name = "MinTemperatureF")
+ protected String minTemperatureF;
+ @XmlElement(name = "MaxTemperatureC")
+ protected String maxTemperatureC;
+ @XmlElement(name = "MinTemperatureC")
+ protected String minTemperatureC;
+
+ /**
+ * Gets the value of the day property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDay() {
+ return day;
+ }
+
+ /**
+ * Sets the value of the day property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDay(String value) {
+ this.day = value;
+ }
+
+ /**
+ * Gets the value of the weatherImage property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getWeatherImage() {
+ return weatherImage;
+ }
+
+ /**
+ * Sets the value of the weatherImage property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setWeatherImage(String value) {
+ this.weatherImage = value;
+ }
+
+ /**
+ * Gets the value of the maxTemperatureF property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMaxTemperatureF() {
+ return maxTemperatureF;
+ }
+
+ /**
+ * Sets the value of the maxTemperatureF property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMaxTemperatureF(String value) {
+ this.maxTemperatureF = value;
+ }
+
+ /**
+ * Gets the value of the minTemperatureF property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMinTemperatureF() {
+ return minTemperatureF;
+ }
+
+ /**
+ * Sets the value of the minTemperatureF property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMinTemperatureF(String value) {
+ this.minTemperatureF = value;
+ }
+
+ /**
+ * Gets the value of the maxTemperatureC property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMaxTemperatureC() {
+ return maxTemperatureC;
+ }
+
+ /**
+ * Sets the value of the maxTemperatureC property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMaxTemperatureC(String value) {
+ this.maxTemperatureC = value;
+ }
+
+ /**
+ * Gets the value of the minTemperatureC property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMinTemperatureC() {
+ return minTemperatureC;
+ }
+
+ /**
+ * Sets the value of the minTemperatureC property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMinTemperatureC(String value) {
+ this.minTemperatureC = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java
new file mode 100644
index 0000000000..0902ce67fe
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java
@@ -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.
+ */
+package com.example.weather;
+
+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;
+
+
+/**
+ * Get one week weather forecast for valid zip code or Place name in USA
+ *
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.1.3-b02-
+ * Generated source version: 2.1
+ *
+ */
+@WebServiceClient(name = "WeatherForecast", targetNamespace = "http://www.webservicex.net", wsdlLocation = "file:/C:/Tuscany/java/sca/demos/us-location/src/main/resources/wsdl/WeatherForecast.wsdl")
+public class WeatherForecast
+ extends Service
+{
+
+ private final static URL WEATHERFORECAST_WSDL_LOCATION;
+ private final static Logger logger = Logger.getLogger(com.example.weather.WeatherForecast.class.getName());
+
+ static {
+ URL url = null;
+ try {
+ URL baseUrl;
+ baseUrl = com.example.weather.WeatherForecast.class.getResource(".");
+ url = new URL(baseUrl, "file:/C:/Tuscany/java/sca/demos/us-location/src/main/resources/wsdl/WeatherForecast.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/WeatherForecast.wsdl', retrying as a local file");
+ logger.warning(e.getMessage());
+ }
+ WEATHERFORECAST_WSDL_LOCATION = url;
+ }
+
+ public WeatherForecast(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public WeatherForecast() {
+ super(WEATHERFORECAST_WSDL_LOCATION, new QName("http://www.webservicex.net", "WeatherForecast"));
+ }
+
+ /**
+ *
+ * @return
+ * returns WeatherForecastSoap
+ */
+ @WebEndpoint(name = "WeatherForecastSoap")
+ public WeatherForecastSoap getWeatherForecastSoap() {
+ return super.getPort(new QName("http://www.webservicex.net", "WeatherForecastSoap"), WeatherForecastSoap.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns WeatherForecastSoap
+ */
+ @WebEndpoint(name = "WeatherForecastSoap")
+ public WeatherForecastSoap getWeatherForecastSoap(WebServiceFeature... features) {
+ return super.getPort(new QName("http://www.webservicex.net", "WeatherForecastSoap"), WeatherForecastSoap.class, features);
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java
new file mode 100644
index 0000000000..aa000a44d2
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java
@@ -0,0 +1,73 @@
+/*
+ * 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.weather;
+
+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 = "WeatherForecastSoap", targetNamespace = "http://www.webservicex.net")
+@XmlSeeAlso({
+ ObjectFactory.class
+})
+public interface WeatherForecastSoap {
+
+
+ /**
+ * Get one week weather forecast for a valid Zip Code(USA)
+ *
+ * @param zipCode
+ * @return
+ * returns com.example.weather.WeatherForecasts
+ */
+ @WebMethod(operationName = "GetWeatherByZipCode", action = "http://www.webservicex.net/GetWeatherByZipCode")
+ @WebResult(name = "GetWeatherByZipCodeResult", targetNamespace = "http://www.webservicex.net")
+ @RequestWrapper(localName = "GetWeatherByZipCode", targetNamespace = "http://www.webservicex.net", className = "com.example.weather.GetWeatherByZipCode")
+ @ResponseWrapper(localName = "GetWeatherByZipCodeResponse", targetNamespace = "http://www.webservicex.net", className = "com.example.weather.GetWeatherByZipCodeResponse")
+ public WeatherForecasts getWeatherByZipCode(
+ @WebParam(name = "ZipCode", targetNamespace = "http://www.webservicex.net")
+ String zipCode);
+
+ /**
+ * Get one week weather forecast for a place name(USA)
+ *
+ * @param placeName
+ * @return
+ * returns com.example.weather.WeatherForecasts
+ */
+ @WebMethod(operationName = "GetWeatherByPlaceName", action = "http://www.webservicex.net/GetWeatherByPlaceName")
+ @WebResult(name = "GetWeatherByPlaceNameResult", targetNamespace = "http://www.webservicex.net")
+ @RequestWrapper(localName = "GetWeatherByPlaceName", targetNamespace = "http://www.webservicex.net", className = "com.example.weather.GetWeatherByPlaceName")
+ @ResponseWrapper(localName = "GetWeatherByPlaceNameResponse", targetNamespace = "http://www.webservicex.net", className = "com.example.weather.GetWeatherByPlaceNameResponse")
+ public WeatherForecasts getWeatherByPlaceName(
+ @WebParam(name = "PlaceName", targetNamespace = "http://www.webservicex.net")
+ String placeName);
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java
new file mode 100644
index 0000000000..8ded0946d9
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java
@@ -0,0 +1,251 @@
+/*
+ * 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.weather;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for WeatherForecasts complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType name="WeatherForecasts">
+ * &lt;complexContent>
+ * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * &lt;sequence>
+ * &lt;element name="Latitude" type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * &lt;element name="Longitude" type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * &lt;element name="AllocationFactor" type="{http://www.w3.org/2001/XMLSchema}float"/>
+ * &lt;element name="FipsCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="PlaceName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="StateCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="Status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * &lt;element name="Details" type="{http://www.webservicex.net}ArrayOfWeatherData" minOccurs="0"/>
+ * &lt;/sequence>
+ * &lt;/restriction>
+ * &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "WeatherForecasts", propOrder = {
+ "latitude",
+ "longitude",
+ "allocationFactor",
+ "fipsCode",
+ "placeName",
+ "stateCode",
+ "status",
+ "details"
+})
+public class WeatherForecasts {
+
+ @XmlElement(name = "Latitude")
+ protected float latitude;
+ @XmlElement(name = "Longitude")
+ protected float longitude;
+ @XmlElement(name = "AllocationFactor")
+ protected float allocationFactor;
+ @XmlElement(name = "FipsCode")
+ protected String fipsCode;
+ @XmlElement(name = "PlaceName")
+ protected String placeName;
+ @XmlElement(name = "StateCode")
+ protected String stateCode;
+ @XmlElement(name = "Status")
+ protected String status;
+ @XmlElement(name = "Details")
+ protected ArrayOfWeatherData details;
+
+ /**
+ * Gets the value of the latitude property.
+ *
+ */
+ public float getLatitude() {
+ return latitude;
+ }
+
+ /**
+ * Sets the value of the latitude property.
+ *
+ */
+ public void setLatitude(float value) {
+ this.latitude = value;
+ }
+
+ /**
+ * Gets the value of the longitude property.
+ *
+ */
+ public float getLongitude() {
+ return longitude;
+ }
+
+ /**
+ * Sets the value of the longitude property.
+ *
+ */
+ public void setLongitude(float value) {
+ this.longitude = value;
+ }
+
+ /**
+ * Gets the value of the allocationFactor property.
+ *
+ */
+ public float getAllocationFactor() {
+ return allocationFactor;
+ }
+
+ /**
+ * Sets the value of the allocationFactor property.
+ *
+ */
+ public void setAllocationFactor(float value) {
+ this.allocationFactor = value;
+ }
+
+ /**
+ * Gets the value of the fipsCode property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getFipsCode() {
+ return fipsCode;
+ }
+
+ /**
+ * Sets the value of the fipsCode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setFipsCode(String value) {
+ this.fipsCode = value;
+ }
+
+ /**
+ * Gets the value of the placeName property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPlaceName() {
+ return placeName;
+ }
+
+ /**
+ * Sets the value of the placeName property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPlaceName(String value) {
+ this.placeName = value;
+ }
+
+ /**
+ * Gets the value of the stateCode property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getStateCode() {
+ return stateCode;
+ }
+
+ /**
+ * Sets the value of the stateCode property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setStateCode(String value) {
+ this.stateCode = value;
+ }
+
+ /**
+ * Gets the value of the status property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getStatus() {
+ return status;
+ }
+
+ /**
+ * Sets the value of the status property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setStatus(String value) {
+ this.status = value;
+ }
+
+ /**
+ * Gets the value of the details property.
+ *
+ * @return
+ * possible object is
+ * {@link ArrayOfWeatherData }
+ *
+ */
+ public ArrayOfWeatherData getDetails() {
+ return details;
+ }
+
+ /**
+ * Sets the value of the details property.
+ *
+ * @param value
+ * allowed object is
+ * {@link ArrayOfWeatherData }
+ *
+ */
+ public void setDetails(ArrayOfWeatherData value) {
+ this.details = value;
+ }
+
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java
new file mode 100644
index 0000000000..6543ed7abf
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/com/example/weather/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.weather;
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/LocationClient.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/LocationClient.java
new file mode 100644
index 0000000000..35c114093a
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/LocationClient.java
@@ -0,0 +1,55 @@
+/*
+ * 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 location;
+
+import java.io.StringWriter;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import com.example.uszip.GetInfoByZIPResponse;
+import com.example.uszip.USZipSoap;
+
+/**
+ * This client program to invoke the Mortgage LoanApproval service
+ */
+public class LocationClient {
+
+ public static void main(String[] args) throws Exception {
+
+ SCADomain domain = SCADomain.newInstance("USLocation.composite");
+ USZipSoap zipService = domain.getService(USZipSoap.class, "USLocationService");
+
+ GetInfoByZIPResponse.GetInfoByZIPResult result = zipService.getInfoByZIP("94555");
+
+ GetInfoByZIPResponse response = new GetInfoByZIPResponse();
+ response.setGetInfoByZIPResult(result);
+
+ JAXBContext context = JAXBContext.newInstance(GetInfoByZIPResponse.class);
+ StringWriter writer = new StringWriter();
+ Marshaller marshaller = context.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ marshaller.marshal(response, writer);
+
+ String xml = writer.toString();
+ System.out.println(xml);
+ }
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java
new file mode 100644
index 0000000000..cf27332e60
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java
@@ -0,0 +1,56 @@
+/*
+ * 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 location;
+
+import org.osoa.sca.annotations.AllowsPassByReference;
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import com.example.uszip.USZipSoap;
+import com.example.uszip.GetInfoByAreaCodeResponse.GetInfoByAreaCodeResult;
+import com.example.uszip.GetInfoByCityResponse.GetInfoByCityResult;
+import com.example.uszip.GetInfoByStateResponse.GetInfoByStateResult;
+import com.example.uszip.GetInfoByZIPResponse.GetInfoByZIPResult;
+
+/**
+ * @version $Rev$ $Date$
+ */
+@Service(USZipSoap.class)
+@AllowsPassByReference
+public class USLocationImpl implements USZipSoap {
+ @Reference
+ protected USZipSoap usZipService;
+
+ public GetInfoByAreaCodeResult getInfoByAreaCode(String usAreaCode) {
+ return usZipService.getInfoByAreaCode(usAreaCode);
+ }
+
+ public GetInfoByCityResult getInfoByCity(String usCity) {
+ return usZipService.getInfoByCity(usCity);
+ }
+
+ public GetInfoByStateResult getInfoByState(String usState) {
+ return usZipService.getInfoByState(usState);
+ }
+
+ public GetInfoByZIPResult getInfoByZIP(String usZip) {
+ return usZipService.getInfoByZIP(usZip);
+ }
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java
new file mode 100644
index 0000000000..c03cf2955f
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java
@@ -0,0 +1,60 @@
+/*
+ * 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 weather;
+
+import java.io.StringWriter;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import com.example.weather.GetWeatherByZipCodeResponse;
+import com.example.weather.WeatherForecastSoap;
+import com.example.weather.WeatherForecasts;
+
+/**
+ * This client program to invoke the Mortgage LoanApproval service
+ */
+public class WeatherForecastClient {
+
+ public static void main(String[] args) throws Exception {
+
+ SCADomain domain = SCADomain.newInstance("WeatherForecast.composite");
+ WeatherForecastSoap weatherService = domain.getService(WeatherForecastSoap.class, "WeatherForecastService");
+
+ WeatherForecasts result = weatherService.getWeatherByZipCode("94555");
+
+ // Dump the result as XML
+
+ // Wrap the result so that it can be marshaled
+ GetWeatherByZipCodeResponse response = new GetWeatherByZipCodeResponse();
+ response.setGetWeatherByZipCodeResult(result);
+
+ // Marshal the JAXB object into XML
+ JAXBContext context = JAXBContext.newInstance(GetWeatherByZipCodeResponse.class);
+ StringWriter writer = new StringWriter();
+ Marshaller marshaller = context.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ marshaller.marshal(response, writer);
+
+ String xml = writer.toString();
+ System.out.println(xml);
+ }
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java
new file mode 100644
index 0000000000..cf50a6cd9e
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java
@@ -0,0 +1,43 @@
+/*
+ * 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 weather;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import com.example.weather.WeatherForecastSoap;
+import com.example.weather.WeatherForecasts;
+
+/**
+ * @version $Rev$ $Date$
+ */
+@Service(WeatherForecastSoap.class)
+public class WeatherForecastImpl implements WeatherForecastSoap{
+ @Reference
+ protected WeatherForecastSoap weatherForecast;
+
+ public WeatherForecasts getWeatherByPlaceName(String placeName) {
+ return weatherForecast.getWeatherByPlaceName(placeName);
+ }
+
+ public WeatherForecasts getWeatherByZipCode(String zipCode) {
+ return weatherForecast.getWeatherByZipCode(zipCode);
+ }
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java
new file mode 100644
index 0000000000..f181d9bd0e
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java
@@ -0,0 +1,38 @@
+/*
+ * 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 zipcode;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This client program to invoke the Mortgage LoanApproval service
+ */
+public class ZipCodeClient {
+
+ public static void main(String[] args) throws Exception {
+
+ System.out.println("Please wait...");
+
+ SCADomain domain = SCADomain.newInstance("ZipCode.composite");
+ ZipCodeService zipService = domain.getService(ZipCodeService.class, "ZipCodeService");
+
+ String result = zipService.lookup("94555");
+ System.out.println(result);
+ }
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java
new file mode 100644
index 0000000000..ec0f05dd6c
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java
@@ -0,0 +1,30 @@
+/*
+ * 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 zipcode;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * @version $Rev$ $Date$
+ */
+@Remotable
+public interface ZipCodeService {
+ String lookup(String zipCode);
+}
diff --git a/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java
new file mode 100644
index 0000000000..284e5a3aa3
--- /dev/null
+++ b/sca-java-1.x/branches/sca-java-1.6/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java
@@ -0,0 +1,82 @@
+/*
+ * 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 zipcode;
+
+import java.io.StringWriter;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.Marshaller;
+
+import org.osoa.sca.ServiceRuntimeException;
+import org.osoa.sca.annotations.AllowsPassByReference;
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import com.example.uszip.GetInfoByZIPResponse;
+import com.example.uszip.USZipSoap;
+import com.example.uszip.GetInfoByZIPResponse.GetInfoByZIPResult;
+import com.example.weather.GetWeatherByZipCodeResponse;
+import com.example.weather.WeatherForecastSoap;
+import com.example.weather.WeatherForecasts;
+
+/**
+ * @version $Rev$ $Date$
+ */
+@Service(ZipCodeService.class)
+@AllowsPassByReference
+public class ZipCodeServiceImpl implements ZipCodeService {
+ @Reference
+ protected USZipSoap usZipService;
+
+ @Reference
+ protected WeatherForecastSoap weatherForecast;
+
+ public String lookup(String zipCode) {
+ GetInfoByZIPResult result1 = usZipService.getInfoByZIP(zipCode);
+
+ GetInfoByZIPResponse response1 = new GetInfoByZIPResponse();
+ response1.setGetInfoByZIPResult(result1);
+
+ String xml1 = toXML(response1);
+
+ WeatherForecasts result2 = weatherForecast.getWeatherByZipCode(zipCode);
+ // Wrap the result so that it can be marshaled
+ GetWeatherByZipCodeResponse response2 = new GetWeatherByZipCodeResponse();
+ response2.setGetWeatherByZipCodeResult(result2);
+
+ String xml2 = toXML(response2);
+ // Marshal the JAXB object into XML
+ return xml1 + "\n" + xml2;
+ }
+
+ private String toXML(Object jaxb) {
+ try {
+ JAXBContext context = JAXBContext.newInstance(jaxb.getClass());
+ StringWriter writer = new StringWriter();
+ Marshaller marshaller = context.createMarshaller();
+ marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ marshaller.marshal(jaxb, writer);
+ return writer.toString();
+ } catch (Exception e) {
+ throw new ServiceRuntimeException(e);
+ }
+ }
+
+}