diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-02 23:12:00 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-02 23:12:00 +0000 |
commit | abefe1a37b0e9ca6bee2543dc1a97e3cf72da85f (patch) | |
tree | ff33d0f60ed118497e2532a3a27330c5fc7ed692 /sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources | |
parent | df2617e39498f4d74a239f845e7f86e4017d529d (diff) |
Add a SOAP Web service binding and a test case for it. Minor cleanup, remove redundant test case and refactor test WSDL namespaces.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@992150 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
3 files changed, 21 insertions, 6 deletions
diff --git a/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Hello.wsdl b/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Hello.wsdl index 561e560e7a..360cea5ff3 100644 --- a/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Hello.wsdl +++ b/sandbox/sebastien/java/embed/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/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Upper.wsdl b/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Upper.wsdl index 60eaec9f27..8a148bb5e8 100644 --- a/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/Upper.wsdl +++ b/sandbox/sebastien/java/embed/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/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/test.composite b/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/test.composite index 535488b74e..43a75f50a7 100644 --- a/sandbox/sebastien/java/embed/samples/implementation-extension/src/test/resources/test.composite +++ b/sandbox/sebastien/java/embed/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> |