Using a proxy page

This page describes an older version, please read about the latest version at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/

In general, to use a proxy page, you need to set up the proxy, specify its uniform resource locator (URL), and specify where it should be used. Use the <httpproxy> tag in the main configuration file to specify the location of your proxy page. This proxy works on an "opt-in" basis, so you also need to specify what should be proxied. The URL can be either a relative or absolute URL. For more information, see Main configuration file.

<httpproxy>proxy.ashx</httpproxy>

The <httpproxy> will be used for <layer> tags that have their attribute useproxy="true", as well as widgets that support the useproxy tag in their configuration files (Data Extract,Geoprocessing, GeoRSS, Locate, Query and Search widgets). You specify which layers and widgets will use the proxy by using useproxy="true" on the layers and <useproxy> tag in the widget configuration files when you need proxying (usually the servers without crossdomain.xml).

For example, for a specific layer you would "opt-in" using

<layer ... useproxy="true"/>
http://help.arcgis.com/en/webapps/fl...#layer_tag.htm

... and for the widgets that support proxy, you would specify it within the configuration file for that widget

<useproxy>true</useproxy>
NoteNote:

The proxy is typically on the same machine as the application, but if it's not, the proxy server would need a crossdomain.xml file.

Learn more about proxies in the Using the proxy page topic.

2/15/2012