Forum Discussion
Chris_Schaerli_
Nimbostratus
Jun 18, 2007Tracking session in soap header?
I have been going though the board looking for something to help me with a session persistence issue. I have some transactions I need to set persistence on and I can’t use source IP or cookie. The only thing I have been able to find is a value in the soap header that is unique per session. I have not been able to figure out how to pull that out.
Can anyone suggest a place to start? Here is a snip of the soap header. I need to track on the “soapenc” value.
Jz8rPz8/eAVeJT8/Pz8/KT8/PzA/BD8/Pxd4Pz9LPxg/P2M/Pz8/Pz8/P1I/LT8rP18=
25 Replies
Sort By
- Colin_Walker_12Historic F5 Account1.) There's no reason to split this into two rules. It's quite normal to have the request and response portion in the same iRule.
- Chris_Schaerli_
Nimbostratus
Colin, - Deb_Allen_18Historic F5 Account
- Chris_Schaerli_
Nimbostratus
Initially I thought the soap header was generated on the client side. - Chris_Schaerli_
Nimbostratus
Deb, - Deb_Allen_18Historic F5 AccountAh, got it.
- Deb_Allen_18Historic F5 Account(didn't see your other post)
when HTTP_REQUEST { collect the payload containing the POST data HTTP::collect [HTTP::header Content-Length] } when HTTP_REQUEST_DATA { persist on data from 59th character following 'xmlns:soapenc=' up to "<" follow existing persistence record or create a new one persist uie [findstr [HTTP::payload] xmlns:soapenc= 58 <] log local0. "Request SessionID is: >[findstr [HTTP::payload] xmlns:soapenc= 58 <]<" } when HTTP_RESPONSE { set SessionId [findstr [HTTP::header SOAPheader] "xmlns:soapenc=" 58 <] log local0. "Response SessionId is: >$SessionId<" if { $SessionId != "" }{ persist add uie $SessionId } }
- Chris_Schaerli_
Nimbostratus
I grabbed Dennypayne's Irule and updated it with the findstr that was working earlier. I am getting three errors when I try to save the rule. - Chris_Schaerli_
Nimbostratus
Let me give that a shot. Thanks Deb - Chris_Schaerli_
Nimbostratus
Ok so sort of works. When we use a test harness I can see the response getting set then the data request, but the response back is not the soap session id it is the actual data payload.
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