You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/02/24 19:22:01 UTC

svn commit: r511319 [2/2] - in /incubator/tuscany/branches/sca-java-integration: samples/sca/bigbank/src/main/resources/ samples/sca/bigbank/src/main/resources/META-INF/sca/ samples/sca/bigbank/src/test/java/bigbank/ samples/sca/calculator/src/main/jav...

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/itest/WSBindingsClientTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/itest/WSBindingsClientTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,28 @@
+package org.apache.tuscany.sca.util;
+
+
+
+import java.io.IOException;
+import java.net.Socket;
+
+import org.apache.tuscany.test.SCATestCase;
+
+public class SCATestUtilityServerTestCase extends SCATestCase {
+	
+	@Override
+	protected void setUp() throws Exception {
+		setSystemSCDL("bindingsutility-system.composite");
+		setApplicationSCDL("bindingsutility.composite");
+		super.setUp();
+	}
+	
+	public void testPing() throws IOException {
+		new Socket("127.0.0.1", 8081);
+	}
+	
+	@Override
+	protected void tearDown() throws Exception {
+		super.tearDown();
+	}
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsclient/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/pom.xml?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/pom.xml Sat Feb 24 10:21:58 2007
@@ -27,11 +27,16 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.tuscany.testing.bindingstest</groupId>
-    <artifactId>iTest-Bindings-bindingscomposite</artifactId>
+    <artifactId>tuscany-itest-bindings-bindingscomposite</artifactId>
     <packaging>jar</packaging>
     <name>SCA FVT Bindings Test Tool Service Composite</name>
 
     <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+            <artifactId>databinding-sdo</artifactId>
+            <version>0.1-integration-incubating-SNAPSHOT</version>
+        </dependency>
 
         <dependency>
             <groupId>commonj</groupId>

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,28 @@
+package org.apache.tuscany.sca.itest;
+
+
+import java.io.IOException;
+
+import org.apache.tuscany.api.SCAContainer;
+
+public class SCATestToolServer {
+
+	/**
+	 * @param args
+	 */
+	public static void main(String[] args) {
+		
+		SCAContainer.start("bindingscomposite-system.composite", "bindingscomposite.composite");
+		
+		try {
+			System.out.println("SCATestTool server started");
+			System.in.read();
+		} catch (IOException e) {
+			e.printStackTrace();
+		}
+		
+		SCAContainer.stop();
+		System.out.println("SCATestTool server stopped");
+	}
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite-system.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite-system.composite?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite-system.composite (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite-system.composite Sat Feb 24 10:21:58 2007
@@ -0,0 +1,36 @@
+<?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.    
+-->
+<!--
+    Tuscany system configuration.
+    
+    $Rev$ $Date$
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="system">
+
+    <include name="default-system"
+        scdlResource="META-INF/tuscany/default-system.composite" />
+
+    <component name="httpserver">
+        <t:implementation.system class="org.apache.tuscany.service.jetty.JettyServiceImpl" />
+        <property name="httpPort">8080</property>
+    </component>
+
+</composite>

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite-system.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite Sat Feb 24 10:21:58 2007
@@ -0,0 +1,49 @@
+<?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.
+-->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+    xmlns:v="http://www.osoa.org/xmlns/sca/values/1.0" xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0"
+    name="bindingscomposite">
+
+    <dbsdo:import.sdo location="wsdl/testtool.wsdl" />
+    <dbsdo:import.sdo location="wsdl/testutility.wsdl" />
+
+    <service name="SCATestToolWSService">
+        <interface.wsdl interface="http://scatesttool.scabeta1fvt#wsdl.interface(SCATestToolService)"
+            wsdli:wsdlLocation="http://scatesttool.scabeta1fvt wsdl/testtool.wsdl" />
+        <reference>SCATestToolWSServiceComponent</reference>
+        <binding.ws endpoint="http://scatesttool.scabeta1fvt#wsdl.endpoint(SCATestToolService/SCATestToolServiceSoapPort)"
+            location="wsdl/testtool.wsdl" uri="testtool" />
+    </service>
+
+    <component name="SCATestToolWSServiceComponent">
+        <implementation.java class="org.apache.tuscany.sca.itest.SCATestToolServiceImpl" />
+        <reference name="scaTestUtil">SCATestUtilityWSReference</reference>
+    </component>
+
+    <reference name="SCATestUtilityWSReference">
+        <interface.java interface="org.apache.tuscany.sca.util.SCATestUtilityService" />
+        <binding.ws endpoint="http://scatestutil.scabeta1fvt#wsdl.endpoint(SCATestUtilityService/SCATestUtilityServiceSoapPort)"
+            location="wsdl/testutility.wsdl" />
+    </reference>
+
+
+</composite>
+

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/bindingscomposite.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testtool.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testtool.wsdl?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testtool.wsdl (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testtool.wsdl Sat Feb 24 10:21:58 2007
@@ -263,7 +263,7 @@
 
     <wsdl:service name="SCATestToolService">
         <wsdl:port binding="tns:SCATestToolServiceSoapBinding" name="SCATestToolServiceSoapPort">
-            <wsdlsoap:address location="http://localhost:8080/bindingscomposite-SNAPSHOT/services/SCATestToolWSService" />
+            <wsdlsoap:address location="http://localhost:8080/services/SCATestToolWSService" />
 
         </wsdl:port>
 

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testutility.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testutility.wsdl?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testutility.wsdl (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/main/resources/wsdl/testutility.wsdl Sat Feb 24 10:21:58 2007
@@ -695,7 +695,7 @@
 
     <wsdl:service name="SCATestUtilityService">
         <wsdl:port binding="tns:SCATestUtilityServiceSoapBinding" name="SCATestUtilityServiceSoapPort">
-            <wsdlsoap:address location="http://localhost:8080/testutil/services/SCATestUtilityWSService" />
+            <wsdlsoap:address location="http://localhost:8081/services/SCATestUtilityWSService" />
 
         </wsdl:port>
 

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,27 @@
+package org.apache.tuscany.sca.itest;
+
+
+import java.io.IOException;
+import java.net.Socket;
+
+import org.apache.tuscany.test.SCATestCase;
+
+public class SCATestToolServerTestCase extends SCATestCase {
+	
+	@Override
+	protected void setUp() throws Exception {
+		setSystemSCDL("bindingscomposite-system.composite");
+		setApplicationSCDL("bindingscomposite.composite");
+		super.setUp();
+	}
+	
+	public void testPing() throws IOException {
+		new Socket("127.0.0.1", 8080);
+	}
+	
+	@Override
+	protected void tearDown() throws Exception {
+		super.tearDown();
+	}
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/pom.xml?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/pom.xml Sat Feb 24 10:21:58 2007
@@ -28,11 +28,17 @@
 
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.tuscany.testing.bindingstest</groupId>
-    <artifactId>iTest-Bindings-bindingsutility</artifactId>
+    <artifactId>tuscany-itest-bindings-bindingsutility</artifactId>
     <packaging>jar</packaging>
     <name>SCA FVT Bindings Test Tool Utility Composite</name>
 
     <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+            <artifactId>databinding-sdo</artifactId>
+            <version>0.1-integration-incubating-SNAPSHOT</version>
+        </dependency>
+
         <dependency>
             <groupId>commonj</groupId>
             <artifactId>sdo-api-r2.1</artifactId>

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,28 @@
+package org.apache.tuscany.sca.util;
+
+
+import java.io.IOException;
+
+import org.apache.tuscany.api.SCAContainer;
+
+public class SCATestUtilityServer {
+
+	/**
+	 * @param args
+	 */
+	public static void main(String[] args) {
+		
+		SCAContainer.start("bindingsutility-system.composite", "bindingsutility.composite");
+		
+		try {
+			System.out.println("SCATestUtility server started");
+			System.in.read();
+		} catch (IOException e) {
+			e.printStackTrace();
+		}
+		
+		SCAContainer.stop();
+		System.out.println("SCATestUtility server stopped");
+	}
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityServer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility-system.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility-system.composite?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility-system.composite (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility-system.composite Sat Feb 24 10:21:58 2007
@@ -0,0 +1,36 @@
+<?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.    
+-->
+<!--
+    Tuscany system configuration.
+    
+    $Rev$ $Date$
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="system">
+
+    <include name="default-system"
+        scdlResource="META-INF/tuscany/default-system.composite" />
+
+    <component name="httpserver">
+        <t:implementation.system class="org.apache.tuscany.service.jetty.JettyServiceImpl" />
+        <property name="httpPort">8081</property>
+    </component>
+
+</composite>

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility-system.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility.composite?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility.composite (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility.composite Sat Feb 24 10:21:58 2007
@@ -0,0 +1,39 @@
+<?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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+    xmlns:v="http://www.osoa.org/xmlns/sca/values/1.0"
+	xmlns:dbsdo="http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0"
+    name="bindingsutility">
+
+    <dbsdo:import.sdo location="wsdl/testutility.wsdl" />
+
+    <service name="SCATestUtilityWSService">
+        <interface.wsdl interface="http://scatestutil.scabeta1fvt#wsdl.interface(SCATestUtilityService)"
+            wsdli:wsdlLocation="http://scatestutil.scabeta1fvt wsdl/testutility.wsdl" />
+        <reference>SCATestUtilityWSServiceComponent</reference>
+        <binding.ws endpoint="http://scatestutil.scabeta1fvt#wsdl.endpoint(SCATestUtilityService/SCATestUtilityServiceSoapPort)"
+            location="wsdl/testutility.wsdl" uri="testutil" />
+    </service>
+
+    <component name="SCATestUtilityWSServiceComponent">
+        <implementation.java class="org.apache.tuscany.sca.util.SCATestUtilityServiceImpl" />
+    </component>
+</composite>
+

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/bindingsutility.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/wsdl/testutility.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/wsdl/testutility.wsdl?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/wsdl/testutility.wsdl (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/main/resources/wsdl/testutility.wsdl Sat Feb 24 10:21:58 2007
@@ -695,7 +695,7 @@
 
     <wsdl:service name="SCATestUtilityService">
         <wsdl:port binding="tns:SCATestUtilityServiceSoapBinding" name="SCATestUtilityServiceSoapPort">
-            <wsdlsoap:address location="http://localhost:8080/testtool/services/SCATestUtilityService" />
+            <wsdlsoap:address location="http://localhost:8081/services/SCATestUtilityWSService" />
 
         </wsdl:port>
 

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,27 @@
+package org.apache.tuscany.sca.util;
+
+
+import java.io.IOException;
+import java.net.Socket;
+
+import org.apache.tuscany.test.SCATestCase;
+
+public class SCATestUtilityServerTestCase extends SCATestCase {
+	
+	@Override
+	protected void setUp() throws Exception {
+		setSystemSCDL("bindingsutility-system.composite");
+		setApplicationSCDL("bindingsutility.composite");
+		super.setUp();
+	}
+	
+	public void testPing() throws IOException {
+		new Socket("127.0.0.1", 8081);
+	}
+	
+	@Override
+	protected void tearDown() throws Exception {
+		super.tearDown();
+	}
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/bindingsTest/bindingsutility/src/test/java/org/apache/tuscany/sca/util/SCATestUtilityServerTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java?view=auto&rev=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java (added)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java Sat Feb 24 10:21:58 2007
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.databinding.sample;
+
+import static org.easymock.EasyMock.createMock;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.replay;
+
+import java.io.StringReader;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import org.apache.tuscany.databinding.jaxb.JAXBContextHelper;
+import org.apache.tuscany.databinding.jaxb.Reader2JAXB;
+import org.apache.tuscany.databinding.sdo.String2DataObject;
+//import org.apache.tuscany.databinding.xmlbeans.XMLStreamReader2XmlObject;
+import org.apache.tuscany.spi.databinding.TransformationContext;
+import org.apache.tuscany.spi.model.DataType;
+import org.apache.tuscany.test.SCATestCase;
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.CurrentCompositeContext;
+
+import com.example.ipo.jaxb.PurchaseOrderType;
+//import com.example.ipo.xmlbeans.PurchaseOrderDocument;
+import commonj.sdo.DataObject;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class DataBindingBootStrapTestCase extends SCATestCase {
+    private static final String IPO_XML =
+        "<?xml version=\"1.0\"?>" + "<ipo:purchaseOrder"
+            + "  xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""
+            + "  xmlns:ipo=\"http://www.example.com/IPO\""
+            + "  xsi:schemaLocation=\"http://www.example.com/IPO ipo.xsd\""
+            + "  orderDate=\"1999-12-01\">"
+            + "  <shipTo exportCode=\"1\" xsi:type=\"ipo:UKAddress\">"
+            + "    <name>Helen Zoe</name>"
+            + "    <street>47 Eden Street</street>"
+            + "    <city>Cambridge</city>"
+            + "    <postcode>CB1 1JR</postcode>"
+            + "  </shipTo>"
+            + "  <billTo xsi:type=\"ipo:USAddress\">"
+            + "    <name>Robert Smith</name>"
+            + "    <street>8 Oak Avenue</street>"
+            + "    <city>Old Town</city>"
+            + "    <state>PA</state>"
+            + "    <zip>95819</zip>"
+            + "  </billTo>"
+            + "  <items>"
+            + "    <item partNum=\"833-AA\">"
+            + "      <productName>Lapis necklace</productName>"
+            + "      <quantity>1</quantity>"
+            + "      <USPrice>99.95</USPrice>"
+            + "      <ipo:comment>Want this for the holidays</ipo:comment>"
+            + "      <shipDate>1999-12-05</shipDate>"
+            + "    </item>"
+            + "  </items>"
+            + "</ipo:purchaseOrder>";
+
+    private Client client;
+    private String contextPath = "com.example.ipo.jaxb";
+
+    @SuppressWarnings("unchecked")
+    public void testDataBindingBootstrap() throws Exception {
+        DataType targetDataType = new DataType<Class>(Object.class, null);
+        targetDataType.setMetadata(JAXBContextHelper.JAXB_CONTEXT_PATH, contextPath);
+        TransformationContext tContext = createMock(TransformationContext.class);
+        expect(tContext.getTargetDataType()).andReturn(targetDataType).anyTimes();
+        replay(tContext);
+
+        String2DataObject t1 = new String2DataObject();
+        DataObject po1 = t1.transform(IPO_XML, null);
+        client.call(po1);
+
+//        XMLStreamReader reader =
+//            XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(IPO_XML));
+//        XMLStreamReader2XmlObject t2 = new XMLStreamReader2XmlObject();
+//        PurchaseOrderDocument po2 = (PurchaseOrderDocument)t2.transform(reader, null);
+//        client.call(po2.getPurchaseOrder());
+
+        Reader2JAXB t3 = new Reader2JAXB();
+        JAXBElement<PurchaseOrderType> po3 =
+            (JAXBElement<PurchaseOrderType>)t3.transform(new StringReader(IPO_XML), tContext);
+        client.call(po3.getValue());
+
+    }
+
+    protected void setUp() throws Exception {
+        setApplicationSCDL(getClass(), "META-INF/sca/default.scdl");
+        addExtension("test-extensions", getClass().getClassLoader()
+            .getResource("META-INF/tuscany/test-extensions.scdl"));
+        super.setUp();
+        CompositeContext context = CurrentCompositeContext.getContext();
+        client = context.locateService(Client.class, "Client");
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/databinding/src/test/java/org/apache/tuscany/databinding/sample/DataBindingBootStrapTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/pom.xml?view=diff&rev=511319&r1=511318&r2=511319
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/pom.xml Sat Feb 24 10:21:58 2007
@@ -51,7 +51,6 @@
 	        <module>callBackSetCallbackConvTest</module>
 	        <module>conversationsTest</module>
                 <module>bindingsTest</module>
-                <module>databinding</module>
             </modules>
         </profile>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org