ContentBasedRouter with XPath expressions does not work if input contains namespace declarations in SOA-P 5

Solution Unverified - Updated -


  • When the input document contains namespace declarations, the XPath ContentBasedRouter does not work.
  • Using the following SOAP message XML input:
<order xmlns:orderinput="http://localhost/demo/orderinput" xmlns:soapenv="">
  • Using the following Xpath CBR:
<action class="org.jboss.soa.esb.actions.ContentBasedRouter"
  name="Route to manual or automatic order flow" process="process">
  <property name="cbrAlias" value="Xpath"/>
  <property name="destinations">
      expression="/order/PurchaseOrder/OrderHeader/Action[text() != 'create-order']"
      service-category="Demo" service-name="UpdateOrDeleteOrder"/>
      expression="/order/PurchaseOrder/OrderHeader/Action[text() = 'create-order']"
      service-category="Demo" service-name="CreateOrder"/>
  • Results in:
ERROR [ContentBasedWiretap] No rule destination(s) [..] were matched, . Please fix your configuration and/or routing rules.
  • The problem seems to be the namespace declaration, as using an input file without those works fine.


  • Red Hat JBoss SOA Platform (SOA-P)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In