← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [sca-assembly] [NEW ISSUE] - Assembly test composites have propertytypes that are intended to be XSD simple types but are in the OASISnamespace

From
Mike Edwards <>
Date
2010-05-04T09:37:52+00:00
ID
Thread
Re: [sca-assembly] [NEW ISSUE] - Assembly test composites have propertytypes that are intended to be XSD simple types but are in the OASISnamespace
Logged as:  http://www.osoa.org/jira/browse/ASSEMBLY-230

Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.

Co Chair OASIS SCA Assembly TC.

IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.

Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  

Email:  

From:
Simon Laws/UK/IBM@IBMGB

To:


Date:
30/04/2010 19:09

Subject:
[sca-assembly] [NEW ISSUE] - Assembly
test composites have property types that are intended to be  XSD simple
types but are in the OASIS namespace

Raiser:               Simon
Laws 

Target:                SCA Assembly
Test Suite  

Description: 

Where a property type attribute is included with a simple type the type
is generally given in the OASIS namespace rather than the XSD namespace.
For example, ASM_5038/Test_ASM_5038.composite 

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"

           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"

           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"

           name="TEST_ASM_5038">

            

    <component name="TestClient">

                <implementation.composite
name="test:TestClient_0002"/> 

                <service name="TestInvocation">

                    
   <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>

            <binding.ws/>

                </service>

        <reference name="reference1" target="TEST_ASM_5038Component1/Service1"
/> 

        <property name="testName">ASM_5005</property>

    </component> 

    <component name="TEST_ASM_5038Component1">

                <implementation.composite
name="test:TestComposite73"/> 

        <service name="Service1">

                <interface.wsdl
interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>

        </service> 

        <property name="serviceName">service1</property>

        <!-- Invalid property element - @value content
is not of the declared type of the property--> 

        <property name="serviceData1"
type="float" value="abcd"/>

    </component> 

    

</composite> 

The line 

<property name="serviceData1" type="float" value="abcd"/>

Specifies the type float in the OASIS namespace. 

Proposal: 

Change any such type declarations in the test composites to refer to simple
types in the XSD namespace, in the case of ASM_5038 this composite is changed
to read as follows: 

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"

           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"

           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"

[1]           xmlns:xsd="http://www.w3.org/2001/XMLSchema"

           name="TEST_ASM_5038">

            

    <component name="TestClient">

                <implementation.composite
name="test:TestClient_0002"/> 

                <service name="TestInvocation">

                    
   <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>

            <binding.ws/>

                </service>

        <reference name="reference1" target="TEST_ASM_5038Component1/Service1"
/> 

        <property name="testName">ASM_5005</property>

    </component> 

    <component name="TEST_ASM_5038Component1">

                <implementation.composite
name="test:TestComposite73"/> 

        <service name="Service1">

                <interface.wsdl
interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>

        </service> 

        <property name="serviceName">service1</property>

        <!-- Invalid property element - @value content
is not of the declared type of the property--> 

[2]        <property name="serviceData1"
type="xsd:float" value="abcd"/>

    </component> 

    

</composite> 

I added the line marked [1] and changed the line marked [2]. 

A rough search picked up another 173 places affected by this across the
various Assembly test cases. 

Regards

Simon

Simon Laws

Open Source SOA Development

tuscany.apache.org

Mail Point 146, Hursley Park, Winchester, Hampshire, SO21 2JN

Tel: Internal 248708  External +44 (0)1962 818708

Email: 

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number
741598. 

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU 

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number
741598. 

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
← Prev in month ← Prev in thread
Next in thread → Next in month →