Forum Discussion
Edgar_123903
Nimbostratus
Jan 02, 2014BIG-IP LTM and ASM - Read xml package to extract information and redirect traffic
Is there any way to extract information from an XML package with SSL communication with a web server and extract a reference id and if it meets the condition redirect the traffic to another pool. ...
Kevin_Stewart
Employee
Jan 04, 2014If I may add, the XML Content Based Routing feature in LTM can also do this. It's an XML profile and associated iRule. The XPath configuration in the profile can be a little tricky, but once you have it capturing the right value, the iRule is fairly straight forward. here's an example:
when XML_CONTENT_BASED_ROUTING {
switch $XML_values(0) {
"12345" {
pool pool_a
}
"67890" {
pool pool_b
}
}
}
As John alludes, depending on when the XML data presents itself in the request, you may have already made a load balancing decision, and/or may need to add some additional persistence tracking if the request is part of a larger session.
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