Forum Discussion
IT_Xena_18030
Nimbostratus
Mar 18, 2008iRule WSDL response find and replace soap response
Hoping someone has already scripted an iRule like this. We implemented our F5 after all internal APIs were coded.
Our challenge. 3rd party Consumer tries to refresh their web service reference ...
Nicolas_Menant
Employee
Mar 18, 2008Hi,
You should find a lots of example about how to do so in the forum.
To do this job, you'll need to use STREAM commands that are used to replace a statement by another statement in the http response.
the HTTP::host command will allow you to update the host requested in the request
here is the syntax: Click here
Click here
Some example:
Click here
Click here
Click here
it would be something like this for the syntax:
when HTTP_REQUEST {
if { [HTTP::host] equals "api.oursite.com"} {
HTTP::header replace "Host" "someinternalurl"
}
}
when HTTP_RESPONSE {
STREAM::enable
STREAM::expression "@someinternalurl@api.oursite.com@"
}
my iRules won't do the job but it's more like a guidedline
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