Forum Discussion
Reading SOAP header through iRule
- nitassEmployeeare these useful?
- Saur212_130858NimbostratusThank you. I will go through it.
- nitassEmployeeIs there any iRule emulator that I can use while am trying to play with iRule scripting? Since I have very limited knowledge on iRule it would be great to use any such tool. usually i use bigip virtual edition to test. to send soap message, you know, we can use curl command.
- Saur212_130858Nimbostratusthe bigip virtual edition you suggested if i understand correctly needs to install it on a vmware system, correct? I am in need of an emulator or something which i can run on a windows machine (like Win 7) and test my script against? Is that possible.
- nitassEmployeethe bigip virtual edition you suggested if i understand correctly needs to install it on a vmware system, correct?yes
[root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { if { [HTTP::method] eq "POST" }{ set clength 0 if {[HTTP::header exists "Content-Length"] && [HTTP::header Content-Length] <= 1048576}{ set clength [HTTP::header Content-Length] } else { set clength 1048576 } if { [info exists clength] && $clength > 0} { HTTP::collect $clength } } } when HTTP_REQUEST_DATA { set header1 [findstr [HTTP::payload] "mycustomheader1>" 16 "<"] set header2 [findstr [HTTP::payload] "mycustomheader2>" 16 "<"] foreach var {header1 header2}{ if {[set $var] == "" }{ set $var } } log local0. "\[HTTP::payload\]: [HTTP::payload]" log local0. "header1: $header1 header2: $header2" } } [root@ve10:Active] config cat /var/log/ltm Aug 2 15:15:47 local/tmm info tmm[5139]: Rule myrule : [HTTP::payload]: value1value2 Aug 2 15:15:47 local/tmm info tmm[5139]: Rule myrule : header1: value1 header2: value2
- rajeshramhit_11Nimbostratus
what if the SOAP request is like this and I want to parse by looping through each of the and parse this into a TCL list, without using regex??
value1 value2
value3 value4
value5 value6
- rajeshramhit_11Nimbostratus
value1 value2 value3 value4 value5 value6
- rajeshramhit_11Nimbostratus
facing issue with posting soap so removed the > & < tags
mycustomheader mycustomheader1value1/mycustomheader1 mycustomheader2value2/mycustomheader2 /mycustomheader mycustomheader mycustomheader1value3/mycustomheader1 mycustomheader2value4/mycustomheader2 /mycustomheader mycustomheader mycustomheader1value5/mycustomheader1 mycustomheader2value6/mycustomheader2 /mycustomheader
Recent Discussions
Related Content
* 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