OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-policy message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [sca-policy] Issue in Assembly test suite



I have made the appropriate changes for C++ and C

Bryan Aupperle, Ph.D.
STSM, WebSphere Enterprise Platform Software Solution Architect

Research Triangle Park,  NC
+1 919-254-7508 (T/L 444-7508)
Internet Address: aupperle@us.ibm.com



From: David Booz/Poughkeepsie/IBM@IBMUS
To: sca-policy@lists.oasis-open.org
Date: 04/30/2010 04:22 PM
Subject: [sca-policy] Issue in Assembly test suite






Policy folks,

In case anyone is also on the Assembly TC mailing list and was wondering if
the Policy test suite had the same problem....it used to.

There was a problem found in the Assembly test suite which has been
documented in the attached email.  The foundation of the Policy test suite
is derived from the  Assembly test suite, and as a result exhibits the
problem described below.  Well, it used to anyway.  Since the Policy test
suite has never been reviewed by the TC and has never been through a CD or
public review cycle, I don't believe it is necessary to open issues against
it when problems are found.  The test suite is in a state of "under
development".  As a result, I've located the problems and fixed them in the
Policy_General_Java contribution, the change affected 5 files.  I have NOT
FIXED the same problems in the C and CPP contributions.  Bryan, I'm happy
to make the same changes but wanted to respect your implicit ownership of
those files.


Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093  or  8-295-6093
e-mail:booz@us.ibm.com
----- Forwarded by David Booz/Poughkeepsie/IBM on 04/30/2010 04:10 PM -----
|------------>
| From:      |
|------------>
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |Simon Laws <simon_laws@uk.ibm.com>                                                                                                                |
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |sca-assembly@lists.oasis-open.org                                                                                                                 |
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
 |04/30/2010 02:09 PM                                                                                                                               |
 >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| 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: simon_laws@uk.ibm.com







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











---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]