Author: edwardsmj
Date: Thu Dec 18 08:07:23 2008
New Revision: 727758

URL: http://svn.apache.org/viewvc?rev=727758&view=rev
Log:
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

Added:
    tuscany/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl
    
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java
      - copied, changed from r725975, 
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java
    tuscany/java/sca/stest/sampleTest/src/test/java/testClient/
    tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java
    tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java
Removed:
    tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java
Modified:
    tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java
    tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java
    tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java
    tuscany/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java
    tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite
    tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite
    tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite
    
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java
    tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java
    
tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java 
(original)
+++ tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0001_Client.java 
Thu Dec 18 08:07:23 2008
@@ -2,6 +2,8 @@
 
 import org.osoa.sca.annotations.Service;
 
+import test.TestInvocation;
+
 /**
  * Basic test initiation class
  * @author MikeEdwards

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java 
(original)
+++ tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0002_Client.java 
Thu Dec 18 08:07:23 2008
@@ -4,6 +4,8 @@
 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

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java 
(original)
+++ tuscany/java/sca/stest/sampleTest/src/main/java/test/ASM_0003_Client.java 
Thu Dec 18 08:07:23 2008
@@ -4,6 +4,8 @@
 import org.osoa.sca.annotations.Reference;
 import org.osoa.sca.annotations.Property;
 
+import test.TestInvocation;
+
 import java.util.List;
 
 /**

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java 
(original)
+++ tuscany/java/sca/stest/sampleTest/src/main/java/test/TestInvocation.java 
Thu Dec 18 08:07:23 2008
@@ -1,5 +1,7 @@
 package test;
 
+import javax.jws.WebService;
+import javax.jws.WebMethod;
 import org.osoa.sca.annotations.Remotable;
 
 /**
@@ -15,6 +17,7 @@
         * @param input - input parameter(s) as a String
         * @return - output data as a String
         */
+       @WebMethod
        public String invokeTest( String input );
 
 }

Added: tuscany/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl?rev=727758&view=auto
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl (added)
+++ tuscany/java/sca/stest/sampleTest/src/main/resources/TestClient.wsdl Thu 
Dec 18 08:07:23 2008
@@ -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>

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0002.composite 
Thu Dec 18 08:07:23 2008
@@ -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>

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0003.composite 
Thu Dec 18 08:07:23 2008
@@ -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>

Modified: 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/main/resources/Test_ASM_0004.composite 
Thu Dec 18 08:07:23 2008
@@ -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>

Modified: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0002_TestCase.java 
Thu Dec 18 08:07:23 2008
@@ -20,12 +20,12 @@
 
 
 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() {

Modified: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0003_TestCase.java 
Thu Dec 18 08:07:23 2008
@@ -20,12 +20,12 @@
 
 
 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() {

Modified: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0004_TestCase.java 
Thu Dec 18 08:07:23 2008
@@ -20,12 +20,12 @@
 
 
 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() {

Copied: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java 
(from r725975, 
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java)
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java?p2=tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java&p1=tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java&r1=725975&r2=727758&rev=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTest.java 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java 
Thu Dec 18 08:07:23 2008
@@ -20,6 +20,9 @@
 
 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.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 @@
        // 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 ) {

Modified: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java 
(original)
+++ tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java 
Thu Dec 18 08:07:23 2008
@@ -27,7 +27,6 @@
 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 @@
        // 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");

Modified: 
tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java?rev=727758&r1=727757&r2=727758&view=diff
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java 
(original)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java 
Thu Dec 18 08:07:23 2008
@@ -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

Added: 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java?rev=727758&view=auto
==============================================================================
--- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java 
(added)
+++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java 
Thu Dec 18 08:07:23 2008
@@ -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);
+    }
+
+}

Added: 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java?rev=727758&view=auto
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
 (added)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java
 Thu Dec 18 08:07:23 2008
@@ -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);
+    }
+
+}

Added: 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java?rev=727758&view=auto
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java 
(added)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java 
Thu Dec 18 08:07:23 2008
@@ -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);
+    }
+
+}

Added: 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java?rev=727758&view=auto
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java 
(added)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java 
Thu Dec 18 08:07:23 2008
@@ -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);
+
+}

Added: 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java?rev=727758&view=auto
==============================================================================
--- 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java 
(added)
+++ 
tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java 
Thu Dec 18 08:07:23 2008
@@ -0,0 +1,2 @@
[email protected](namespace = "http://test/";)
+package testClient;


Reply via email to