From 62d55709374e7c299f720aa9066f8b3dcb315ac0 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 18 Jul 2011 10:21:06 +0000 Subject: Create a branch for beta3 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1147804 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/ws-jaxws/contribution-wsdl-first/pom.xml | 137 +++++++++++++++++++++ .../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 ++++++ 6 files changed, 406 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl create mode 100644 sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite (limited to 'sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first') diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml b/sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml new file mode 100644 index 0000000000..cb767ea5f2 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/pom.xml @@ -0,0 +1,137 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-ws-jaxws + 2.0-Beta3-SNAPSHOT + ../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-Beta3-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-binding-ws-runtime-axis2 + 2.0-Beta3-SNAPSHOT + + + + 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.codehaus.mojo + jaxws-maven-plugin + 1.10 + + + + javax.jws + jsr181-api + 1.0-MR1 + + + javax.annotation + jsr250-api + 1.0 + + + + + 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/branches/2.0-Beta3/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/branches/2.0-Beta3/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/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/branches/2.0-Beta3/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/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl b/sca-java-2.x/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-external.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl b/sca-java-2.x/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld-sca.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite b/sca-java-2.x/branches/2.0-Beta3/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/branches/2.0-Beta3/testing/itest/ws-jaxws/contribution-wsdl-first/src/main/resources/helloworld.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + -- cgit v1.2.3