-
Notifications
You must be signed in to change notification settings - Fork 714
/
default.xml
26 lines (26 loc) · 955 Bytes
/
default.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<ProxyEndpoint name="default">
<Flows>
<Flow name="QuestionMarkWsdl">
<Condition>request.querystring == "wsdl"</Condition>
<Request>
<!-- Save the Host header from the client for us to use later -->
<Step><Name>SaveHostHeader</Name></Step>
</Request>
<Response>
<!-- Extract the "address" parameter from the WSDL that is returned -->
<Step><Name>ExtractAddress</Name></Step>
<!-- Using Python, calculate what the Address header should be -->
<Step><Name>CalculateNewAddress</Name></Step>
<!-- Return the WSDL with the recalculated Address value -->
<Step><Name>TransformWSDL</Name></Step>
</Response>
</Flow>
</Flows>
<HTTPProxyConnection>
<BasePath>/simplesoap</BasePath>
<VirtualHost>secure</VirtualHost>
</HTTPProxyConnection>
<RouteRule name="default">
<TargetEndpoint>default</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>