Forum Discussion
Rewrite content in XML schema file.
Dear Experts,
I need help to rewrite a content value in a WSDL service using XML schema files.
The response that i am seeing in the client side:
<xsd:include schemaLocation="http://10.20.17.20:7855/DamanPay/GetPaymentType?xsd=xsd0"/>
10.20.17.20: is the Virtual server IP address.
I have tried the stream profile and i was able to change the IP address to the Node IP address when specify the IP: 10.20.17.20 in the source and the Node IP address 10.15.11.2 in the target, the response become:
<xsd:include schemaLocation="http://10.15.11.2:7855/DamanPay/GetPaymentType?xsd=xsd0"/>
So it seems that i can rewrite the value in the response to the desired content value.
But i am searching for a workaround or an IRULE to change this IP:10.20.17.20 in the response to the selected Pool member IP address (i have 2 members in the pool), not a static IP address as what i was able to achieve using the Stream Profile.
I hope i have made it clear and thanks in advanced.
Thanks,
Muhannad
2 Replies
Muhannad - if this helped resolve your request please mark zamroni777 's reply as solution. OR - if you have a min to share what resolved your issue the community would really benefit.
Thanks,
you can try the rewite using combination of HTTP_RESPONSE event and IP::server_addr in the irule
Recent Discussions
Related Content
* 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