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

ehtan_139395's avatar
ehtan_139395
Historic F5 Account
Jul 24, 2014

xml profile

Hi Folks,

 

I have an issue with xml profile and require some help. The xml content is not hitting my xml profile. As you can see from the xml content, i am trying to grab this value on ws:url "eboltjvm1 or eboltjvm2" and thereby routing the traffic to the correct pool. From my xml profile stats, i can see documents being scanned but not matched. I know something is wrong with my namespace but i just cant get it right. Hope that someone can enlighten me on this. many thanks.!!

 

A9AB398E8B5D258C8B85D31B16DD59AC.eboltjvm1 http://10.128.10.10/ws/InvocationService;jsessionid=A9AB398E8B5D258C8B85D31B16DD59AC.eboltjvm1 eboltStartIncomingCall 1234567890

 

i configured my profile as follows:

 

ltm profile xml /Common/xml_cbr { app-service none defaults-from /Common/xml namespace-mappings { { mapping-namespace http://www.jacada.com mapping-prefix jac } } xpath-queries { //ws:url } }

 

And my irule as follows:

 

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 {([matchclass $XML::values($i) contains eboltjvm1])} { pool pool1 } else { pool pool2 } } }

 

Ltm::XML Profile: xml_cbr

Virtual Server Name N/A

 

Inspected Documents 10 Documents With One Match 0 Documents With Two Matches 0 Documents With Three Or More Matches 0 Documents With No Matches 10 Malformed Documents 0

 

1 Reply

  • ehtan_139395's avatar
    ehtan_139395
    Historic F5 Account
    A9AB398E8B5D258C8B85D31B16DD59AC.eboltjvm1 http://10.128.10.10/ws/InvocationService;jsessionid=A9AB398E8B5D258C8B85D31B16DD59AC.eboltjvm1 eboltStartIncomingCall 1234567890