IT_Xena_18030
Mar 18, 2008Nimbostratus
iRule 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
-Consumer's system sends a request to https://api.oursite.com/rateservice/rateservice.aspx?wsdl
-Load balancer intercepts request and transfers to http://someinternalurl:82/rateService.aspx?wsdl
-The .net web service generates a WSDL xml file - which describes the web service to other systems
-While generating the WSDL the request address http://someinternalurl:82/rateService.aspx?wsdl is used to generate the element within the WSDL file.
-The WSDL file is sent back to the consumer
-The consumer uses the element for future communication with the web service
-Further communication fails because the address in the is not accessible from the consumers location
There are several solutions we may want to look into:
irule to rewrite the element
Suggestions?
I am on the track of doing a search and replace for the soap:address location element based on the server response WSDL xml file. Scripting is not my thing, but eager to learn.