[ 
https://issues.apache.org/jira/browse/TUSCANY-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Becker resolved TUSCANY-2856.
---------------------------------

    Resolution: Cannot Reproduce

Was able to read and validate the following composite XML using 
JMSBindingProcessorTestCase code:
  public static final String HEADERS2 =
      "<?xml version=\"1.0\" encoding=\"ASCII\"?>" 
      + "<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\"; 
targetNamespace=\"http://binding-jms\"; name=\"binding-jms\">"
          + " <component name=\"HelloWorldComponent\">"
          + "   <implementation.java class=\"services.HelloWorld\"/>"
          + "      <service name=\"HelloWorldService\">"
          + "          <binding.jms uri=\"jms:testQueue\" >"
          + "             <headers JMSType=\"myType\" 
JMSCorrelationID=\"myCorrelId\" JMSDeliveryMode=\"PERSISTENT\" 
JMSTimeToLive=\"54321\" JMSPriority=\"5\">"
          + "                <property name=\"First prop\" type=\"string\">that 
prop</property>"
          + "                <property name=\"Second prop\" 
type=\"long\">1234567</property>"
          + "             </headers>" 
          + "          </binding.jms>"
          + "      </service>"
          + " </component>"
          + "</composite>";


Tuscany had no problem validating and returning the properties. Since this 
property read code is shared throughout the Tuscany jms.binding, I think the 
issue is caused outside of Tuscany.

> 'property' validation conflicts with osoa spec
> ----------------------------------------------
>
>                 Key: TUSCANY-2856
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2856
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA JMS Binding Extension
>    Affects Versions: Java-SCA-1.4
>         Environment: Java JMS Binding extention
>            Reporter: Christopher N. Ortiz
>            Assignee: Dan Becker
>
> The validation of 'property' element like this <property name="propName" 
> type="string">myvalue</property> produced this error:
> Element 'property' is a simple type, so it cannot have attributes, excepting 
> those whose namespace name is identical to 
> 'http://www.w3.org/2001/XMLSchema-instance' and whose [local name] is one of 
> 'type', 'nil', 'schemaLocation' or 'noNamespaceSchemaLocation'. However, the 
> attribute, 'name' was found. XMLSchema validation error occured in: null 
> ,line = -1, column = -1, Message = cvc-type.3.1.1:
> But the OSOA SCA JMS spec defines property in header element like this:
> <property name="NMTOKEN" type="NMTOKEN">*

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to