Forum Discussion
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.
- The_BhattmanNimbostratusWhy not write the code on the WSDL file to look for a name, rather then an IP address. That way the name can be resolved differently on the internet if that is where the consumers location is. See if you can do this w/o writing an iRULE.
- Nicolas_MenantEmployeeHi,
- The_BhattmanNimbostratusI ran into this situation before with our content developers. I went down the path of writing an iRULE. It became apparent to me that what I was much simpler and also for support.
- IT_Xena_18030NimbostratusColin, I am working with the developer and will post the final working solution.
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