summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/samples/implementation-extension/src/test/resources')
-rw-r--r--sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Hello.wsdl4
-rw-r--r--sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Upper.wsdl4
-rw-r--r--sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/test.composite19
3 files changed, 21 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Hello.wsdl b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Hello.wsdl
index 561e560e7a..360cea5ff3 100644
--- a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Hello.wsdl
+++ b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Hello.wsdl
@@ -17,13 +17,13 @@
* specific language governing permissions and limitations
* under the License.
-->
-<wsdl:definitions targetNamespace="http://sample" xmlns:tns="http://sample"
+<wsdl:definitions targetNamespace="http://sample/hello" xmlns:tns="http://sample/hello"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="Hello">
<wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://sample"
+ <schema elementFormDefault="qualified" targetNamespace="http://sample/hello"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="hello">
<complexType>
diff --git a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Upper.wsdl b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Upper.wsdl
index 60eaec9f27..8a148bb5e8 100644
--- a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Upper.wsdl
+++ b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/Upper.wsdl
@@ -17,13 +17,13 @@
* specific language governing permissions and limitations
* under the License.
-->
-<wsdl:definitions targetNamespace="http://sample" xmlns:tns="http://sample"
+<wsdl:definitions targetNamespace="http://sample/upper" xmlns:tns="http://sample/upper"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="Upper">
<wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://sample"
+ <schema elementFormDefault="qualified" targetNamespace="http://sample/upper"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="upper">
<complexType>
diff --git a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/test.composite b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/test.composite
index 535488b74e..43a75f50a7 100644
--- a/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/test.composite
+++ b/sca-java-2.x/trunk/samples/implementation-extension/src/test/resources/test.composite
@@ -20,24 +20,39 @@
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1"
targetNamespace="http://test"
- name="test">
-
+ name="wstest">
+
+ <!-- Client test component used by the JUnit tests -->
<component name="client-test">
<t:implementation.sample class="sample.ClientTest"/>
<reference name="wello" target="wello-test"/>
<reference name="jello" target="jello-test"/>
</component>
+ <!-- HelloWorld test component that uses WSDL interfaces -->
<component name="wello-test">
<t:implementation.sample class="sample.WelloTest"/>
<reference name="upper" target="upper-test"/>
</component>
+ <!-- HelloWorld test component that uses Java interfaces -->
<component name="jello-test">
<t:implementation.sample class="sample.JelloTest"/>
<reference name="upper" target="upper-test"/>
</component>
+ <!-- HelloWorld test component that uses WSDL interfaces and SOAP Web Services -->
+ <component name="Wsello-test">
+ <t:implementation.sample class="sample.WelloTest"/>
+ <service name="Hello">
+ <binding.ws uri="http://localhost:8085/wsello"/>
+ </service>
+ <reference name="upper">
+ <binding.ws uri="http://localhost:8086/wsupper"/>
+ </reference>
+ </component>
+
+ <!-- Test component converts a string to uppercase -->
<component name="upper-test">
<t:implementation.sample class="sample.UpperTest"/>
</component>