From 132aa8a77685ec92bc90c03f987650d275a7b639 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 30 Sep 2013 06:59:11 +0000 Subject: 2.0.1 RC1 release tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1527464 13f79535-47bb-0310-9956-ffa450edef68 --- .../tags/2.0.1-RC1/testing/itest/ws-jaxws/README | 83 ++++++++++++ .../itest/ws-jaxws/contribution-java-first/pom.xml | 127 ++++++++++++++++++ .../apache/tuscany/sca/binding/ws/jaxws/Bar.java | 58 +++++++++ .../apache/tuscany/sca/binding/ws/jaxws/Foo.java | 36 ++++++ .../tuscany/sca/binding/ws/jaxws/HelloWorld.java | 31 +++++ .../sca/binding/ws/jaxws/HelloWorldImpl.java | 53 ++++++++ .../resources/HelloWorldServiceService_schema1.xsd | 38 ++++++ .../main/resources/META-INF/sca-contribution.xml | 23 ++++ .../resources/helloworld-external-service.wsdl | 57 ++++++++ .../src/main/resources/helloworld.composite | 35 +++++ .../itest/ws-jaxws/contribution-wsdl-first/pom.xml | 129 +++++++++++++++++++ .../sca/binding/ws/jaxws/impl/HelloWorldImpl.java | 43 +++++++ .../main/resources/META-INF/sca-contribution.xml | 23 ++++ .../src/main/resources/helloworld-external.wsdl | 84 ++++++++++++ .../src/main/resources/helloworld-sca.wsdl | 84 ++++++++++++ .../src/main/resources/helloworld.composite | 35 +++++ .../testing/itest/ws-jaxws/external-client/pom.xml | 117 +++++++++++++++++ .../external/client/HelloWorldClientLauncher.java | 73 +++++++++++ .../src/main/resources/HelloWorldImplService.wsdl | 104 +++++++++++++++ .../resources/HelloWorldImplService_schema1.xsd | 93 ++++++++++++++ .../itest/ws-jaxws/external-service/pom.xml | 96 ++++++++++++++ .../jaxws/external/service/HelloWorldService.java | 57 ++++++++ .../service/HelloWorldServiceLauncher.java | 49 +++++++ .../testing/itest/ws-jaxws/launcher-ri/pom.xml | 60 +++++++++ .../ws/jaxws/launcher/JavaFirstTestCase.java | 119 +++++++++++++++++ .../ws/jaxws/launcher/WSDLFirstTestCaseOFF.java | 143 +++++++++++++++++++++ .../tags/2.0.1-RC1/testing/itest/ws-jaxws/pom.xml | 41 ++++++ 27 files changed, 1891 insertions(+) create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/README create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/pom.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/pom.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/pom.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/pom.xml create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java create mode 100644 sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/pom.xml (limited to 'sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws') diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/README b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/README new file mode 100644 index 0000000000..cf635e78d0 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/README @@ -0,0 +1,83 @@ + +Scenarios +========= + +General Patterns +---------------- + +For simple synchronous tests: + +Jaxws client -> (b.ws service) SCA Component (b.ws reference) -> Jaxws Service + +For callback or asynchronous tests + +JUnit client -> SCA Component (b.ws reference) -> (b.ws service) SCA component + +Java First +---------- +scratch java component impl +interface jaave (simple + JAXB + SDO ) +?wsdl - gens wsdl + +Java First with JAX-WS annotations +---------------------------------- +WSDL -> wsimport -> Java component impl +interface java +?wsdl - re-gens wsdl + +WSDL first +---------- +Java component impl -> wsgen -> wsdl +interface wsdl +?wsld - provided wsdl + +Policy +------ +ws-policy (aac) + +Java First + WSpolicy from Policy set in definitions.xml + ?wsdl - gens wsdl + policy +WSDL first + WSpolicy from WSDL + ?wsld - uses wsdl + policy + Policy signing + +alternative bindings +-------------------- +SOAP/HTTP +SOAP/HTTPS +SOAP/JMS + How to retrieve WSDL for non-http bindings (a SHOULD in the spec) + +asynchInvocation Intent +----------------------- + Service + Client + +noListener Intent +----------------- + ws-makeconnetion? + + +SOAP1.1 intent +-------------- + + +SOAP1.2 intent +-------------- + +MTOM intent +-------------- + +callback +-------- +new OASIS protocol +WSCallback ws policy + +JAXWS Asynch APIs +----------------- + +Streaming +--------- +Do we need to support? diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/pom.xml new file mode 100644 index 0000000000..18915a722c --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/pom.xml @@ -0,0 +1,127 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0.1 + ../pom.xml + + + itest-ws-jaxws-contribution-java-first + Apache Tuscany SCA iTest WS JAXWS Contribution Java First + + + + + org.apache.tuscany.sca + tuscany-base-runtime-pom + pom + 2.0.1 + + + + org.apache.tuscany.sca + tuscany-binding-ws-runtime-axis2 + 2.0.1 + + + + org.mortbay.jetty + jetty + 6.1.19 + + + + + + ${project.artifactId} + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-source + generate-sources + + add-test-source + + + + target/jaxws-source + + + + + + + org.jvnet.jax-ws-commons + jaxws-maven-plugin + 2.1 + + + com.sun.xml.ws + jaxws-tools + 2.2.6-promoted-b10 + + + + + wsgen1 + process-classes + + wsgen + + + org.apache.tuscany.sca.binding.ws.jaxws.HelloWorldImpl + true + ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag + + + + wsimport1 + process-resources + + wsimport + + + org.apache.tuscany.sca.binding.ws.jaxws.external.service.jaxws + ${basedir}/target/classes + + helloworld-external-service.wsdl + + ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag + + + + + 2.1 + ${project.build.directory}/jaxws-source + ${project.build.directory}/jaxws-source + true + true + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java new file mode 100644 index 0000000000..e712ec8b53 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java @@ -0,0 +1,58 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws; + +import java.io.Serializable; + +public class Bar implements Serializable { + private static final long serialVersionUID = 1249963611910502668L; + + private String s; + private int x; + private Integer y; + + private Boolean b; + + public Boolean getB() { + return b; + } + public void setB(Boolean b) { + this.b = b; + } + public String getS() { + return s; + } + public void setS(String s) { + this.s = s; + } + public int getX() { + return x; + } + public void setX(int x) { + this.x = x; + } + public Integer getY() { + return y; + } + public void setY(Integer y) { + this.y = y; + } + +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java new file mode 100644 index 0000000000..d09b2af230 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java @@ -0,0 +1,36 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws; + +import java.io.Serializable; + +public class Foo implements Serializable { + private static final long serialVersionUID = 4879476066850018458L; + + private Bar[] bars; + + public Bar[] getBars() { + return bars; + } + + public void setBars(Bar[] bars) { + this.bars = bars; + } +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java new file mode 100644 index 0000000000..652f7b53c4 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java @@ -0,0 +1,31 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws; + +import org.oasisopen.sca.ServiceRuntimeException; +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloWorld { + + String getGreetings(String s); + String getGreetingsException(String s) throws ServiceRuntimeException; + Foo getGreetingsComplex(Foo foo); +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java new file mode 100644 index 0000000000..85e55888c6 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorldImpl.java @@ -0,0 +1,53 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws; + +import javax.jws.WebService; + +import org.apache.tuscany.sca.binding.ws.jaxws.external.service.jaxws.HelloWorldService; +import org.oasisopen.sca.ServiceRuntimeException; +import org.oasisopen.sca.annotation.Reference; + +@WebService +public class HelloWorldImpl implements HelloWorld { + + @Reference + public HelloWorldService helloWorldExternal; + + public String getGreetings(String s) { + System.out.println("Entering SCA HelloWorld.getGreetings: " + s); + String response = helloWorldExternal.getGreetings(s); + System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); + return response; + } + + public String getGreetingsException(String s) throws ServiceRuntimeException { + System.out.println("Entering SCA HelloWorld.getGreetingsException: " + s); + String response = helloWorldExternal.getGreetings(s); + System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); + throw new ServiceRuntimeException(response); + } + + public Foo getGreetingsComplex(Foo foo){ + Foo response = null;//helloWorldExternal.getGreetingsComplex(foo); + System.out.println("At client: " + response.getBars()[0].getS()); + return response; + } +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd new file mode 100644 index 0000000000..51f6dd4d51 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/HelloWorldServiceService_schema1.xsd @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..7e71dd465f --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl new file mode 100644 index 0000000000..67236a5f98 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld-external-service.wsdl @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..0188dc0d41 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-java-first/src/main/resources/helloworld.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml new file mode 100644 index 0000000000..bf95f918f9 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml @@ -0,0 +1,129 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0.1 + ../pom.xml + + + itest-ws-jaxws-contribution-wsdl-first + Apache Tuscany SCA iTest WS JAXWS Contribution WSDL First + + + + + org.apache.tuscany.sca + tuscany-base-runtime-pom + pom + 2.0.1 + + + + org.apache.tuscany.sca + tuscany-binding-ws-runtime-axis2 + 2.0.1 + + + + org.mortbay.jetty + jetty + 6.1.19 + + + + + + ${project.artifactId} + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-source + generate-sources + + add-test-source + + + + target/jaxws-source + + + + + + + org.jvnet.jax-ws-commons + jaxws-maven-plugin + 2.1 + + + com.sun.xml.ws + jaxws-tools + 2.2.6-promoted-b10 + + + + + wsimport1 + process-resources + + wsimport + + + org.apache.tuscany.sca.binding.ws.jaxws + ${basedir}/target/classes + + helloworld-sca.wsdl + + ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag + + + + wsimport2 + process-resources + + wsimport + + + org.apache.tuscany.sca.binding.ws.jaxws.external.service + ${basedir}/target/classes + + helloworld-external.wsdl + + ${project.build.directory}/jaxws/stale/.wsimport2StaleFlag + + + + + 2.1 + ${project.build.directory}/jaxws-source + true + true + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java new file mode 100644 index 0000000000..7c63fd5ba9 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/impl/HelloWorldImpl.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.ws.jaxws.impl; + +import org.apache.tuscany.sca.binding.ws.jaxws.HelloWorld; +import org.oasisopen.sca.annotation.Reference; + +public class HelloWorldImpl implements HelloWorld { + + @Reference + public org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorld helloWorldExternal; + + public String getGreetings(String s) { + System.out.println("Entering SCA HelloWorld.getGreetings: " + s); + String response = helloWorldExternal.getGreetings(s); + System.out.println("Leaving SCA HelloWorld.getGreetings: " + response); + return response; + } +/* + public Foo getGreetingsComplex(Foo foo){ + Foo response = null;//helloWorldExternal.getGreetingsComplex(foo); + System.out.println("At client: " + response.getBars()[0].getS()); + return response; + } +*/ +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..7e71dd465f --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl new file mode 100644 index 0000000000..78d8077bcd --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl new file mode 100644 index 0000000000..0e6a10cc62 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..0cd2b4419d --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/pom.xml new file mode 100644 index 0000000000..8e30e81694 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/pom.xml @@ -0,0 +1,117 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0.1 + ../pom.xml + + + itest-ws-jaxws-external-client + Apache Tuscany SCA iTest WS JAXWS External Client + + + + + org.apache.tuscany.sca + tuscany-base-runtime-pom + pom + 2.0.1 + + + + org.apache.tuscany.sca + tuscany-binding-ws-runtime-axis2 + 2.0.1 + + + + org.mortbay.jetty + jetty + 6.1.19 + + + + + + ${project.artifactId} + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-source + generate-sources + + add-test-source + + + + target/jaxws-source + + + + + + + org.jvnet.jax-ws-commons + jaxws-maven-plugin + 2.1 + + + com.sun.xml.ws + jaxws-tools + 2.2.6-promoted-b10 + + + + + wsimport1 + process-resources + + wsimport + + + org.apache.tuscany.sca.binding.ws.jaxws.sca + ${basedir}/target/classes + + HelloWorldImplService.wsdl + + ${project.build.directory}/jaxws/stale/.wsimport1StaleFlag + + + + + 2.1 + ${project.build.directory}/jaxws-source + ${project.build.directory}/jaxws-source + true + true + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java new file mode 100644 index 0000000000..da40a7f442 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/client/HelloWorldClientLauncher.java @@ -0,0 +1,73 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.tuscany.sca.binding.ws.jaxws.external.client; + +import java.io.File; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + +import org.apache.tuscany.sca.binding.ws.jaxws.sca.Exception_Exception; +import org.apache.tuscany.sca.binding.ws.jaxws.sca.HelloWorldImpl; + +public class HelloWorldClientLauncher { + + public HelloWorldImpl wsProxy; + + public HelloWorldClientLauncher(){ + } + + public void createClient() throws Exception{ + System.out.println(">>> Starting external JAXWS client "); + + // default JVM JAXWS support + QName serviceName = new QName("http://jaxws.ws.binding.sca.tuscany.apache.org/", "HelloWorldImplService"); + QName portName = new QName("http://jaxws.ws.binding.sca.tuscany.apache.org/", "HelloWorldImplPort"); + //URL wsdlLocation = new File("../external-client/target/classes/helloworld-sca.wsdl").toURL(); + URL wsdlLocation = new File("../external-client/target/classes/HelloWorldImplService.wsdl").toURL(); + javax.xml.ws.Service webService = Service.create(wsdlLocation, serviceName); + wsProxy = (HelloWorldImpl) webService.getPort(portName, HelloWorldImpl.class); + } + + public void destroyClient(){ + System.out.println(">>> Stopping external JAXWS client: "); + // TODO + } + + public String getGreetings(String name){ + System.out.println("Entering External Client HelloWorld.getGreetings: " + name); + String response = wsProxy.getGreetings(name); + System.out.println("Leaving External Client HelloWorld.getGreetings: " + response); + return response; + } + + public String getGreetingsException(String name) throws Exception_Exception { + return wsProxy.getGreetingsException(name); + } + + public static void main(String[] args) throws Exception { + HelloWorldClientLauncher launcher = new HelloWorldClientLauncher(); + launcher.createClient(); + launcher.getGreetings("Fred"); + launcher.destroyClient(); + } + +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl new file mode 100644 index 0000000000..11ed0a3353 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService.wsdl @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd new file mode 100644 index 0000000000..3c347570a0 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-client/src/main/resources/HelloWorldImplService_schema1.xsd @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/pom.xml new file mode 100644 index 0000000000..544ee699b6 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/pom.xml @@ -0,0 +1,96 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0.1 + ../pom.xml + + + itest-ws-jaxws-external-service + Apache Tuscany SCA iTest WS JAXWS External Service + + + + + + + + ${project.artifactId} + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-source + generate-sources + + add-test-source + + + + target/jaxws-source + + + + + + + org.jvnet.jax-ws-commons + jaxws-maven-plugin + 2.1 + + + com.sun.xml.ws + jaxws-tools + 2.2.6-promoted-b10 + + + + + wsgen1 + process-classes + + wsgen + + + org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldService + true + ${project.build.directory}/jaxws/stale/.wsgen1StaleFlag + + + + + 2.1 + ${project.build.directory}/jaxws-source + ${project.build.directory}/jaxws-source + true + true + + + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java new file mode 100644 index 0000000000..796ef82792 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldService.java @@ -0,0 +1,57 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws.external.service; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +@WebService(name = "HelloWorldService", targetNamespace = "http://helloworld/external") +public class HelloWorldService { + + @WebMethod + @WebResult(name = "getGreetingsReturn", targetNamespace = "http://helloworld/external") + @RequestWrapper(localName = "getGreetings", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetings") + @ResponseWrapper(localName = "getGreetingsResponse", targetNamespace = "http://helloworld/external", className = "org.apache.tuscany.sca.binding.ws.jaxws.external.service.GetGreetingsResponse") + public String getGreetings( @WebParam(name = "name", targetNamespace = "http://helloworld/external") + String name) { + System.out.println("Entering External Service HelloWorld.getGreetings: " + name); + String response = "Hello " + name; + System.out.println("Leaving External Service HelloWorld.getGreetings: " + response); + return response; + } + +/* + public Foo getGreetingsComplex(Foo foo){ + Foo response = foo; + Bar b3 = new Bar(); + b3.setS("simon"); + b3.setX(4); + b3.setY(new Integer(5)); + b3.setB(Boolean.TRUE); + response.getBars()[1] = b3; + System.out.println("At sevice: " + response.getBars()[0].getS()); + return response; + } +*/ +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java new file mode 100644 index 0000000000..ba7e033f63 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/external-service/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/external/service/HelloWorldServiceLauncher.java @@ -0,0 +1,49 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws.external.service; + +import javax.xml.ws.Endpoint; + +public class HelloWorldServiceLauncher { + + public Endpoint endpoint; + + public HelloWorldServiceLauncher(){ + + } + + public void createService(){ + System.out.println(">>> Starting external JAXWS service at http://localhost:8086/External/HelloWorld"); + + // default JVM JAXWS support. + endpoint= Endpoint.publish("http://localhost:8086/External/HelloWorld", + new HelloWorldService()); + } + + public void destoryService(){ + System.out.println(">>> Stopping external JAXWS service at http://localhost:8086/External/HelloWorld"); + endpoint.stop(); + } + + public static void main(String[] args) throws Exception { + HelloWorldServiceLauncher launcher = new HelloWorldServiceLauncher(); + launcher.createService(); + } +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/pom.xml new file mode 100644 index 0000000000..b85cd50271 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/pom.xml @@ -0,0 +1,60 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0.1 + ../pom.xml + + + itest-ws-jaxws-launcher-ri + Apache Tuscany SCA iTest WS JAXWS Launcher RI + + + + org.apache.tuscany.sca + tuscany-base-runtime-pom + pom + 2.0.1 + + + + + org.apache.tuscany.sca + itest-ws-jaxws-external-client + 2.0.1 + + + + org.apache.tuscany.sca + itest-ws-jaxws-external-service + 2.0.1 + + + + + + ${project.artifactId} + + + + diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java new file mode 100644 index 0000000000..3c14218118 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/JavaFirstTestCase.java @@ -0,0 +1,119 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws.launcher; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; + +import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; +import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; +import org.apache.tuscany.sca.node.Contribution; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JavaFirstTestCase { + + private Node node; + private HelloWorldServiceLauncher externalService; + private HelloWorldClientLauncher externalClient; + + @Before + public void setUp() throws Exception { + // Start the external service + externalService = new HelloWorldServiceLauncher(); + externalService.createService(); + + // Start the SCA contribution + node = NodeFactory.newInstance().createNode(new Contribution("java-first", "../contribution-java-first/target/classes")); + node.start(); + + // start the external client + try { + externalClient = new HelloWorldClientLauncher(); + externalClient.createClient(); + } catch (Exception ex) { + ex.printStackTrace(); + throw ex; + } + } + +/* + public void testWait() throws Exception { + System.out.println("Press a key"); + System.in.read(); + } +*/ + + @Test + public void testGetGreetings() throws Exception { + assertEquals("Hello Fred", externalClient.getGreetings("Fred")); + } + + @Test + public void testGetGreetingsException() throws Exception { + try { + externalClient.getGreetingsException("Fred"); + } catch (Exception ex) { + return; + } + + fail("expecting exception"); + } + + public void testGetGreetingsComplex() throws Exception { + +/* + Foo f = new Foo(); + Bar b1 = new Bar(); + b1.setS("petra"); + b1.setX(1); + b1.setY(new Integer(2)); + b1.setB(Boolean.TRUE); + Bar b2 = new Bar(); + b2.setS("beate"); + b2.setX(3); + b2.setY(new Integer(4)); + b2.setB(Boolean.FALSE); + f.setBars(new Bar[] { b1, b2} ); + + Foo f2 = helloWorld.getGreetingsComplex(f); + + assertEquals("petra", f2.getBars()[0].getS()); + assertEquals(1, f2.getBars()[0].getX()); + assertEquals(2, f2.getBars()[0].getY().intValue()); + assertTrue(f2.getBars()[0].getB().booleanValue()); + assertEquals("simon", f2.getBars()[1].getS()); + assertEquals(4, f2.getBars()[1].getX()); + assertEquals(5, f2.getBars()[1].getY().intValue()); + assertTrue(f2.getBars()[1].getB().booleanValue()); +*/ + } + + @After + public void tearDown() throws Exception { + node.stop(); + externalClient.destroyClient(); + externalService.destoryService(); + } + +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java new file mode 100644 index 0000000000..a69fe483bf --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/launcher-ri/src/test/java/org/apache/tuscany/sca/binding/ws/jaxws/launcher/WSDLFirstTestCaseOFF.java @@ -0,0 +1,143 @@ +/* + * 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 org.apache.tuscany.sca.binding.ws.jaxws.launcher; + +import junit.framework.TestCase; + +import org.apache.tuscany.sca.binding.ws.jaxws.external.client.HelloWorldClientLauncher; +import org.apache.tuscany.sca.binding.ws.jaxws.external.service.HelloWorldServiceLauncher; +import org.apache.tuscany.sca.node.Contribution; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; + +public class WSDLFirstTestCaseOFF extends TestCase { + + private Node node; + + @Override + protected void setUp() throws Exception { + // Start the external service + HelloWorldServiceLauncher.main(null); + + // Start the SCA contribution + node = NodeFactory.newInstance().createNode(new Contribution("common", "../common-contribution/target/classes"), + new Contribution("wsdl-first", "../wsdl-first-contribution/target/classes")); + node.start(); + } + + public void testCalculator() throws Exception { + HelloWorldClientLauncher.main(null); + } + +/* + public void testWait1() throws Exception { + System.out.println("Press a key"); + System.in.read(); + } + + public void testCalculator1() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator2() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator3() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator4() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator5() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator6() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator7() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator8() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator9() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator10() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator11() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator12() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator13() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator14() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator15() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator16() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator17() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator18() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator19() throws Exception { + HelloWorldClientLauncher.main(null); + } + + public void testCalculator20() throws Exception { + HelloWorldClientLauncher.main(null); + } +*/ + + + @Override + protected void tearDown() throws Exception { + node.stop(); + node = null; + } + +} diff --git a/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/pom.xml b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/pom.xml new file mode 100644 index 0000000000..4dea16ee4d --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/testing/itest/ws-jaxws/pom.xml @@ -0,0 +1,41 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0.1 + ../pom.xml + + pom + itest-ws-jaxws + Apache Tuscany SCA iTest WS JAXWS + + + contribution-java-first + contribution-wsdl-first + external-client + external-service + launcher-ri + + + + -- cgit v1.2.3