summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.5.1/samples
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml59
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java35
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java37
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java59
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java47
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator18
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java26
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java28
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java35
-rw-r--r--branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite28
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/.classpath7
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/.project33
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml18
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/default.properties22
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java60
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.pngbin3391 -> 0 bytes
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.pngbin3180 -> 0 bytes
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.pngbin3358 -> 0 bytes
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml19
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml69
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/layout/shop_row.xml20
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/res/values/strings.xml28
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/Catalog.java24
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/CatalogProxy.java72
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/Commons.java31
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/Item.java108
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/ShoppingCartProxy.java89
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/AtomXML.java257
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/CartItemHandler.java142
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/services/json/rpc/JSONRpc.java63
-rw-r--r--branches/sca-java-1.5.1/samples/store-android/src/store/android/catalog.java250
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/LICENSE205
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/NOTICE6
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/README77
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/build.xml72
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/pom.xml245
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java158
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java158
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java158
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java158
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java145
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java89
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java103
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java20
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java87
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java81
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java118
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java219
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java91
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java73
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java251
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java20
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/LocationClient.java55
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java56
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java60
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java43
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java38
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java30
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java82
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/USLocation.composite30
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/WeatherForecast.composite30
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/ZipCode.composite33
-rw-r--r--branches/sca-java-1.5.1/samples/zipcode-jaxws/src/test/java/zipcode/ZipCodeClientTestCase.java51
70 files changed, 0 insertions, 5293 deletions
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml
deleted file mode 100644
index 57f0bd40db..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/pom.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-sca</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <artifactId>sample-spi-implementation-java</artifactId>
- <name>Apache Tuscany Java Implementation SPI Sample</name>
-
- <repositories>
- <repository>
- <id>apache.incubator</id>
- <url>http://people.apache.org/repo/m2-incubating-repository</url>
- </repository>
- </repositories>
-
- <dependencies>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-extension-helper</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.2</version>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
- <build>
- <finalName>${artifactId}</finalName>
- </build>
-
-</project>
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java
deleted file mode 100644
index 73104c3166..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementation.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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 sample;
-
-
-public class JavaImplementation {
-
- private String className;
-
- public String getClass_() {
- return className;
- }
-
- public void setClass_(String className) {
- this.className = className;
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java
deleted file mode 100644
index 43efae32ca..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaImplementationActivator.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * 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 sample;
-
-import org.apache.tuscany.sca.assembly.ComponentType;
-import org.apache.tuscany.sca.runtime.RuntimeComponent;
-import org.apache.tuscany.sca.spi.ImplementationActivator;
-import org.apache.tuscany.sca.spi.InvokerFactory;
-
-public class JavaImplementationActivator implements ImplementationActivator<JavaImplementation> {
-
- public Class<JavaImplementation> getImplementationClass() {
- return JavaImplementation.class;
- }
-
- public InvokerFactory createInvokerFactory(RuntimeComponent rc, ComponentType ct, JavaImplementation implementation) {
- return new JavaInvokerFactory(rc, ct, implementation);
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java
deleted file mode 100644
index d65d4c8e4a..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvoker.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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 sample;
-
-import java.lang.reflect.Method;
-
-import org.apache.tuscany.sca.interfacedef.Operation;
-import org.apache.tuscany.sca.invocation.Invoker;
-import org.apache.tuscany.sca.invocation.Message;
-import org.osoa.sca.ServiceRuntimeException;
-
-public class JavaInvoker implements Invoker {
-
- protected Class clazz;
- protected Object instance;
- protected Operation operation;
-
- public JavaInvoker(Class clazz, Object instance, Operation operation) {
- this.clazz = clazz;
- this.instance = instance;
- this.operation = operation;
- }
-
- public Message invoke(Message msg) {
- try {
- msg.setBody(getMethod().invoke(instance, (Object[])msg.getBody()));
- } catch (Exception e) {
- throw new ServiceRuntimeException(e);
- }
- return msg;
- }
-
- protected Method getMethod() {
- for (Method method : clazz.getMethods()) {
- if (method.getName().equals(operation.getName())) {
- return method;
- }
- }
- throw new ServiceRuntimeException("no method found for operation: " + operation.getName());
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java
deleted file mode 100644
index 198befa928..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/java/sample/JavaInvokerFactory.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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 sample;
-
-import org.apache.tuscany.sca.assembly.ComponentType;
-import org.apache.tuscany.sca.interfacedef.Operation;
-import org.apache.tuscany.sca.invocation.Invoker;
-import org.apache.tuscany.sca.runtime.RuntimeComponent;
-import org.apache.tuscany.sca.spi.InvokerFactory;
-import org.osoa.sca.ServiceRuntimeException;
-
-public class JavaInvokerFactory implements InvokerFactory {
-
- protected Object instance;
- protected Class clazz;
-
- public JavaInvokerFactory(RuntimeComponent rc, ComponentType ct, JavaImplementation implementation) {
- try {
- this.clazz = Class.forName(implementation.getClass_());
- this.instance = clazz.newInstance();
- } catch (Exception e) {
- throw new ServiceRuntimeException(e);
- }
- }
-
- public Invoker createInvoker(Operation operation) {
- return new JavaInvoker(clazz, instance, operation);
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator
deleted file mode 100644
index 95ee37c1aa..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.spi.ImplementationActivator
+++ /dev/null
@@ -1,18 +0,0 @@
-# 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.
-# Implementation class for the ExtensionActivator
-sample.JavaImplementationActivator
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java
deleted file mode 100644
index cc32929f09..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorld.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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 helloworld;
-
-public interface HelloWorld {
-
- String sayHello(String name);
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java
deleted file mode 100644
index 02af1ccf22..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldImpl.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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 helloworld;
-
-public class HelloWorldImpl implements HelloWorld {
-
- public String sayHello(String name) {
- return "Hello " + name;
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java
deleted file mode 100644
index 5813fda330..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/java/helloworld/HelloWorldTestCase.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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 helloworld;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.sca.host.embedded.SCADomain;
-
-/**
- */
-public class HelloWorldTestCase extends TestCase {
-
- public void testHello() throws Exception {
- SCADomain scaDomain = SCADomain.newInstance("helloworld/helloworld.composite");
- HelloWorld helloworld = scaDomain.getService(HelloWorld.class, "HelloWorldComponent");
- assertEquals("Hello petra", helloworld.sayHello("petra"));
- scaDomain.close();
- }
-}
diff --git a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite b/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite
deleted file mode 100644
index fa9cecc160..0000000000
--- a/branches/sca-java-1.5.1/samples/spi-implementation-pojo/src/test/resources/helloworld/helloworld.composite
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://test/helloworld"
- name="helloworld">
-
- <component name="HelloWorldComponent">
- <implementation.java class="helloworld.HelloWorldImpl" />
- </component>
-
-</composite>
diff --git a/branches/sca-java-1.5.1/samples/store-android/.classpath b/branches/sca-java-1.5.1/samples/store-android/.classpath
deleted file mode 100644
index 79a84816b6..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/branches/sca-java-1.5.1/samples/store-android/.project b/branches/sca-java-1.5.1/samples/store-android/.project
deleted file mode 100644
index be88b01c5a..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>sample-store-android</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ApkBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml b/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml
deleted file mode 100644
index 4a26dd27c6..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/AndroidManifest.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="store.android"
- android:versionCode="1"
- android:versionName="1.0.0">
- <application android:icon="@drawable/icon" android:label="@string/app_name">
- <activity android:name=".catalog"
- android:label="@string/app_name">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
-<uses-permission android:name="android.permission.INTERNET"></uses-permission>
-
-</manifest> \ No newline at end of file
diff --git a/branches/sca-java-1.5.1/samples/store-android/default.properties b/branches/sca-java-1.5.1/samples/store-android/default.properties
deleted file mode 100644
index 0a007ab5e2..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/default.properties
+++ /dev/null
@@ -1,22 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target.
-target=android-3
-# apk configurations. This property allows creation of APK files with limited
-# resources. For example, if your application contains many locales and
-# you wish to release multiple smaller apks instead of a large one, you can
-# define configuration to create apks with limited language sets.
-# Format is a comma separated list of configuration names. For each
-# configuration, a property will declare the resource configurations to
-# include. Example:
-# apk-configurations=european,northamerica
-# apk-config-european=en,fr,it,de,es
-# apk-config-northamerica=en,es
-apk-configurations=
diff --git a/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java b/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java
deleted file mode 100644
index 2484da82dc..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/gen/store/android/R.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package store.android;
-
-public final class R {
- public static final class attr {
- }
- public static final class drawable {
- public static final int addc=0x7f020000;
- public static final int icon=0x7f020001;
- public static final int rems=0x7f020002;
- }
- public static final class id {
- public static final int ListView01=0x7f050001;
- public static final int ListView02=0x7f050007;
- public static final int btnClean=0x7f050006;
- public static final int tab02=0x7f050002;
- public static final int txtEmpty=0x7f050004;
- public static final int txtItemC=0x7f050000;
- public static final int txtItemS=0x7f050008;
- public static final int txtThx=0x7f050003;
- public static final int txtTotal=0x7f050005;
- }
- public static final class layout {
- public static final int cat_row=0x7f030000;
- public static final int main=0x7f030001;
- public static final int shop_row=0x7f030002;
- }
- public static final class string {
- public static final int add_entry_ko=0x7f04000f;
- public static final int add_entry_ok=0x7f04000e;
- public static final int alert_cancel=0x7f040013;
- public static final int alert_yes=0x7f040012;
- public static final int app_name=0x7f040001;
- public static final int app_tag=0x7f040002;
- public static final int btn_add_del1=0x7f040004;
- public static final int btn_add_del2=0x7f040005;
- public static final int btn_clean=0x7f040003;
- public static final int del_all_ok=0x7f040014;
- public static final int del_entry_ko=0x7f040011;
- public static final int del_entry_ok=0x7f040010;
- public static final int get_tag=0x7f04000b;
- public static final int hello=0x7f040000;
- public static final int howto_del=0x7f040017;
- public static final int start_tag=0x7f04000c;
- public static final int tab_catalog=0x7f040007;
- public static final int tab_shop=0x7f040008;
- public static final int title_catalog=0x7f040009;
- public static final int title_order=0x7f040016;
- public static final int title_shop=0x7f04000a;
- public static final int title_thx=0x7f040015;
- public static final int txt_empty=0x7f040006;
- public static final int txt_total=0x7f04000d;
- }
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png
deleted file mode 100644
index 17259450d8..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/drawable/addc.png
+++ /dev/null
Binary files differ
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png
deleted file mode 100644
index 75024841d3..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/drawable/icon.png
+++ /dev/null
Binary files differ
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png b/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png
deleted file mode 100644
index 378690fad4..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/drawable/rems.png
+++ /dev/null
Binary files differ
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml b/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml
deleted file mode 100644
index e7f71cb0b6..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/layout/cat_row.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:padding="10px"
- android:layout_height="50px">
- <TextView
- android:id="@+id/txtItemC"
- android:layout_width="250px"
- android:layout_height="30px"
- android:textSize="20px"
-
- />
-
- <ImageView android:src="@drawable/addc"
- android:layout_width="30px"
- android:layout_height="30px"
- />
-</LinearLayout> \ No newline at end of file
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml b/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml
deleted file mode 100644
index 7f296e9ac0..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/layout/main.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@android:id/tabhost"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <TabWidget
- android:id="@android:id/tabs"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" />
- <FrameLayout
- android:id="@android:id/tabcontent"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
-
-
- <ListView android:id="@+id/ListView01"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" />
-
- <LinearLayout
- android:id="@+id/tab02"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
-
- <TextView
- android:id="@+id/txtThx"
- android:layout_width="fill_parent"
- android:layout_height="30px"
- android:text="@string/title_thx"
- />
- <TextView
- android:id="@+id/txtEmpty"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- />
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="41px">
-
- <TextView
- android:id="@+id/txtTotal"
- android:layout_width="200px"
- android:layout_height="30px"
- android:text="@string/title_order"
- />
-
- <Button android:id="@+id/btnClean"
- android:layout_width="100px"
- android:layout_height="40px"
- />
- </LinearLayout>
-
- <ListView android:id="@+id/ListView02"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- />
-
- </LinearLayout>
- </FrameLayout>
- </LinearLayout>
-
-</TabHost>
-
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/layout/shop_row.xml b/branches/sca-java-1.5.1/samples/store-android/res/layout/shop_row.xml
deleted file mode 100644
index a2ffeea56f..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/layout/shop_row.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="horizontal"
- android:layout_width="fill_parent"
- android:layout_height="50px"
- android:padding="10px">
- <TextView
- android:id="@+id/txtItemS"
- android:layout_width="250px"
- android:layout_height="30px"
- android:textSize="20px"
-
- />
-
- <ImageView android:src="@drawable/rems"
- android:layout_width="30px"
- android:layout_height="30px"
-
- />
-</LinearLayout> \ No newline at end of file
diff --git a/branches/sca-java-1.5.1/samples/store-android/res/values/strings.xml b/branches/sca-java-1.5.1/samples/store-android/res/values/strings.xml
deleted file mode 100644
index 33f936b510..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/res/values/strings.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="hello">Hello World, catalog</string>
- <string name="app_name">store</string>
- <string name="app_tag">Tuscany</string>
- <string name="btn_clean">Erase cart</string>
- <string name="btn_add_del1">Delete</string>
- <string name="btn_add_del2">Add</string>
- <string name="txt_empty">Nothing to display. The cart is currently empty</string>
- <string name="tab_catalog">catalog_tab</string>
- <string name="tab_shop">shopping_cart_tab</string>
- <string name="title_catalog">Catalog Items</string>
- <string name="title_shop">Shopping Cart</string>
- <string name="get_tag">Catalog GET!!</string>
- <string name="start_tag">Activity started</string>
- <string name="txt_total">Total: </string>
- <string name="add_entry_ok">Entry added: </string>
- <string name="add_entry_ko">Unable to add entry: </string>
- <string name="del_entry_ok">Entry removed: </string>
- <string name="del_entry_ko">Unable to delete item: </string>
- <string name="alert_yes">Yes</string>
- <string name="alert_cancel">Cancel</string>
- <string name="del_all_ok">All entries have been removed</string>
- <string name="title_thx">Thanks for Shopping With Us!</string>
- <string name="title_order">Your order</string>
- <string name="howto_del">Click on an item below to remove it</string>
-
-</resources>
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/Catalog.java b/branches/sca-java-1.5.1/samples/store-android/src/services/Catalog.java
deleted file mode 100644
index 9105f1047c..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/Catalog.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * 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 services;
-
-public interface Catalog {
- Item[] get();
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/CatalogProxy.java b/branches/sca-java-1.5.1/samples/store-android/src/services/CatalogProxy.java
deleted file mode 100644
index 7851ac6713..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/CatalogProxy.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * 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 services;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.json.JSONArray;
-import org.json.JSONException;
-import org.json.JSONObject;
-
-import services.json.rpc.JSONRpc;
-
-public class CatalogProxy implements Catalog {
- // see http://developer.android.com/guide/developing/tools/emulator.html
- private static final String jsonRPCServiceURI = "http://10.0.2.2:8080/Catalog";
- private static final String jsonRPCRequest = "{\"id\": 3, \"method\": \"Service.get\", \"params\": []}";
-
- private List<Item> catalog = new ArrayList<Item>();
-
- public CatalogProxy() {
- initialize();
- }
-
- public void initialize() {
- JSONObject json = null;
-
- try {
- json = JSONRpc.invoke(jsonRPCServiceURI, jsonRPCRequest);
-
- if(json == null) {
- return;
- }
-
- JSONArray result = json.getJSONArray("result");
- for(int i = 0; i < result.length(); i++) {
- Item item = new Item();
- item.setName(result.getJSONObject(i).getString("name"));
- item.setPrice(result.getJSONObject(i).getString("price"));
-
- catalog.add(item);
- }
-
- } catch (JSONException e) {
- e.printStackTrace();
- }
- }
-
- public Item[] get() {
- Item[] catalogArray = new Item[catalog.size()];
- catalog.toArray(catalogArray);
- return catalogArray;
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/Commons.java b/branches/sca-java-1.5.1/samples/store-android/src/services/Commons.java
deleted file mode 100644
index 9da89c8fec..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/Commons.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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 services;
-
-/**
- *
- */
-public class Commons {
-
- public static final String TAG="Tuscany";
- public static final String DEL="HTTP DELETE ";
- public static final String PST="HTTP POST ";
-
-
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/Item.java b/branches/sca-java-1.5.1/samples/store-android/src/services/Item.java
deleted file mode 100644
index 1881dd4d11..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/Item.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * 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 services;
-
-
-public class Item {
- private String name;
- private String price;
- private String key;
-
- /**
- * @return the key
- */
- public String getKey() {
- return key;
- }
-
- /**
- * @param key the key to set
- */
- public void setKey(String key) {
- this.key = key;
- }
-
-
-
-
-
-
-
-
-
- public Item() {
- }
-
-
-
-
-
-
-
-
-
- /**
- * Parses a string entry to an Item object
- * @param s
- * @return Item
- */
- public static Item parseItem(String s)
- {
- Item i=new Item();
- i.setName(s.split("-")[0].trim());
- i.setPrice(s.split("-")[1].trim());
- return i;
-
- }
-
- public Item(String name, String price) {
- this.name = name;
- this.price = price;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public Item(String name, String price, String key) {
- super();
- this.name = name;
- this.price = price;
- this.key = key;
- }
-
- public String getPrice() {
- return price;
- }
-
- public void setPrice(String price) {
- this.price = price;
- }
-
- public String toString()
- {
- return name + " - " + price;
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/ShoppingCartProxy.java b/branches/sca-java-1.5.1/samples/store-android/src/services/ShoppingCartProxy.java
deleted file mode 100644
index c01edfbe2f..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/ShoppingCartProxy.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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 services;
-
-import org.json.JSONException;
-import org.json.JSONObject;
-
-import services.atom.xml.AtomXML;
-import services.json.rpc.JSONRpc;
-import android.util.Log;
-
-public class ShoppingCartProxy {
- private static final String jsonRPCTotalServiceURI = "http://10.0.2.2:8080/ShoppingCart/Total";
- private static final String jsonRPCTotalRequest = "{\"id\": 4, \"method\": \"Service.getTotal\", \"params\": []}";
- private static final String atomXMLCartServiceURI="http://10.0.2.2:8080/ShoppingCart/Cart";
-
-
- public Item[] getItems() {
- return AtomXML.getItems(atomXMLCartServiceURI);
- }
-
- public boolean addItem(Item item) {
- String content="<entry xmlns=\"http://www.w3.org/2005/Atom\">" +
- "<title>item</title>" +
- "<content type=\"text/xml\">" +
- "<Item xmlns=\"http://services/\">" +
- "<name xmlns=\"\">" + item.getName()+ "</name>" +
- "<price xmlns=\"\">" +item.getPrice()+"</price>" +
- "</Item></content></entry>";
-
- String key =AtomXML.postItem(atomXMLCartServiceURI, content);
- if(key==null) {
- return false;
- }
- item.setKey(key);
- Log.i("TUSCANY shopping cart proxy", key);
- return true;
- }
-
- public boolean removeItem(Item item) {
- Log.e("Sent key",item.getKey());
- String uri=atomXMLCartServiceURI+"/"+item.getKey();
- return AtomXML.performdelete(uri);
- }
-
- public boolean clearCartContent() {
- return AtomXML.performdelete(atomXMLCartServiceURI);
- }
-
- public void checkOut() {
-
- }
-
- public String getTotal() {
- String total = "";
- JSONObject json = null;
- Log.e("TUSC", "getting total");
-
- try {
- json = JSONRpc.invoke(jsonRPCTotalServiceURI, jsonRPCTotalRequest);
- Log.e("TUSC", "Request OK");
-
- if (json != null) {
- total = json.getString("result");
- Log.e("TUSC", "Total: " + total);
- }
- } catch (JSONException e) {
- Log.e("TUSC", e.getMessage());
- }
- return total;
- }
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/AtomXML.java b/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/AtomXML.java
deleted file mode 100644
index 69f4409ed9..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/AtomXML.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * 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 services.atom.xml;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.xml.parsers.ParserConfigurationException;
-import javax.xml.parsers.SAXParser;
-import javax.xml.parsers.SAXParserFactory;
-
-import org.apache.http.Header;
-import org.apache.http.HeaderElement;
-import org.apache.http.HttpEntity;
-import org.apache.http.HttpResponse;
-import org.apache.http.ParseException;
-import org.apache.http.client.ClientProtocolException;
-import org.apache.http.client.methods.HttpDelete;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.client.methods.HttpPost;
-import org.apache.http.impl.client.DefaultHttpClient;
-import org.xml.sax.InputSource;
-import org.xml.sax.SAXException;
-import org.xml.sax.XMLReader;
-
-import services.Commons;
-import services.Item;
-import android.util.Log;
-
-/**
- *
- */
-public class AtomXML {
-
- public static String postItem(String ServiceURI, final String content)
- {
- DefaultHttpClient client=new DefaultHttpClient();
- HttpPost httpost = new HttpPost(ServiceURI);
-
- httpost.setEntity(new HttpEntity(){
-
- String entry=content;
-
- class mHeader implements Header
- {
- public HeaderElement[] getElements() throws ParseException {
- // TODO Auto-generated method stub
- return null;
- }
-
- public String getName() {
- // TODO Auto-generated method stub
- return "Content-type";
- }
-
- public String getValue() {
- // TODO Auto-generated method stub
- return "application/atom+xml;type=entry";
- }
- }
-
- public void consumeContent() throws IOException {
- // TODO Auto-generated method stub
-
- }
-
- public InputStream getContent() throws IOException,
- IllegalStateException {
- // TODO Auto-generated method stub
- return new InputStream(){
-
- public int read() throws IOException {
- // TODO Auto-generated method stub
- return this.available();
- }
-
- };
- }
-
- public Header getContentEncoding() {
- // TODO Auto-generated method stub
- return new mHeader();
- }
-
- public long getContentLength() {
- // TODO Auto-generated method stub
- return entry.length();
- }
-
- public Header getContentType() {
- // TODO Auto-generated method stub
- return new mHeader();
- }
-
- public boolean isChunked() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public boolean isRepeatable() {
- // TODO Auto-generated method stub
- return true;
- }
-
- public boolean isStreaming() {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void writeTo(OutputStream arg0) throws IOException {
- // TODO Auto-generated method stub
-
- arg0.write(entry.getBytes());
- arg0.flush();
- //Log.i("Tuscany", "Entry posted via atom/xml");
- }
-
- });
-
- try {
- HttpResponse response = client.execute(httpost);
- InputStream is =response.getEntity().getContent();
-
- //Human readable atom response from servlet
- int read;
- StringBuffer sb=new StringBuffer();
- while((read=is.read())>0)
- {
- sb.append((char)read);
- }
- Log.i("Tuscany", "Atom entry post status: "+response.getStatusLine().toString());
- //Log.i("Tuscany", "Response: "+sb.toString());
- //Try now to parse the consumed data
- try {
- SAXParserFactory spf = SAXParserFactory.newInstance();
- SAXParser sp;
- sp = spf.newSAXParser();
- XMLReader xr = sp.getXMLReader();
- CartItemHandler cih=new CartItemHandler();
- xr.setContentHandler(cih);
-
- xr.parse(new InputSource(new ByteArrayInputStream(sb.toString().getBytes())));
- is.close();
-
- return cih.getCurrentKey();
-
- } catch (ParserConfigurationException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (SAXException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getLocalizedMessage());
- }
-
- } catch (ClientProtocolException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (IOException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- }
-
- return null;
- }
-
- public static boolean performdelete(String uri)
- {
- DefaultHttpClient client=new DefaultHttpClient();
- Log.i(Commons.TAG,Commons.DEL+uri);
- HttpDelete del=new HttpDelete(uri);
-
- try {
- client.execute(del);
- return true;
- } catch (ClientProtocolException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (IOException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- }
-
- return false;
-
-
- }
-
- public static Item[] getItems(String uri)
- {
- DefaultHttpClient client=new DefaultHttpClient();
- HttpGet hg=new HttpGet(uri);
- HttpResponse hr;
- HttpEntity he;
- try {
- hr=client.execute(hg);
- InputStream is =hr.getEntity().getContent();
-
- //Human readable atom response from servlet
- int read;
- StringBuffer sb=new StringBuffer();
- while((read=is.read())>0)
- {
- sb.append((char)read);
- }
- Log.i("Tuscany", "Atom get content: "+sb.toString());
-
- SAXParserFactory spf = SAXParserFactory.newInstance();
- SAXParser sp;
- sp = spf.newSAXParser();
- XMLReader xr = sp.getXMLReader();
- CartItemHandler cih=new CartItemHandler();
- xr.setContentHandler(cih);
-
- xr.parse(new InputSource(new ByteArrayInputStream(sb.toString().getBytes())));
- is.close();
- Log.e(Commons.TAG,String.valueOf(cih.getItemsCollection().length));
- return cih.getItemsCollection();
-
-
- } catch (ClientProtocolException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (IOException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (ParserConfigurationException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- } catch (SAXException e) {
- // TODO Auto-generated catch block
- Log.e(Commons.TAG,e.getMessage());
- }
- return null;
- }
-
-
-
-
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/CartItemHandler.java b/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/CartItemHandler.java
deleted file mode 100644
index ed29839795..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/atom/xml/CartItemHandler.java
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * 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 services.atom.xml;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.xml.sax.Attributes;
-import org.xml.sax.SAXException;
-import org.xml.sax.helpers.DefaultHandler;
-
-import android.util.Log;
-
-import services.Item;
-
-
-/**
- * @author Lookouster
- *
- */
-public class CartItemHandler extends DefaultHandler {
-
- private boolean in_entry = false;
- private boolean in_id = false;
- private boolean in_title = false;
- private boolean in_content=false;
- private boolean in_item=false;
- private boolean in_link=false;
- private boolean in_name=false;
- private boolean in_price=false;
- private String currentKey,currentName,currentPrice;
- private List<Item> items=new ArrayList<Item>();
-
- /**
- * @return the currentName
- */
- public String getCurrentName() {
- return currentName;
- }
-
-
- /**
- * @return the currentPrice
- */
- public String getCurrentPrice() {
- return currentPrice;
- }
-
-
- public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
- if (localName.equalsIgnoreCase("entry")) {
- this.in_entry = true;
- } else if (localName.equalsIgnoreCase("id")) {
- this.in_id = true;
- } else if (localName.equalsIgnoreCase("title")) {
- this.in_title = true;
- } else if (localName.equalsIgnoreCase("content")) {
- this.in_content = true;
- } else if (localName.equalsIgnoreCase("item")) {
- this.in_item = true;
- } else if (localName.equals("link")) {
- this.in_link = true;
- } else if (localName.equalsIgnoreCase("name")) {
- this.in_name = true;
- } else if (localName.equalsIgnoreCase("price")) {
- this.in_price = true;
- }
- }
-
-
- public void endElement(String namespaceURI, String localName, String qName) throws SAXException {
- if (localName.equalsIgnoreCase("id"))
- this.in_id = false;
- if (localName.equalsIgnoreCase("entry")) {
- this.in_entry = false;
- } else if (localName.equalsIgnoreCase("id")) {
- this.in_id = false;
- } else if (localName.equalsIgnoreCase("title")) {
- this.in_title = false;
- } else if (localName.equalsIgnoreCase("content")) {
- this.in_content = false;
- } else if (localName.equalsIgnoreCase("item")) {
- this.in_item = false;
- items.add(new Item(currentName, currentPrice, currentKey));
- } else if (localName.equalsIgnoreCase("link")) {
- this.in_link = false;
- } else if (localName.equalsIgnoreCase("name")) {
- this.in_name = false;
- } else if (localName.equalsIgnoreCase("price")) {
- this.in_price = false;
- }
- }
-
-
- public void characters(char ch[], int start, int length) {
- if (this.in_id) {
- if (this.in_entry) {
- currentKey = new String(ch, start, length);
- Log.e("kjhkh", currentKey);
- }
-
- }
- if (this.in_name) {
- currentName = new String(ch, start, length);
- }
- if (this.in_price) {
- currentPrice = new String(ch, start, length);
- }
-
- }
-
- /**
- * @return the key
- */
- public String getCurrentKey() {
- return currentKey;
- }
-
- public Item[] getItemsCollection()
- {
- return items.toArray(new Item[items.size()]);
- }
-
-
-
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/services/json/rpc/JSONRpc.java b/branches/sca-java-1.5.1/samples/store-android/src/services/json/rpc/JSONRpc.java
deleted file mode 100644
index b803ac6470..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/services/json/rpc/JSONRpc.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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 services.json.rpc;
-
-import java.io.IOException;
-
-import org.apache.http.HttpResponse;
-import org.apache.http.client.HttpClient;
-import org.apache.http.client.methods.HttpPost;
-import org.apache.http.entity.StringEntity;
-import org.apache.http.impl.client.DefaultHttpClient;
-import org.apache.http.util.EntityUtils;
-import org.json.JSONException;
-import org.json.JSONObject;
-
-public class JSONRpc {
-
- protected JSONRpc() {
-
- }
-
- public static JSONObject invoke(String serviceURI, String rpcRequest) throws JSONException{
- HttpClient httpClient = new DefaultHttpClient();
- HttpPost httpPost = new HttpPost(serviceURI);
-
- JSONObject result = null;
- try {
- httpPost.setHeader("Content-Type", "text/xml");
- httpPost.setEntity(new StringEntity(rpcRequest));
-
- HttpResponse httpResponse = httpClient.execute(httpPost);
- if (httpResponse.getStatusLine().getStatusCode() == 200) {
- String jsonResult = EntityUtils.toString(httpResponse.getEntity());
- result = new JSONObject(jsonResult);
- } else {
- String errorMessage = httpResponse.getStatusLine()
- .getReasonPhrase();
- System.out.println(errorMessage);
- }
- } catch (IOException e) {
- e.printStackTrace();
- }
-
- return result;
- }
-}
diff --git a/branches/sca-java-1.5.1/samples/store-android/src/store/android/catalog.java b/branches/sca-java-1.5.1/samples/store-android/src/store/android/catalog.java
deleted file mode 100644
index 834362352a..0000000000
--- a/branches/sca-java-1.5.1/samples/store-android/src/store/android/catalog.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/*
- * 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 store.android;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import services.Catalog;
-import services.CatalogProxy;
-import services.Item;
-import services.ShoppingCartProxy;
-import android.app.AlertDialog;
-import android.app.TabActivity;
-import android.content.DialogInterface;
-import android.graphics.Typeface;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.widget.AdapterView;
-import android.widget.ArrayAdapter;
-import android.widget.Button;
-import android.widget.ListView;
-import android.widget.TabHost;
-import android.widget.TextView;
-import android.widget.AdapterView.OnItemClickListener;
-import android.widget.TabHost.OnTabChangeListener;
-import android.widget.TabHost.TabSpec;
-
-
-
-public class catalog extends TabActivity {
- private Catalog catalogProxy = new CatalogProxy();
- private ShoppingCartProxy shoppingCartProxy = new ShoppingCartProxy();
-
- private TabHost mTabHost;
- private ListView itemsList, cartList;
- private TextView txtTotal,txtEmpty;
- private TabSpec catalogTab, cartTab;
- private Button btnClean;
- private Item[] items;
- private List<Item> cartItems=new ArrayList<Item>();
-
-
- private void getCatalogItems() {
- items=catalogProxy.get();
- }
-
- private void getCartItems() {
- Item[] i = shoppingCartProxy.getItems();
- if (i != null) {
- for (Item item : i) {
- cartItems.add(item);
- }
- }
- Log.e(getString(R.string.app_tag), String.valueOf(cartItems.size()) + " cart items retrieved");
- }
-
- /** Called when the activity is first created. */
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
-
- Log.e(getString(R.string.app_tag), getString(R.string.start_tag));
- // Load UI from layout file
- setContentView(R.layout.main);
-
- findViews();
-
- // Get data to be loaded to UI
- getCatalogItems();
- getCartItems();
-
- // Load UI with data
- itemsList.setAdapter(new ArrayAdapter<Item>(this, R.layout.cat_row, R.id.txtItemC, items));
- itemsList.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
- itemsList.setClickable(true);
- reloadShoppingCart();
-
- // Set Listeners
- listen();
- }
-
-
-
- /**
- * Retrieve UI Content
- */
- public void findViews()
- {
- mTabHost = getTabHost();
- mTabHost.addTab(mTabHost.newTabSpec(getString(R.string.tab_catalog)).setIndicator(getString(R.string.title_catalog)).setContent(R.id.ListView01));
- mTabHost.addTab(mTabHost.newTabSpec(getString(R.string.tab_shop)).setIndicator(getString(R.string.title_shop)).setContent(R.id.tab02));
- mTabHost.setCurrentTab(0);
- itemsList=(ListView)findViewById(R.id.ListView01);
- cartList=(ListView)findViewById(R.id.ListView02);
- btnClean=(Button)findViewById(R.id.btnClean);
- btnClean.setText(R.string.btn_clean);
- txtTotal=(TextView)findViewById(R.id.txtTotal);
- txtTotal.setTextSize((float) 15.0);
- txtTotal.setTypeface(Typeface.DEFAULT_BOLD);
- txtEmpty=(TextView)findViewById(R.id.txtEmpty);
- txtEmpty.setTypeface(null, Typeface.ITALIC);
-
- }
-
- /**
- * Implements all needed listeners for the UI
- */
- public void listen() {
- // Handles total display between tab switching
- mTabHost.setOnTabChangedListener(new OnTabChangeListener() {
-
- public void onTabChanged(String tabId) {
- // TODO Auto-generated method stub
- if (tabId.compareTo("shopping_cart_tab") == 0) {
- reloadShoppingCart();
- }
- }
- });
-
- btnClean.setOnClickListener(new OnClickListener(){
- public void onClick(View arg0) {
- // TODO Auto-generated method stub
- new AlertDialog.Builder(catalog.this)
- .setTitle("Tuscany Android Store")
- .setMessage("You're about to erase all items. Proceed ?")
- .setIcon(R.drawable.icon)
- .setPositiveButton(R.string.alert_yes,
- new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int whichButton) {
- if(shoppingCartProxy.clearCartContent())
- {
- cartItems.clear();
- Log.i(getString(R.string.app_tag), getString(R.string.del_all_ok));
- reloadShoppingCart();
- }
- }})
- .setNegativeButton(R.string.alert_cancel, new DialogInterface.OnClickListener(){
-
- public void onClick(DialogInterface dialog, int which) {
- // TODO Auto-generated method stub
- }
- })
- .show();
-
-
-
- }
-
- });
-
- itemsList.setOnItemClickListener(new OnItemClickListener(){
-
- public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
- long arg3) {
- // TODO Auto-generated method stub
- addItemAction(items[(int)arg3]);
-
- }
-
- });
-
- cartList.setOnItemClickListener(new OnItemClickListener(){
-
-
- public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
- long arg3) {
- // TODO Auto-generated method stub
- removeItemAction(cartItems.get((int)arg3));
- }
-
- });
-
- }
-
- public void addItemAction(Item item)
- {
- //add item to shopping cart.
- Item tmp=new Item(item.getName(), item.getPrice());
- if(shoppingCartProxy.addItem(tmp))
- {
- cartItems.add(tmp);
- Log.i(getString(R.string.app_tag), getString(R.string.add_entry_ok)+item);
- }
-
- else
- Log.e(getString(R.string.app_tag), getString(R.string.add_entry_ko)+item);
-
- }
-
- public void removeItemAction(Item item)
- {
- if(shoppingCartProxy.removeItem(item) && cartItems.remove(item))
- {
- Log.i(getString(R.string.app_tag), getString(R.string.del_entry_ok)+item);
- }
- else
- Log.i(getString(R.string.app_tag), getString(R.string.del_entry_ko)+item);
- reloadShoppingCart();
-
- }
-
- /**
- * Refreshes the Shopping cart list when the adapter behind is updated
- */
- public void reloadShoppingCart()
- {
- Item[] cartArray=new Item[cartItems.size()];
- cartList.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
- cartList.setClickable(true);
- cartList.setAdapter(new ArrayAdapter<Item>(this,
- R.layout.shop_row, R.id.txtItemS, cartItems.toArray(cartArray)));
- if(!cartList.getAdapter().isEmpty())
- {
- txtTotal.setVisibility(TextView.VISIBLE);
- txtEmpty.setText("Click on an item below to remove it");
- btnClean.setVisibility(Button.VISIBLE);
- }
- else
- {
- txtTotal.setVisibility(TextView.INVISIBLE);
- txtEmpty.setVisibility(TextView.VISIBLE);
- txtEmpty.setText(R.string.txt_empty);
- btnClean.setVisibility(Button.INVISIBLE);
- }
- String tt=shoppingCartProxy.getTotal();
- txtTotal.setText(getString(R.string.title_order)+": "+(tt.length()>5?tt.substring(0,5):tt));
-
- }
-
-
-
-} \ No newline at end of file
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/LICENSE b/branches/sca-java-1.5.1/samples/zipcode-jaxws/LICENSE
deleted file mode 100644
index 6e529a25c4..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/LICENSE
+++ /dev/null
@@ -1,205 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
-
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/NOTICE b/branches/sca-java-1.5.1/samples/zipcode-jaxws/NOTICE
deleted file mode 100644
index 1325efd8bf..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/NOTICE
+++ /dev/null
@@ -1,6 +0,0 @@
-${pom.name}
-Copyright (c) 2005 - 2008 The Apache Software Foundation
-
-This product includes software developed by
-The Apache Software Foundation (http://www.apache.org/).
-
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/README b/branches/sca-java-1.5.1/samples/zipcode-jaxws/README
deleted file mode 100644
index 03f97f0ceb..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/README
+++ /dev/null
@@ -1,77 +0,0 @@
-ZipCode JAX-WS Sample
-======================================
-This sample demonstrates how to access an existing web service using JAX-WS/JAXB generated java interfaces/classes.
-
-The README in the samples directory (the directory above this) provides
-general instructions about building and running samples. Take a look there
-first.
-
-If you just want to run it to see what happens open a command prompt, navigate
-to this sample directory and do:
-
-ant run
-
-OR if you don't have ant, on Windows do
-
-java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-zipcode-jaxws.jar zipcode.ZipCodeClient
-
-and on *nix do
-
-java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-zipcode-jaxws.jar zipcode.ZipCodeClient
-
-
-Sample Overview
----------------
-The sample provides a single component exposing a Web resource.
-
-zipcode-jaxws/
- src/
- main/
- java/
-
- resources/
- ZipCode.composite - the SCA assembly for this sample
- zipcode-jaxws.png - a pictorial representation of the
- sample .composite file
- build.xml - the Ant build file
- pom.xml - the Maven build file
-
-
-Building And Running The Sample Using Ant
------------------------------------------
-With the binary distribution the sample can be built and run using Ant using the
-following commands
-
-cd zipcode-jaxws
-ant compile
-ant run
-
-You should see the following output from the run target.
-
-run:
- [java] 14-Jan-2008 14:28:07 org.apache.tuscany.sca.http.jetty.JettyServer a
-ddServletMapping
- [java] INFO: Added Servlet mapping: http://L3AW203:8080/myWeb/*
- [java] Sample server started (press enter to shutdown)
- [java]
- [java] To get the Web resource, point your Web browser to the following add
-ress:
- [java] http://localhost:8080/myWeb/index.html
- [java]
-
-As this point the Web resource is exposed by a web server started automatically
-by the SCA runtime. To stop the server just press enter.
-
-*** Note: This sample uses external services hosted at www.webservicex.net, these
- services are occasionally not available which causes this sample to hang.
- If that happens please try again later.
-
-
-Building The Sample Using Maven
--------------------------------------------
-With either the binary or source distributions the sample can be built using
-Maven as follows.
-
-cd zipcode-jaxws
-mvn
-
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/build.xml b/branches/sca-java-1.5.1/samples/zipcode-jaxws/build.xml
deleted file mode 100644
index 20f2cd8f67..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/build.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-<!--
- * 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.
--->
-<!DOCTYPE project [
-<!ENTITY buildDependency SYSTEM "build-dependency.xml">
-]>
-
-<project name="zipcode-jaxws" default="compile">
- &buildDependency;
-
- <property name="test.class" value="zipcode.ZipCodeClient" />
- <property name="test.jar" value="sample-zipcode-jaxws.jar" />
-
- <target name="compile" depends="download-wsdl">
- <mkdir dir="target/classes"/>
- <javac destdir="target/classes" debug="on" source="1.5" target="1.5">
- <src path="src/main/java"/>
- <classpath>
- <fileset refid="tuscany.jars"/>
- <fileset refid="3rdparty.jars"/>
- </classpath>
- </javac>
- <copy todir="target/classes">
- <fileset dir="src/main/resources"/>
- </copy>
- <jar destfile="target/${test.jar}" basedir="target/classes">
- <manifest>
- <attribute name="Main-Class" value="${test.class}"/>
- </manifest>
- </jar>
- </target>
-
- <target name="download-wsdl">
- <mkdir dir="target/classes/wsdl/" />
- <get src="http://www.webservicex.net/uszip.asmx?wsdl" dest="target/classes/wsdl//uszip.wsdl" verbose="true" usetimestamp="true" />
- <get src="http://www.webservicex.net/WeatherForecast.asmx?wsdl" dest="target/classes/wsdl/WeatherForecast.wsdl" verbose="true" usetimestamp="true" />
- </target>
-
- <target name="package" depends="compile" />
-
- <target name="run">
- <java classname="${test.class}" fork="true">
- <classpath>
- <pathelement location="target/${test.jar}"/>
- <fileset refid="tuscany.jars"/>
- <fileset refid="3rdparty.jars"/>
- </classpath>
- </java>
- </target>
-
- <target name="clean">
- <delete includeemptydirs="true">
- <fileset dir="target"/>
- </delete>
- </target>
-
-</project>
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/pom.xml b/branches/sca-java-1.5.1/samples/zipcode-jaxws/pom.xml
deleted file mode 100644
index 53d78dc7a5..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/pom.xml
+++ /dev/null
@@ -1,245 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-sca</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <relativePath>../../pom.xml</relativePath>
- </parent>
- <artifactId>sample-zipcode-jaxws</artifactId>
- <packaging>jar</packaging>
- <name>Apache Tuscany SCA Sample US Zip Code JAX-WS</name>
- <description>Apache Tuscany SCA Sample US Zip Code JAX-WS</description>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-embedded</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-implementation-java-runtime</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-binding-ws-axis2</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-host-jetty</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.5</version>
- <scope>test</scope>
- </dependency>
-
- </dependencies>
-
- <repositories>
- <repository>
- <id>java.net</id>
- <name>java.net Maven 1.x Repository</name>
- <url>http://download.java.net/maven/1</url>
- <layout>legacy</layout>
- </repository>
- <repository>
- <id>java.net2</id>
- <name>java.net Maven 2.x Repository</name>
- <url>http://download.java.net/maven/2</url>
- </repository>
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>java.net2</id>
- <name>java.net Maven 2.x Repository</name>
- <url>http://download.java.net/maven/2</url>
- </pluginRepository>
- </pluginRepositories>
-
-
- <build>
- <finalName>${artifactId}</finalName>
- <plugins>
- <!-- comment out the following to build offline -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.1</version>
-
- <executions>
- <execution>
- <id>install-wsdl</id>
- <phase>validate</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <mkdir dir="${project.build.outputDirectory}/wsdl/" />
- <get src="http://www.webservicex.net/uszip.asmx?wsdl"
- dest="${project.build.outputDirectory}/wsdl/uszip.wsdl" verbose="true"
- usetimestamp="true" />
- <get src="http://www.webservicex.net/WeatherForecast.asmx?wsdl"
- dest="${project.build.outputDirectory}/wsdl/WeatherForecast.wsdl" verbose="true"
- usetimestamp="true" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- end of offline excluded section -->
- <plugin>
- <groupId>org.apache.tuscany.sca</groupId>
- <artifactId>tuscany-maven-ant-generator</artifactId>
- <version>1.5.1-SNAPSHOT</version>
- <executions>
- <execution>
- <configuration>
- <mainClass>location.LocationClient</mainClass>
- <buildDependencyFileOnly>true</buildDependencyFileOnly>
- </configuration>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>-Djava.endorsed.dirs=target/endorsed</argLine>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>javax.xml.ws</groupId>
- <artifactId>jaxws-api</artifactId>
- <version>2.1</version>
- <type>jar</type>
- </artifactItem>
- <artifactItem>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- <version>2.1</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>true</overWriteSnapshots>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.0</version>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>target/jaxws-source</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>jaxws-maven-plugin</artifactId>
- <version>1.9</version>
- <executions>
- <execution>
- <id>wsimport1</id>
- <phase>process-resources</phase>
- <goals>
- <goal>wsimport</goal>
- </goals>
- <configuration>
- <packageName>com.example.uszip</packageName>
- <wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory>
- <wsdlFiles>
- <wsdlFile>uszip.wsdl</wsdlFile>
- </wsdlFiles>
- </configuration>
- </execution>
- <execution>
- <id>wsimport2</id>
- <phase>process-resources</phase>
- <goals>
- <goal>wsimport</goal>
- </goals>
- <configuration>
- <packageName>com.example.weather</packageName>
- <wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory>
- <wsdlFiles>
- <wsdlFile>WeatherForecast.wsdl</wsdlFile>
- </wsdlFiles>
- </configuration>
- </execution>
- </executions>
- <configuration>
- <target>2.1</target>
- <sourceDestDir>${project.build.directory}/jaxws-source</sourceDestDir>
- <verbose>false</verbose>
- <xnocompile>true</xnocompile>
- </configuration>
- </plugin>
- -->
- </plugins>
- </build>
-
-
-</project>
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java
deleted file mode 100644
index 8c9a48bf40..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCode.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java
deleted file mode 100644
index 93847c8809..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByAreaCodeResponse.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java
deleted file mode 100644
index cf9276d417..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCity.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java
deleted file mode 100644
index 9dc0e41b2b..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByCityResponse.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java
deleted file mode 100644
index 48be94b14a..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByState.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java
deleted file mode 100644
index 1645e11ca2..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByStateResponse.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java
deleted file mode 100644
index 45c948b4b4..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIP.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java
deleted file mode 100644
index 9e78dc6d0a..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/GetInfoByZIPResponse.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java
deleted file mode 100644
index ced83ff09a..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/ObjectFactory.java
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java
deleted file mode 100644
index 22493ba9b8..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZip.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java
deleted file mode 100644
index 5ac370005f..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/USZipSoap.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java
deleted file mode 100644
index d120f34ee5..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/uszip/package-info.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java
deleted file mode 100644
index 5385fb57be..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ArrayOfWeatherData.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java
deleted file mode 100644
index 9eb205e75d..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceName.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java
deleted file mode 100644
index e281509623..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByPlaceNameResponse.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java
deleted file mode 100644
index 08d4a70364..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCode.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java
deleted file mode 100644
index 9288f5332e..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/GetWeatherByZipCodeResponse.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java
deleted file mode 100644
index 0c4fdbcde1..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/ObjectFactory.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java
deleted file mode 100644
index a4ca6190b5..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherData.java
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java
deleted file mode 100644
index 0902ce67fe..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecast.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java
deleted file mode 100644
index aa000a44d2..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecastSoap.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java
deleted file mode 100644
index 8ded0946d9..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/WeatherForecasts.java
+++ /dev/null
@@ -1,251 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java
deleted file mode 100644
index 6543ed7abf..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/com/example/weather/package-info.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/LocationClient.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/LocationClient.java
deleted file mode 100644
index 35c114093a..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/LocationClient.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java
deleted file mode 100644
index cf27332e60..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/location/USLocationImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java
deleted file mode 100644
index c03cf2955f..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastClient.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java
deleted file mode 100644
index cf50a6cd9e..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/weather/WeatherForecastImpl.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java
deleted file mode 100644
index f181d9bd0e..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeClient.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java
deleted file mode 100644
index ec0f05dd6c..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeService.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java
deleted file mode 100644
index 284e5a3aa3..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/java/zipcode/ZipCodeServiceImpl.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * 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);
- }
- }
-
-}
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/USLocation.composite b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/USLocation.composite
deleted file mode 100644
index a171fe62c9..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/USLocation.composite
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://location" name="USLocation">
-
- <component name="USLocationService">
- <implementation.java class="location.USLocationImpl" />
- <reference name="usZipService">
- <binding.ws wsdlElement="http://www.webserviceX.NET#wsdl.port(USZip/USZipSoap)" />
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/WeatherForecast.composite b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/WeatherForecast.composite
deleted file mode 100644
index 0e1b118e44..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/WeatherForecast.composite
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://weather" name="WeatherForecast">
-
- <component name="WeatherForecastService">
- <implementation.java class="weather.WeatherForecastImpl" />
- <reference name="weatherForecast">
- <binding.ws wsdlElement="http://www.webservicex.net#wsdl.port(WeatherForecast/WeatherForecastSoap)" />
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/ZipCode.composite b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/ZipCode.composite
deleted file mode 100644
index 28d674c29b..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/main/resources/ZipCode.composite
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- targetNamespace="http://zipcode" name="ZipCode">
-
- <component name="ZipCodeService">
- <implementation.java class="zipcode.ZipCodeServiceImpl" />
- <reference name="usZipService">
- <binding.ws uri="http://www.webservicex.net/uszip.asmx" />
- </reference>
- <reference name="weatherForecast">
- <binding.ws wsdlElement="http://www.webservicex.net#wsdl.port(WeatherForecast/WeatherForecastSoap)" />
- </reference>
- </component>
-
-</composite>
diff --git a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/test/java/zipcode/ZipCodeClientTestCase.java b/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/test/java/zipcode/ZipCodeClientTestCase.java
deleted file mode 100644
index 019fce26d6..0000000000
--- a/branches/sca-java-1.5.1/samples/zipcode-jaxws/src/test/java/zipcode/ZipCodeClientTestCase.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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 location.LocationClient;
-import weather.WeatherForecastClient;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-/**
- * Tests that the callback server is available
- */
-public class ZipCodeClientTestCase {
-
- @Before
- public void startServer() throws Exception {
- }
-
- @Test
- public void testClient() throws Exception {
- /*
- System.out.println("Running LocationClient...");
- LocationClient.main(null);
- System.out.println("Running WeatherForecastClient...");
- WeatherForecastClient.main(null);
- */
- System.out.println("Running ZipCodeClient...");
- ZipCodeClient.main(null);
- }
-
- @After
- public void stopServer() throws Exception {
- }
-}