You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Mike Edwards (JIRA)" <de...@tuscany.apache.org> on 2009/11/05 12:29:32 UTC
[jira] Commented: (TUSCANY-3339) Tuscany fixes to make ASM_12003
work
[ https://issues.apache.org/jira/browse/TUSCANY-3339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773898#action_12773898 ]
Mike Edwards commented on TUSCANY-3339:
---------------------------------------
OK, so the fundamental problems with the OASIS test artifacts are these:
1) As written, Test_ASM_12003.composite is intended to use Service1b.wsdl, which are both contained in the ASM_12003 contribution. However, Test_ASM_12003.composite refers only to interfaces that are in the http://test.sca.oasisopen.org namespace and that is imported (actually resolves to the General contribution)
2) Service1b.wsdl is declared in http://test.sca.oasisopen.org/, but this namespace is well resolved by SCA means
So parallel changes are needed:
a) Change the final interface.wsdl in Test_ASM_12003.composite to use namespace http://test2.sca.oasisopen.org/
b) Change Service1b.wsdl to be declared in http://test2.sca.oasisopen.org/ and make the schemaLocation apply to this namespace (for which there are no XSD artifacts at all)
> Tuscany fixes to make ASM_12003 work
> ------------------------------------
>
> Key: TUSCANY-3339
> URL: https://issues.apache.org/jira/browse/TUSCANY-3339
> Project: Tuscany
> Issue Type: Bug
> Components: OASIS Compliance - OASIS
> Affects Versions: Java-SCA-2.0-M3
> Environment: All
> Reporter: Simon Laws
> Fix For: Java-SCA-2.0-M4
>
>
> The service1b.wsdl and Test_ASM_12003.composite needs to change as shown below.
> Index: Service1b.wsdl
> ===================================================================
> --- Service1b.wsdl (revision 372)
> +++ Service1b.wsdl (working copy)
> @@ -6,17 +6,18 @@
> *
> -->
> <wsdl:definitions name="Service1Service"
> -targetNamespace="http://test.sca.oasisopen.org/"
> -xmlns:tns="http://test.sca.oasisopen.org/"
> +targetNamespace="http://test2.sca.oasisopen.org/"
> +xmlns:tns="http://test2.sca.oasisopen.org/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> -xsi:schemaLocation="http://test.sca.oasisopen.org/
> - http://www.oasis-open.org/committees/download.php/32378/Service1z.xsd" >
> +xsi:schemaLocation="http://test2.sca.oasisopen.org/
> + http://www.springframework.org/schema/sca/spring-sca.xsd">
> <!-- Above schemaLocation is bogus - no such file exists -->
> - <wsdl:message name="operation1Response">
> +
> + <wsdl:message name="operation1Response">
> <wsdl:part name="operation1Response" element="tns:operation1Response">
> </wsdl:part>
> </wsdl:message>
> Index: Test_ASM_12003.composite
> ===================================================================
> --- Test_ASM_12003.composite (revision 372)
> +++ Test_ASM_12003.composite (working copy)
> @@ -1,38 +1,38 @@
> -<?xml version="1.0" encoding="UTF-8"?>
> -<!--
> - *
> - * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
> - * OASIS trademark, IPR and other policies apply.
> - *
> --->
> -<!--
> -Tests that where a WSDL document references its schema using @schemaLocation attribute
> -(schema artifact specific artifact resolution mechanism), that this is used to resolve
> -the schema rather than SCA mechanisms.
> --->
> -<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
> - targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
> - xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
> +<?xml version="1.0" encoding="UTF-8"?>
> +<!--
> + *
> + * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
> + * OASIS trademark, IPR and other policies apply.
> + *
> +-->
> +<!--
> +Tests that where a WSDL document references its schema using @schemaLocation attribute
> +(schema artifact specific artifact resolution mechanism), that this is used to resolve
> +the schema rather than SCA mechanisms.
> +-->
> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
> + targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
> + xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
> name="TEST_ASM_12003">
> -
> +
> <component name="TestClient">
> <implementation.composite name="test:TestClient_0002"/>
> <service name="TestInvocation">
> - <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
> + <interface.wsdl interface="http://test2.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
> <binding.ws/>
> </service>
> - <reference name="reference1" target="TestComponent1/Service1" >
> - <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> + <reference name="reference1" target="TestComponent1/Service1" >
> + <interface.wsdl interface="http://test2.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> </reference>
> <property name="testName">ASM_12003</property>
> </component>
> -
> - <component name="TestComponent1">
> - <implementation.composite name="test:TestComposite1"/>
> +
> + <component name="TestComponent1">
> + <implementation.composite name="test:TestComposite1"/>
> <service name="Service1">
> - <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> - </service>
> - <property name="serviceName">service1</property>
> - </component>
> -
> -</composite>
> + <interface.wsdl interface="http://test2.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
> + </service>
> + <property name="serviceName">service1</property>
> + </component>
> +
> +</composite>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.