Author: antelder
Date: Tue May  9 10:37:11 2006
New Revision: 405479

URL: http://svn.apache.org/viewcvs?rev=405479&view=rev
Log:
Fix for TUSCANY-316

Modified:
    incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/pom.xml
    
incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java

Modified: 
incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/pom.xml
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/pom.xml?rev=405479&r1=405478&r2=405479&view=diff
==============================================================================
--- incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/pom.xml 
(original)
+++ incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/pom.xml 
Tue May  9 10:37:11 2006
@@ -75,7 +75,7 @@
                     <execution>
                         <configuration>
                             
<wsdlFile>${basedir}/src/main/resources/wsdl/interoptestdoclit.wsdl</wsdlFile>
-                            <javaPackage>org.soapinterop</javaPackage>
+                            
<javaPackage>org.soapinterop.wsdl.interop.test.doc.lit</javaPackage>
                         </configuration>
                         <goals>
                             <goal>generate</goal>

Modified: 
incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java?rev=405479&r1=405478&r2=405479&view=diff
==============================================================================
--- 
incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java
 (original)
+++ 
incubator/tuscany/java/testing/interop/clients/webserviceSOAPRound2/src/test/java/org/apache/tuscany/test/interop/client/InteropTestDocLitTestCase.java
 Tue May  9 10:37:11 2006
@@ -17,13 +17,17 @@
 package org.apache.tuscany.test.interop.client;
 
 import java.rmi.RemoteException;
+import java.util.Arrays;
+import java.util.List;
 
 import junit.framework.TestCase;
 
 import org.apache.tuscany.core.client.TuscanyRuntime;
 import org.osoa.sca.CurrentModuleContext;
-import org.soapinterop.WSDLInteropTestDocLitPortType;
+import org.soapinterop.wsdl.interop.test.doc.lit.WSDLInteropTestDocLitPortType;
+import org.soapinterop.xsd.ArrayOfstring_literal;
 import org.soapinterop.xsd.SOAPStruct;
+import org.soapinterop.xsd.XsdPackage;
 
 import commonj.sdo.helper.DataFactory;
 
@@ -69,10 +73,21 @@
      * @return
      */
        protected WSDLInteropTestDocLitPortType locateInteropDocService() {
-        return 
(WSDLInteropTestDocLitPortType)CurrentModuleContext.getContext().locateService("RemoteInteropDocServiceComponent");
+        Object o = 
CurrentModuleContext.getContext().locateService("RemoteInteropDocService");
+        Class[] ifaces = o.getClass().getInterfaces();
+        return (WSDLInteropTestDocLitPortType) o;
     }
        
-       /**
+    /**
+     * test echo void
+     * @throws RemoteException
+     */
+    public void testEchoVoid() throws RemoteException {
+        doc.echoVoid();
+        assertTrue(true);
+    }
+
+    /**
         * test echo string
         * @throws RemoteException
         */
@@ -82,6 +97,25 @@
                assertEquals(input, output);
        }
                
+    /**
+     * test echo string
+     * @throws RemoteException
+     */
+    public void testEchoStringArray() throws RemoteException {
+
+        ArrayOfstring_literal 
input=(ArrayOfstring_literal)dataFactory.create(ArrayOfstring_literal.class);
+        List inStrings = Arrays.asList(new String[] {"petra", "sue"});
+        input.set(XsdPackage.ARRAY_OFSTRING_LITERAL__STRING, inStrings);
+
+        ArrayOfstring_literal output = doc.echoStringArray(input);
+         
+        List outStrings = output.getString();         
+        assertNotNull(outStrings);
+        assertEquals(2, outStrings.size());
+        assertEquals("petra", outStrings.get(0));
+        assertEquals("sue", outStrings.get(1));
+    }
+        
        /**
         * test echo struct
         * @throws RemoteException


Reply via email to