Maurice_G_
Aug 18, 2011Employee
find an dreplace XML Value with irule
I am runnin 10.2.1.
I an having trouble with an iRule I am writing trying to parse the SSN Value out of the following POST
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
http://ns.hr-xml.org/2004-08-02">
abdd33e8-f7ef-4808-b06b-6d06d2309fdb
http://ns.hr-xml.org/2004-08-02">
2512
2
http://ns.hr-xml.org/2004-08-02">
eb765bc0-a6ac-417f-85a8-d99e7a3850f8
7http://ns.h...tRequester>
http://ns.hr-xml.org/2004-08-02">
9f6187f7-5dc7-4ace-874a-a1892a42b586
Female
Native Hawaiian or other Pacific Islander
7/5/1960
555-55-5555
DDITest_2011818_737
DDITest_2011818_737
(631)-555-2295
(229)-555-4668
DDITest_2011818_737@ddi.test
US
63178
NH
Tucson
5949 Maple Blvd
Apt 59
http://ns.hr-xml.org/2004-08-02">
Example User Area Text
Any help would be appreciated.
My iRule so far looks like:
when HTTP_REQUEST {
if { [HTTP::host] contains "dev.integration.services.7-5.identifythebest.com" } {
HTTP::class disable
WAM::disable
STREAM::disable
if {[HTTP::header content-type] starts_with "text/xml"}{
log local0. "_xml_scrubber"
HTTP::collect [HTTP::header Content-Length]
set TaleoSSN [findstr [HTTP::payload] "" 0 <]
log local0. "SSN Value is $TaleoSSN"
}
}
}