Forum Discussion
Joe_Pawlicki_70
Nimbostratus
Sep 19, 2008XML SOAP response
I got a couple of nibbles by searching this forum, but not the whole fish...
Desired functionality: An iRule that detects when servers are down, and immediately responds to SOAP reques...
Sep 22, 2008
There were a couple of questions in there so I'll try to address them all (let me know if I miss any).
1 Determining availability
First, to determine if no servers are available, you could code an iRule to check the value of "active_members" and if that's 0 you can custom build a response and send it with the HTTP::respond command.
2 Extracting info from the submitted request.
This can be done in a couple of ways and since I don't know the data you are extracting or it's location in the request it's hard to suggest whether regular expressions or string searches would be your best options.
3 Is there a general purpose XML-Parser?
Yes, there is the XML profile that allows for parsing of XML requests in a stream fashion. Check out the XML_* iRule events. Keep in mind that this is a request-only filter at this point and there is no way from within an iRule to craft an XML reponse with this XML parser. You'll have to custom build the string yourself and send it back with a HTTP::respond.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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