Hi:
kindly i have a problem regarding the WSDL file content that return to the end user, it returm like this:
<wsdl:service name=“Service1”>
name=“Service1Soap” binding=“tns:Service1Soap”>
location=“~~http://10.103.100.20:8077/service1.asmx~~”/>
name=“Service1Soap12” binding=“tns:Service1Soap12”>
location=“~~http://10.103.100.20:8077/service1.asmx~~”/>
how can i rewrite the content to be https://10.103.100.20 instead http://10.103.100.20:8077
the actual server IP 10.103.150.20 and the VIP : 10.103.100.20
thanks
A stream iRule is probably you’re best bet. Apply the generic stream profile to your VIP and this iRule (tweak as required):
Example which replaces http:// with https:// in response content
Also prevents server compression in responses
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
LTM does not decompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from sending
a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
Check if response type is text
if { [HTTP::header value Content-Type] contains "text" } {
Replace http:// with https://
STREAM::expression {@http://10.103.100.20@https://10.103.100.20@}
Enable the stream filter for this response only
STREAM::enable
}
}
Using python is it possible to achieve