From a40e527938d76ba71f211da7e327adb50384ba69 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:26:33 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835157 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/old/interop-xsq-client/pom.xml | 60 +++++++++ .../src/main/resources/META-INF/README.txt | 35 +++++ .../src/test/java/interop/ClientTestCase.java | 77 +++++++++++ .../src/test/resources/META-INF/sca/test.scdl | 31 +++++ .../resources/META-INF/tuscany/binding.axis2.scdl | 39 ++++++ .../META-INF/tuscany/databinding.axiom.scdl | 52 ++++++++ .../META-INF/tuscany/databinding.sdo.scdl | 60 +++++++++ .../resources/META-INF/tuscany/interface.wsdl.scdl | 55 ++++++++ .../META-INF/tuscany/test-extensions.scdl | 29 +++++ .../src/test/resources/wsdl/sq.wsdl | 142 +++++++++++++++++++++ 10 files changed, 580 insertions(+) create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/pom.xml create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/main/resources/META-INF/README.txt create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/java/interop/ClientTestCase.java create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/sca/test.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/binding.axis2.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.axiom.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.sdo.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/interface.wsdl.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/test-extensions.scdl create mode 100644 sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/wsdl/sq.wsdl (limited to 'sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client') diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/pom.xml b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/pom.xml new file mode 100644 index 0000000000..c31cce8fc3 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/pom.xml @@ -0,0 +1,60 @@ + + + + + org.apache.tuscany.testing + tuscany-interop-clients + 0.1-integration-incubating-SNAPSHOT + + 4.0.0 + interop-client-webserviceXSQ + jar + Tuscany Interop Testing - Clients - webserviceXSQ + + axis2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + always + -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=3720,server=y,suspend=y + + + + + + + + + + org.apache.tuscany.sca.services.idl + tuscany-wsdl + ${sca.version} + provided + + + + + + diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/main/resources/META-INF/README.txt b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/main/resources/META-INF/README.txt new file mode 100644 index 0000000000..9b26d1690a --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/main/resources/META-INF/README.txt @@ -0,0 +1,35 @@ +Apache Tuscany M1 build (May, 2006) +=================================== + +http://incubator.apache.org/tuscany/ + +Tuscany is an effort undergoing incubation at the Apache Software Foundation +(ASF), sponsored by the Web Services PMC. + +Incubation is required of all newly accepted projects until a further review +indicates that the infrastructure, communications, and decision making process +have stabilized in a manner consistent with other successful ASF projects. + +While incubation status is not necessarily a reflection of the completeness or +stability of the code, it does indicate that the project has yet to be fully +endorsed by the ASF. + + +Support +------- + +Any problem with this release can be reported to the Tuscany mailing list +or in the JIRA issue tracker. + +Mailing list subscription: + tuscany-dev-subscribe@ws.apache.org + +Jira: + http://issues.apache.org/jira/browse/Tuscany + + +Thank you for using Tuscany! + + +The Tuscany Team. + diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/java/interop/ClientTestCase.java b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/java/interop/ClientTestCase.java new file mode 100644 index 0000000000..f2a7b198a1 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/java/interop/ClientTestCase.java @@ -0,0 +1,77 @@ +/* + * 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 interop; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; + +import org.apache.tuscany.test.SCATestCase; +import org.osoa.sca.CompositeContext; +import org.osoa.sca.CurrentCompositeContext; + +/** + * This client program shows how to create an SCA runtime, start it, locate a + * simple HelloWorld service component and invoke it. + */ +public class ClientTestCase extends SCATestCase { + private Object serviceProxy; + + // old tc + // public void testGetQuote() throws ConfigurationException, + // SecurityException, NoSuchMethodException, IllegalArgumentException, + // IllegalAccessException, InvocationTargetException { + // + // TuscanyRuntime tuscany = new TuscanyRuntime("getQuote", null); + // tuscany.start(); + // ModuleContext moduleContext = CurrentModuleContext.getContext(); + // + // Object serviceProxy = moduleContext.locateService("webserviceXSQ"); + // Method m = serviceProxy.getClass().getMethod("GetQuote", new Class[] { + // String.class }); + // + // String sqResponse = (String) m.invoke(serviceProxy, "IBM"); + // + // assertTrue(sqResponse.startsWith("IBM")); + // + // tuscany.stop(); + // } + + public void testGetQuote() throws IllegalArgumentException, IllegalAccessException, + InvocationTargetException, SecurityException, NoSuchMethodException { + Method m = serviceProxy.getClass().getMethod("GetQuote", new Class[] {String.class}); + + String sqResponse = (String)m.invoke(serviceProxy, "IBM"); + + assertTrue(sqResponse.startsWith("IBM")); + + } + + @Override + protected void setUp() throws Exception { + setApplicationSCDL(getClass(), "META-INF/sca/test.scdl"); + + addExtension("test.exts", getClass().getClassLoader() + .getResource("META-INF/tuscany/test-extensions.scdl")); + + super.setUp(); + CompositeContext compositeContext = CurrentCompositeContext.getContext(); + serviceProxy = compositeContext.locateService(Object.class, "webserviceXSQ"); + } + +} diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/sca/test.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/sca/test.scdl new file mode 100644 index 0000000000..22b3b90623 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/sca/test.scdl @@ -0,0 +1,31 @@ + + + + + + + + + + + diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/binding.axis2.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/binding.axis2.scdl new file mode 100644 index 0000000000..fb208f56ab --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/binding.axis2.scdl @@ -0,0 +1,39 @@ + + + + + + + axis2 + axis2-kernel + SNAPSHOT + + + + + + + + + + + diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.axiom.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.axiom.scdl new file mode 100644 index 0000000000..e4fe956e61 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.axiom.scdl @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.sdo.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.sdo.scdl new file mode 100644 index 0000000000..61753384b4 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/databinding.sdo.scdl @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/interface.wsdl.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/interface.wsdl.scdl new file mode 100644 index 0000000000..84538dab8b --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/interface.wsdl.scdl @@ -0,0 +1,55 @@ + + + + + + + wsdl4j + wsdl4j + 1.5.2 + + + org.apache.ws.commons + XmlSchema + SNAPSHOT + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/test-extensions.scdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/test-extensions.scdl new file mode 100644 index 0000000000..355b663a1b --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/META-INF/tuscany/test-extensions.scdl @@ -0,0 +1,29 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/wsdl/sq.wsdl b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/wsdl/sq.wsdl new file mode 100644 index 0000000000..0408a60297 --- /dev/null +++ b/sca-java-1.x/tags/0.99-incubating/itest/old/interop-xsq-client/src/test/resources/wsdl/sq.wsdl @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + Get Stock quote for a company Symbol + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3