Select to view content in your preferred language

Sample Flex Viewer 2.1 proxy support

3657
3
10-19-2010 10:19 PM
ZahyHwary
Emerging Contributor
Hi All

I want to connect to arcGIS Secured services from Sample Flex Viewer 2.1 , how can do this using proxy page ,
Tags (2)
0 Kudos
3 Replies
ZahyHwary
Emerging Contributor
Hi all

I found the solution , its very simble , I am using Sample Flex viewer that is by default supporting proxy , I just added the this tag to config.xml in flex viewer project  :
<httpproxy>http:\\myserver\proxy.ashx<httpproxy>
then I added userproxy="true"  attribute for each map layer in config.xml , add this only for layers you want to use it throw proxy , now SFV is ready to use proxy .

I have attached a proxy version that supports dynamic token (short lived tokens)

also I have enabled security in ArcGIS server manager , I used SQL authentication

thanks
0 Kudos
ColterSikora1
Emerging Contributor
Hello,

I am trying to set-up authentication for our Viewer for Flex application using dynamic tokens.  I am not ready to test this method yet, but I am wondering how the 'userName' and 'password' tags will be filled in using the dynamic token.  In my initial searches in my source files, I have not found any code refering to an 'appSettings' section as referenced in your proxy CONFIG file.

Thank you for your help in advance!

Colter
0 Kudos
parvazparvaz
Occasional Contributor
Hi,
Is this configuration true?:    

  <layer label="my layer name" type="tiled" visible="false"  alpha="1"
                   url="http://my host name/ArcGIS/rest/services/My service name/MapServer" token="my token value" useproxy="true"/>


If not, how should I set it?

Regards
A.ponker
0 Kudos