Author: antelder
Date: Sun May 14 02:48:12 2006
New Revision: 406299

URL: http://svn.apache.org/viewcvs?rev=406299&view=rev
Log:
Fixes for TUSCANY-82

Added:
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/sca.module
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/helloworld.wsdl
Removed:
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/assembly/impl/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/assembly/mock/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/account/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/accountdata/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/stockquote/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/builder/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/config/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/JSComponentContextTestCase.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/invocation/mock/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/mock/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/mock/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/AccountService.wsdl
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/AccountServiceImpl.componentType
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/account/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/accountdata/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/bigbank/account/services/stockquote/
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/assembly/tests/sca.module
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/config/
Modified:
    
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoE4XScript.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoScript.java
    
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/rhino/RhinoE4XScriptTestCase.js

Modified: 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoE4XScript.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoE4XScript.java?rev=406299&r1=406298&r2=406299&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoE4XScript.java
 (original)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoE4XScript.java
 Sun May 14 02:48:12 2006
@@ -17,6 +17,7 @@
 
 import java.util.Map;
 
+import org.mozilla.javascript.Function;
 import org.mozilla.javascript.Scriptable;
 import org.mozilla.javascript.xml.XMLObject;
 
@@ -62,6 +63,11 @@
         }
     }
 
+    @Override
+    protected Function getFunction(Scriptable scope, String functionName) {
+        return super.getFunction(scope, "process");
+    }
+    
     @Override
     public RhinoE4XScript copy() {
         return new RhinoE4XScript(scriptName, script, scriptScope, 
dataBinding);

Modified: 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoScript.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoScript.java?rev=406299&r1=406298&r2=406299&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoScript.java
 (original)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/main/java/org/apache/tuscany/container/rhino/rhino/RhinoScript.java
 Sun May 14 02:48:12 2006
@@ -128,13 +128,13 @@
      *        the values by using the variable in name.
      * @return the function return value.
      */
-    public Object invoke(String functionName, Object[] arg, Class 
responseClass, Map contexts) {
+    public Object invoke(String functionName, Object[] args, Class 
responseClass, Map contexts) {
         Context cx = Context.enter();
         try {
             Function function = getFunction(scriptScope, functionName);
             Scriptable invocationScope = getInvocationScope(cx, contexts);
-            Object[] args = processArgs(functionName, arg, invocationScope);
-            Object jsResponse = function.call(cx, invocationScope, 
invocationScope, args);
+            Object[] jsArgs = processArgs(functionName, args, invocationScope);
+            Object jsResponse = function.call(cx, invocationScope, 
invocationScope, jsArgs);
             Object response = processResponse(functionName, jsResponse, 
responseClass);
             return response;
         } finally {

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,46 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.core.client.TuscanyRuntime;
+import org.osoa.sca.CurrentModuleContext;
+import org.osoa.sca.ModuleContext;
+
+/**
+ * Integration tests for JavaScript components
+ */
+public abstract class AbstractJavaScriptTestCase extends TestCase {
+
+    protected TuscanyRuntime tuscany;
+
+    protected ModuleContext moduleContext;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+
+        tuscany = new TuscanyRuntime("tests", null);
+        tuscany.start();
+        moduleContext = CurrentModuleContext.getContext();
+
+    }
+
+    @Override
+    protected void tearDown() throws Exception {
+        super.tearDown();
+        tuscany.stop();
+    }
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,27 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+/**
+ * Integration tests for JavaScript components
+ */
+public class BasicTestCase extends AbstractJavaScriptTestCase {
+
+    public void testBasicInvocation() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent1");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("jsHello petra", response);
+    }
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,29 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+/**
+ * Integration tests for JavaScript components and composite contexts
+ * 
+ * @version $Rev$ $Date$
+ */
+public class E4XTestCase extends AbstractJavaScriptTestCase {
+
+    public void testE4X() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponentE4X");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("e4xHello petra", response);
+    }
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.container.rhino.integration;
+
+/**
+ * This is the business interface of the HelloWorld service component.
+ */
+public interface HelloWorld {
+
+    public String getGreetings(String name);
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,33 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+/**
+ * Integration tests for JavaScript components
+ */
+public class InitializationTestCase extends AbstractJavaScriptTestCase {
+
+    public void testInitialization() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent4");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("Bonjour petra", response);
+    }
+
+    public void testImports1() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent5");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("Kia ora petra", response);
+    }
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,33 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+/**
+ * Integration tests for JavaScript components
+ */
+public class PropertiesTestCase extends AbstractJavaScriptTestCase {
+
+    public void testDefaultProperty() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent2a");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("Hi petra", response);
+    }
+
+    public void testOverrideProperty() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent2b");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("Guten Tag petra", response);
+    }
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,25 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.container.rhino.integration;
+
+/**
+ */
+public interface Salutation {
+
+    public String getSalutation();
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,27 @@
+/**
+ * 
+ * Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ * 
+ * Licensed 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.container.rhino.integration;
+
+/**
+ * Integration tests for JavaScript components
+ */
+public class ServiceRefsTestCase extends AbstractJavaScriptTestCase {
+
+    public void testServiceReference() throws Exception {
+        HelloWorld helloworldService = (HelloWorld) 
moduleContext.locateService("HelloWorldComponent3a");
+        String response = helloworldService.getGreetings("petra");
+        assertEquals("Guten Tag petra", response);
+    }
+
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
 Sun May 14 02:48:12 2006
@@ -0,0 +1,14 @@
+package org.apache.tuscany.container.rhino.integration;
+
+public class TestMethods {
+
+    private String salutation = "Kia ora";
+
+    public String getSalutation() {
+        return salutation;
+    }
+
+    public void getSalutation(String s) {
+        salutation = s;
+    }
+}

Modified: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/rhino/RhinoE4XScriptTestCase.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/rhino/RhinoE4XScriptTestCase.js?rev=406299&r1=406298&r2=406299&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/rhino/RhinoE4XScriptTestCase.js
 (original)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/org/apache/tuscany/container/rhino/rhino/RhinoE4XScriptTestCase.js
 Sun May 14 02:48:12 2006
@@ -1,5 +1,5 @@
 
-function getGreetings(inXML) {
+function process(inXML) {
 
    var greeting = "hello " + inXML..*::in0;
    var outXML = 

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/sca.module
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/sca.module?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/sca.module
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/sca.module
 Sun May 14 02:48:12 2006
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright (c) 2005 BEA Sytems Inc.
+  Copyright (c) 2005 International Business Machines
+
+  Licensed 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.
+ -->
+<module xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9";
+        xmlns:js="http://org.apache.tuscany/xmlns/js/0.9";
+
+        name="JavaScriptTests">
+
+    <component name="HelloWorldComponent1">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl1.js"/>
+    </component>
+    
+    <component name="HelloWorldComponent2a">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl2.js"/>
+    </component>
+
+    <component name="HelloWorldComponent2b">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl2.js"/>
+        <properties>
+            <v:salutation>Guten Tag</v:salutation>
+        </properties>
+    </component>
+
+    <component name="HelloWorldComponent3a">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl3a.js"/>
+        <references>
+            <v:SalutationService>SalutationComponent3b</v:SalutationService>
+        </references>
+    </component>
+
+    <component name="SalutationComponent3b">
+        <js:implementation.js scriptFile="tests/SalutationImpl.js"/>
+        <properties>
+            <v:GREETING>Guten Tag</v:GREETING>
+        </properties>
+    </component>
+
+    <component name="HelloWorldComponent4">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl4.js"/>
+    </component>
+
+    <component name="HelloWorldComponent5">
+        <js:implementation.js scriptFile="tests/HelloWorldImpl5.js"/>
+    </component>
+
+    <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
+    <import.wsdl wsdlLocation="wsdl/helloworld.wsdl"/>
+
+    <component name="HelloWorldComponentE4X">
+        <js:implementation.js scriptFile="tests/e4x.js"/>
+    </component>
+
+</module>

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+    </service>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,20 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+function getGreetings(name) {
+   return "jsHello " + name;
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+    </service>
+
+    <property name="salutation" type="xsd:string" default="Hi"/>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,20 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+function getGreetings(name) {
+   return salutation + " " + name;
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+    </service>
+
+    <reference name="SalutationService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.Salutation"/>
+    </reference>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,20 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+function getGreetings(name) {
+   return SalutationService.getSalutation() + " " + name;
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+    </service>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+initSalutation();
+
+function getGreetings(name) {
+   return SALUTATION + name;
+}
+
+function initSalutation() {
+   SALUTATION = "Bonjour ";
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+    </service>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,29 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+//importPackage(Packages.sample.utils);
+importClass(Packages.org.apache.tuscany.container.rhino.integration.TestMethods);
+
+initSalutation();
+
+function getGreetings(name) {
+   return SALUTATION.getSalutation() + " " + name;
+}
+
+function initSalutation() {
+   SALUTATION = new TestMethods();
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="SalutationService">
+        <interface.java 
interface="org.apache.tuscany.container.rhino.integration.Salutation"/>
+    </service>
+
+    <property name="GREETING" type="xsd:string" default="Hi"/>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,20 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+function getSalutation() {
+   return GREETING;
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
 Sun May 14 02:48:12 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+    <service name="HelloWorldService">
+        <interface.wsdl 
interface="http://integration.rhino.container.tuscany.apache.org#HelloWorld"/>
+    </service>
+
+</componentType>
\ No newline at end of file

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
 Sun May 14 02:48:12 2006
@@ -0,0 +1,28 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as 
applicable.
+ *
+ *  Licensed 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.
+ */
+
+function process(xmlIn) {
+
+   var greeting = "e4xHello " + xmlIn..*::in0;
+
+   var xmlOut = 
+      <helloworld:getGreetingsResponse 
xmlns:helloworld="http://integration.rhino.container.tuscany.apache.org";>
+          <helloworld:getGreetingsReturn> { greeting } 
</helloworld:getGreetingsReturn>
+      </helloworld:getGreetingsResponse>;   
+
+   return xmlOut;
+}

Added: 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/helloworld.wsdl
URL: 
http://svn.apache.org/viewcvs/incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/helloworld.wsdl?rev=406299&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/helloworld.wsdl
 (added)
+++ 
incubator/tuscany/java/sca/containers/container.rhino/src/test/resources/wsdl/helloworld.wsdl
 Sun May 14 02:48:12 2006
@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright (c) 2005 The Apache Software Foundation or its licensors, as 
applicable.
+
+  Licensed 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.
+ -->                              
+<wsdl:definitions 
targetNamespace="http://integration.rhino.container.tuscany.apache.org"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://integration.rhino.container.tuscany.apache.org"; 
xmlns:intf="http://helloworld.samples.tuscany.apache.org"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="helloworld">
+    <!--WSDL created by Apache Axis version: 1.2.1
+Built on Jun 14, 2005 (09:15:57 EDT)-->
+    <wsdl:types>
+        <schema elementFormDefault="qualified" 
targetNamespace="http://integration.rhino.container.tuscany.apache.org"; 
xmlns="http://www.w3.org/2001/XMLSchema";>
+            <element name="getGreetings">
+                <complexType>
+                    <sequence>
+                        <element name="in0" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+            <element name="getGreetingsResponse">
+                <complexType>
+                    <sequence>
+                        <element name="getGreetingsReturn" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="getGreetingsRequest">
+
+        <wsdl:part element="impl:getGreetings" name="parameters"/>
+
+    </wsdl:message>
+
+    <wsdl:message name="getGreetingsResponse">
+
+        <wsdl:part element="impl:getGreetingsResponse" name="parameters"/>
+
+    </wsdl:message>
+
+    <wsdl:portType name="HelloWorld">
+
+        <wsdl:operation name="getGreetings">
+
+            <wsdl:input message="impl:getGreetingsRequest" 
name="getGreetingsRequest"/>
+
+            <wsdl:output message="impl:getGreetingsResponse" 
name="getGreetingsResponse"/>
+
+        </wsdl:operation>
+
+    </wsdl:portType>
+
+    <wsdl:binding name="helloworldSoapBinding" type="impl:HelloWorld">
+
+        <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+
+        <wsdl:operation name="getGreetings">
+
+            <wsdlsoap:operation soapAction=""/>
+
+            <wsdl:input name="getGreetingsRequest">
+
+                <wsdlsoap:body use="literal"/>
+
+            </wsdl:input>
+
+            <wsdl:output name="getGreetingsResponse">
+
+                <wsdlsoap:body use="literal"/>
+
+            </wsdl:output>
+
+        </wsdl:operation>
+
+    </wsdl:binding>
+
+    <wsdl:service name="HelloWorldServiceImplService">
+
+        <wsdl:port binding="impl:helloworldSoapBinding" name="helloworld">
+
+            <wsdlsoap:address 
location="http://localhost:8080/helloworldws-SNAPSHOT/services/HelloWorldService"/>
+
+        </wsdl:port>
+
+    </wsdl:service>
+
+</wsdl:definitions>


Reply via email to