Forum Discussion
Eric_Frankenfie
Nov 30, 2013Nimbostratus
XML Content Based Routing
I am trying to configure my LTM to send VS requests to a specific pool based on the content of an XML document. The XML contains an 'orgName' which is essentially a customer identification number. ...
Eric_Frankenfie
Dec 02, 2013Nimbostratus
I have modified my XML profile as follows:
profile xml Routing_by_Org
defaults from XML
namespace mappings {
mapping prefix "abc"
mapping namespace "http://www.abc.com"
}
path queries "//abc:orgName/*"
I am still not seeing any matches in the statistics. Also, my iRule does not appear to trigger.
This is the iRule
when XML_CONTENT_BASED_ROUTING
{
log local0. "XML Detected"
for (set i 0) { $i < $XML::count } {incr i} {
log local0. $XML::queries($i)
log local0. $XML::values($i)
if { ([matchclass [$XML::values($i) equals Routing_by_Org])} {
pool pool_A
}
}
}
The first logging event on line three never ocurrs which leads me to believe the event on line one is never triggered.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects