Created
May 2, 2012 22:47
-
-
Save ApigeeSamples/2581122 to your computer and use it in GitHub Desktop.
proxy file example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ProxyEndpoint name="proxy"> | |
<Flows> | |
<Flow> | |
<Request/> | |
<!==you can place policies in either the Request or Response flow. Here the JSON to XML policy is in the Response flow==> | |
<Response> | |
<!==each policy is defined as a Step. The actual policy is defined in another xml file stored in the stepdefinitions folder.==> | |
<Step> | |
<FaultRules/> | |
<Name>jsontoxml</Name> | |
</Step> | |
<!== to add more policies, you create more Steps==> | |
</Response> | |
</Flow> | |
</Flows> | |
<PreFlow> | |
<Request> | |
</Request> | |
<Response> | |
</Response> | |
</PreFlow> | |
<HTTPProxyConnection> | |
<BasePath>/4g-samples-jsontoxml</BasePath> | |
<VirtualHost>default</VirtualHost> | |
</HTTPProxyConnection> | |
<RouteRule name="default"> | |
<TargetEndpoint>twitter</TargetEndpoint> | |
</RouteRule> | |
</ProxyEndpoint> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment