For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

malcolms_231509's avatar
malcolms_231509
Icon for Nimbostratus rankNimbostratus
Oct 29, 2015

XML_CONTENT_BASED_ROUTING Help

Hi All

 

I am trying to search a soap message for a particular session id and based on the first 2 values in in the ID send to a pool.

 

I am using an XML profile and Irule to do this. The rule has no hits. Below is the xml profile and irule and a snap of the soap message. Any ideas on where I am going wrong here.

 

Below is the irule

 

when XML_CONTENT_BASED_ROUTING { for {set i 0} { $i < $XML_count } {incr i} { log local0. $XML_queries($i) log local0. $XML_values($i) if {($XML_queries($i) contains "sessionid")}{ if {($XML_queries($i) starts_with "01")} { pool pool_server1

 

} else {pool pool_server2} } } }

 

below snap of soap message

 

 

Below is a snap of the xml profile

 

 

No RepliesBe the first to reply