summaryrefslogtreecommitdiffstats
path: root/java/sca/stest
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2008-12-18 16:07:23 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2008-12-18 16:07:23 +0000
commit27cc4ecce579d6e1d11982d792e13f6e1fe80f94 (patch)
tree094a4835d0daf4e864c1efbadd0b0d40d69ef443 /java/sca/stest
parent4beea938ef828047e528724b5ff3adff6b25619a (diff)
Updates to clean the testcase code and to add a Base JAXWS client and to base the set of testcases off the Base JAXWS client
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@727758 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java2
-rw-r--r--java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java2
-rw-r--r--java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java2
-rw-r--r--java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java3
-rw-r--r--java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl58
-rw-r--r--java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite3
-rw-r--r--java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite6
-rw-r--r--java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite61
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java4
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java4
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java4
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java (renamed from java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java)33
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java5
-rw-r--r--java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java3
-rw-r--r--java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java65
-rw-r--r--java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java65
-rw-r--r--java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java71
-rw-r--r--java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java40
-rw-r--r--java/sca/stest/sampleTest/src/test/java/testClient/package-info.java2
19 files changed, 373 insertions, 60 deletions
diff --git a/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java b/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java
index 5f35b31380..060d82ab9e 100644
--- a/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java
+++ b/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java
@@ -2,6 +2,8 @@ package test;
import org.osoa.sca.annotations.Service;
+import test.TestInvocation;
+
/**
* Basic test initiation class
* @author MikeEdwards
diff --git a/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java b/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java
index 0c3a566508..54e05aef74 100644
--- a/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java
+++ b/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java
@@ -4,6 +4,8 @@ import org.osoa.sca.annotations.Service;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Property;
+import test.TestInvocation;
+
/**
* Test initiation class with a single reference of multiplicity 1..1
* @author MikeEdwards
diff --git a/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java b/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java
index c4d4be149f..dc60c0fcde 100644
--- a/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java
+++ b/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java
@@ -4,6 +4,8 @@ import org.osoa.sca.annotations.Service;
import org.osoa.sca.annotations.Reference;
import org.osoa.sca.annotations.Property;
+import test.TestInvocation;
+
import java.util.List;
/**
diff --git a/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java b/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java
index 689cf19352..c546171b09 100644
--- a/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java
+++ b/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java
@@ -1,5 +1,7 @@
package test;
+import javax.jws.WebService;
+import javax.jws.WebMethod;
import org.osoa.sca.annotations.Remotable;
/**
@@ -15,6 +17,7 @@ public interface TestInvocation {
* @param input - input parameter(s) as a String
* @return - output data as a String
*/
+ @WebMethod
public String invokeTest( String input );
}
diff --git a/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl b/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl
new file mode 100644
index 0000000000..05d933e04f
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="TestInvocationService" targetNamespace="http://test/"
+xmlns:test="http://test/"
+xmlns="http://test/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
+xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/">
+ <wsdl:types>
+ <xs:schema attributeFormDefault="qualified" elementFormDefault="unqualified" targetNamespace="http://test/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<xs:element name="invokeTest">
+<xs:complexType>
+<xs:sequence>
+<xs:element minOccurs="0" name="arg0" nillable="true" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+<xs:element name="invokeTestResponse">
+<xs:complexType>
+<xs:sequence>
+<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+</xs:element>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="invokeTest">
+ <wsdl:part name="invokeTest" element="test:invokeTest">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="invokeTestResponse">
+ <wsdl:part name="invokeTestResponse" element="test:invokeTestResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="TestInvocation">
+ <wsdl:operation name="invokeTest">
+ <wsdl:input message="test:invokeTest">
+ </wsdl:input>
+ <wsdl:output message="test:invokeTestResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="TestInvocationBinding" type="test:TestInvocation">
+ <SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="invokeTest">
+ <SOAP:operation soapAction=""/>
+ <wsdl:input>
+ <SOAP:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <SOAP:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="TestInvocationService">
+ <wsdl:port name="TestInvocationPort" binding="test:TestInvocationBinding">
+ <SOAP:address location="http://localhost:8080/TestClient"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite
index 28e4b56ef3..590e147a47 100644
--- a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite
+++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite
@@ -25,7 +25,8 @@
<component name="TestClient">
<implementation.java class="test.ASM_0002_Client"/>
<service name="TestInvocation">
- <interface.java interface="test.TestInvocation"/>
+ <interface.java interface="test.TestInvocation"/>
+ <binding.ws/>
</service>
<reference name="reference1" target="TestComponent1/Service1" />
<property name="testName">ASM_0002</property>
diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite
index 577d4eb049..3c59dd39a2 100644
--- a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite
+++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite
@@ -17,6 +17,9 @@
* specific language governing permissions and limitations
* under the License.
-->
+<!-- Test case that verifies that an implementation with a reference with multiplicity 1..n can
+ be validly wired to 3 target services and invoke them all correctly.
+-->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://oasis/tests"
xmlns:sample="http://oasis/tests"
@@ -25,7 +28,8 @@
<component name="TestClient">
<implementation.java class="test.ASM_0003_Client"/>
<service name="TestInvocation">
- <interface.java interface="test.TestInvocation"/>
+ <interface.java interface="test.TestInvocation"/>
+ <binding.ws/>
</service>
<reference name="reference1" target="TestComponent1/Service1 TestComponent2/Service1 TestComponent3/Service1" />
<property name="testName">ASM_0003</property>
diff --git a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite
index c5cc0494a3..ec0a98d75a 100644
--- a/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite
+++ b/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite
@@ -1,45 +1,46 @@
-<?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.
+<?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.
-->
<!-- Test that verifies that a reference with multiplicity 1..1 which is provided
- with multiple wire targets in the component configuration is marked as an error -->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://oasis/tests"
- xmlns:sample="http://oasis/tests"
+ with multiple wire targets in the component configuration is marked as an error -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://oasis/tests"
+ xmlns:sample="http://oasis/tests"
name="TEST_ASM_0004">
-
+
<component name="TestClient">
<implementation.java class="test.ASM_0002_Client"/>
<service name="TestInvocation">
<interface.java interface="test.TestInvocation"/>
+ <binding.ws/>
</service>
<reference name="reference1" target="TestComponent1/Service1 TestComponent2/Service1 TestComponent3/Service1" />
<property name="testName">ASM_0004</property>
</component>
-
- <component name="TestComponent1">
- <implementation.java class="test.service1Impl"/>
+
+ <component name="TestComponent1">
+ <implementation.java class="test.service1Impl"/>
<service name="Service1">
<interface.java interface="test.Service1"></interface.java>
</service>
- <property name="serviceName">service1</property>
+ <property name="serviceName">service1</property>
</component>
<component name="TestComponent2">
@@ -56,6 +57,6 @@
<interface.java interface="test.Service1"></interface.java>
</service>
<property name="serviceName">service3</property>
- </component>
-
-</composite>
+ </component>
+
+</composite>
diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java
index 04930106cd..bd4fe79747 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java
@@ -20,12 +20,12 @@ package client;
import test.ASM_0002_Client;
-import test.TestInvocation;
+import testClient.TestInvocation;
/**
* A generic test client based on Tuscany APIs
*/
-public class ASM_0002_TestCase extends BaseTestCase {
+public class ASM_0002_TestCase extends BaseJAXWSTestCase {
protected TestConfiguration getTestConfiguration() {
diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java
index b73c55385d..4f85967b0d 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java
@@ -20,12 +20,12 @@ package client;
import test.ASM_0003_Client;
-import test.TestInvocation;
+import testClient.TestInvocation;
/**
* A generic test client based on Tuscany APIs
*/
-public class ASM_0003_TestCase extends BaseTestCase {
+public class ASM_0003_TestCase extends BaseJAXWSTestCase {
protected TestConfiguration getTestConfiguration() {
diff --git a/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java b/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java
index 3c727205d9..4997b28859 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java
@@ -20,12 +20,12 @@ package client;
import test.ASM_0002_Client;
-import test.TestInvocation;
+import testClient.TestInvocation;
/**
* A generic test client based on Tuscany APIs
*/
-public class ASM_0004_TestCase extends BaseTestCase {
+public class ASM_0004_TestCase extends BaseJAXWSTestCase {
protected TestConfiguration getTestConfiguration() {
diff --git a/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java b/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java
index d95421ac08..4e48b77c5a 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java
@@ -20,6 +20,9 @@ package client;
import static org.junit.Assert.*;
+import java.net.MalformedURLException;
+import java.net.URL;
+
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.equinox.launcher.Contribution;
import org.apache.tuscany.sca.node.equinox.launcher.ContributionLocationHelper;
@@ -27,25 +30,24 @@ import org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import org.osoa.sca.annotations.Reference;
import javax.xml.ws.Service;
import javax.xml.namespace.QName;
import test.ASM_0001_Client;
-import test.TestInvocation;
+import testClient.TestInvocation;
/**
* A generic test client based on JAX-WS APIs
*/
-public class BaseJAXWSTest {
+public class BaseJAXWSTestCase {
protected NodeLauncher launcher;
protected Node node;
protected TestConfiguration testConfiguration = getTestConfiguration();
public static void main(String[] args) throws Exception {
- BaseJAXWSTest test = new BaseJAXWSTest();
+ BaseJAXWSTestCase test = new BaseJAXWSTestCase();
test.setUp();
test.tearDown();
}
@@ -65,26 +67,25 @@ public class BaseJAXWSTest {
// System.out.println("Test " + testName + " starting");
try {
String output = invokeTest( testConfiguration.getInput() );
- assertEquals( output, testConfiguration.getExpectedOutput() );
+ assertEquals( testConfiguration.getExpectedOutput(), output );
} catch (Exception e) {
- assertEquals( "exception", testConfiguration.getExpectedOutput() );
- System.out.println( "Expected exception - detail: " + e.getMessage() );
+ e.printStackTrace();
+ System.out.println( "Exception received - detail: " + e.getMessage() );
+ assertEquals( testConfiguration.getExpectedOutput(), "exception" );
}
System.out.println("Test " + testConfiguration.getTestName() + " completed successfully");
}
- public String invokeTest( String input ) {
- //Web service invocation
- QName serviceName = new QName("http://localhost:8080", "TestInvocation");
- javax.xml.ws.Service webService = Service.create(serviceName);
+ public String invokeTest( String input ) throws MalformedURLException {
+ //Web service invocation via JAXWS
+ QName serviceName = new QName("http://test/", "TestInvocationService");
+ URL wsdlLocation = this.getClass().getClassLoader().getResource("TestClient.wsdl");
+ javax.xml.ws.Service webService = Service.create( wsdlLocation, serviceName );
TestInvocation wsProxy = (TestInvocation) webService.getPort(testConfiguration.getServiceInterface());
+
String output = wsProxy.invokeTest(input);
- System.out.println("web service invoked - output = " + output);
- TestInvocation service = (TestInvocation) getService( testConfiguration.getServiceInterface(),
- testConfiguration.getTestServiceName() );
-
- return service.invokeTest( input );
+ return output;
} // end method invokeTest
protected <T> T getService( Class<T> interfaze, String serviceName ) {
diff --git a/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java b/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java
index f20f2923aa..d603e5be16 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java
@@ -27,7 +27,6 @@ import org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import org.osoa.sca.annotations.Reference;
import test.ASM_0001_Client;
import test.TestInvocation;
@@ -62,9 +61,9 @@ public class BaseTestCase {
// System.out.println("Test " + testName + " starting");
try {
String output = invokeTest( testConfiguration.getInput() );
- assertEquals( output, testConfiguration.getExpectedOutput() );
+ assertEquals( testConfiguration.getExpectedOutput(), output );
} catch (Exception e) {
- assertEquals( "exception", testConfiguration.getExpectedOutput() );
+ assertEquals( testConfiguration.getExpectedOutput(), "exception" );
System.out.println( "Expected exception - detail: " + e.getMessage() );
}
System.out.println("Test " + testConfiguration.getTestName() + " completed successfully");
diff --git a/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java b/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java
index 43df1366df..95496b0110 100644
--- a/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java
+++ b/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java
@@ -1,8 +1,5 @@
package client;
-import test.ASM_0001_Client;
-import test.TestInvocation;
-
/**
* A class to hold the metadata about the test
* @author MikeEdwards
diff --git a/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java b/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java
new file mode 100644
index 0000000000..85380a8a3a
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java
@@ -0,0 +1,65 @@
+
+package testClient;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+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="arg0" 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 = {
+ "arg0"
+})
+@XmlRootElement(name = "invokeTest")
+public class InvokeTest {
+
+ @XmlElementRef(name = "arg0", type = JAXBElement.class)
+ protected JAXBElement<String> arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setArg0(JAXBElement<String> value) {
+ this.arg0 = ((JAXBElement<String> ) value);
+ }
+
+}
diff --git a/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java b/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
new file mode 100644
index 0000000000..da02a75c1b
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
@@ -0,0 +1,65 @@
+
+package testClient;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElementRef;
+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="return" 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 = {
+ "_return"
+})
+@XmlRootElement(name = "invokeTestResponse")
+public class InvokeTestResponse {
+
+ @XmlElementRef(name = "return", type = JAXBElement.class)
+ protected JAXBElement<String> _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public JAXBElement<String> getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link JAXBElement }{@code <}{@link String }{@code >}
+ *
+ */
+ public void setReturn(JAXBElement<String> value) {
+ this._return = ((JAXBElement<String> ) value);
+ }
+
+}
diff --git a/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java b/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java
new file mode 100644
index 0000000000..33a3979826
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java
@@ -0,0 +1,71 @@
+
+package testClient;
+
+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 test 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 _InvokeTestResponseReturn_QNAME = new QName("", "return");
+ private final static QName _InvokeTestArg0_QNAME = new QName("", "arg0");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: test
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link InvokeTestResponse }
+ *
+ */
+ public InvokeTestResponse createInvokeTestResponse() {
+ return new InvokeTestResponse();
+ }
+
+ /**
+ * Create an instance of {@link InvokeTest }
+ *
+ */
+ public InvokeTest createInvokeTest() {
+ return new InvokeTest();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "", name = "return", scope = InvokeTestResponse.class)
+ public JAXBElement<String> createInvokeTestResponseReturn(String value) {
+ return new JAXBElement<String>(_InvokeTestResponseReturn_QNAME, String.class, InvokeTestResponse.class, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "", name = "arg0", scope = InvokeTest.class)
+ public JAXBElement<String> createInvokeTestArg0(String value) {
+ return new JAXBElement<String>(_InvokeTestArg0_QNAME, String.class, InvokeTest.class, value);
+ }
+
+}
diff --git a/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java b/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java
new file mode 100644
index 0000000000..328df79e8f
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java
@@ -0,0 +1,40 @@
+
+package testClient;
+
+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.1 in JDK 6
+ * Generated source version: 2.1
+ *
+ */
+@WebService(name = "TestInvocation", targetNamespace = "http://test/")
+@XmlSeeAlso({
+ ObjectFactory.class
+})
+public interface TestInvocation {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "invokeTest", targetNamespace = "http://test/", className = "testClient.InvokeTest")
+ @ResponseWrapper(localName = "invokeTestResponse", targetNamespace = "http://test/", className = "testClient.InvokeTestResponse")
+ public String invokeTest(
+ @WebParam(name = "arg0", targetNamespace = "")
+ String arg0);
+
+}
diff --git a/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java b/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java
new file mode 100644
index 0000000000..3f8af44b89
--- /dev/null
+++ b/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://test/")
+package testClient;