Stan Angeloff created ODE-992:
---------------------------------

             Summary: Compiler should accept CDATA sections in 
propertyAlias/query expressions
                 Key: ODE-992
                 URL: https://issues.apache.org/jira/browse/ODE-992
             Project: ODE
          Issue Type: Improvement
          Components: BPEL Compilation/Parsing
    Affects Versions: 1.3.5
         Environment: vagrant@precise32:~$ uname -a
Linux precise32 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 
2012 i686 i686 i386 GNU/Linux
vagrant@precise32:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
            Reporter: Stan Angeloff
            Priority: Minor


Given this WSDL definition:

{code:xml}
  <vprop:property name="greetCorrelationProperty" type="xsd:string" />
  <vprop:propertyAlias
    propertyName="greet:greetCorrelationProperty"
    messageType="greet:greetMessage"
    part="parameters">
    <vprop:query 
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"><![CDATA[personName]]></vprop:query>
  </vprop:propertyAlias>

{code}

The compiler throws up an error:

{code}
java org.apache.ode.tools.bpelc.cline.BpelC: 
file:/vagrant/src/processes/Greet/Greet.wsdl:-1: error: 
[UnexpectedNodeTypeForXPath] The XPath node with value "personName" was not a 
text node.
{code}

This looks to be because a CDATA node is not a TEXT_NODE which is what is 
expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to