Skip to content

Instantly share code, notes, and snippets.

@ApigeeSamples
Created May 2, 2012 22:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ApigeeSamples/2581122 to your computer and use it in GitHub Desktop.
Save ApigeeSamples/2581122 to your computer and use it in GitHub Desktop.
proxy file example
<?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