Am trying to read data from xml using an expression in mule but am getting the following exception java.lang.RuntimeException: org.mule.api.MuleRuntimeException: Failed to evaluate XPath expression: "//*[xpath:local-name()="oa:ID"]/text()"
The flow is given below
<flow name="testauditFlow1" doc:name="testauditFlow1">
<http:inbound-endpoint exchange-pattern="one-way"
host="localhost" port="8086" path="test" doc:name="HTTP"/>
doc:name="DOM to XML" />
<expression-component doc:name="Expression"><![CDATA[#[xpath('//*[xpath:local-name()="ID"]/text()').text]]]></expression-component>
<logger level="INFO" doc:name="Logger" />
</flow>
The xml i used is given below
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://ift.tt/sVJIaE" xmlns:soapenc="http://ift.tt/wEYywg" xmlns:xsd="http://ift.tt/tphNwY" xmlns:xsi="http://ift.tt/ra1lAU">
<soapenv:Header/>
<soapenv:Body>
<_ord:ProcessOrder releaseID="9.0" versionID="7.0.0.0" xmlns:_ord="http://ift.tt/1I4cwli" xmlns:_wcf="http://ift.tt/1CYEnFd" xmlns:oa="http://ift.tt/1I4cx8X">
<oa:ApplicationArea xsi:type="_wcf:ApplicationAreaType">
<oa:CreationDateTime>2012-08-07T13:25:01.337Z</oa:CreationDateTime>
<oa:ID>1234566</oa:ID>
<_wcf:BusinessContext/>
</oa:ApplicationArea>
</_ord:ProcessOrder>
</soapenv:Body>
</soapenv:Envelope>
No comments:
Post a Comment