Select to view content in your preferred language

Creating app based on Flex Viewer 2 for both internal and external use

1513
5
08-03-2010 09:49 AM
SimonMorgan
Frequent Contributor
My organization has just started with FLEX as a development language and we seem to be doing pretty well. Our issue has to do with access. When we add operational layers, we have been adding them as internal address:

http://servername.domain.local/arcgis/rest/services/roads/MapServer

Our web server sits inside our firewall (a DMZ is not an option) but our IT dept has set up the firewall so that a public IP is directed to the web server. This public IP now has a url:

http://gis.domain.com/arcgis/rest/services/roads/MapServer

The problem is that when we do this, internal staff cannot see the operational layers (the base map is from Bing) because the firewall prevents this, one solution we have come up with is to alter the host file on every individual PC. The problem is that we have a LOT of PCs and this app will be used internally AND by the public. Do people have any suggestions as to alternative ways of achieving our goal.

We have already tried setting it to localhost to no avail.

Simon
Tags (2)
0 Kudos
5 Replies
JoshuaKalov
Occasional Contributor
This probably isn't the most elegant solution out there, but... If you are using the viewer, and all the url's are in the xml config files, why not just have 2 versions of the application?  One copy of the application goes in a folder for external with xml files pointing to the external-viewable url's, another copy of the application goes in a 2nd folder for internal with xml files pointing to the internal-viewable url's.  If you update the application, you then just have to copy the application swf files to both directories (while not overwriting the xml files).

The application itself would be identical for both, just the config xml files would be different.
0 Kudos
DasaPaddock
Esri Regular Contributor
Another option is to have two versions of the config. For example, create config-internal.xml and when you access the app, go to: index.html?config=config-internal.xml
0 Kudos
SimonMorgan
Frequent Contributor
Thanks for the suggestions, we have already started to do the configuration file thing, i was just hoping there was a way to do it without maintaining multiple files. What if I put the application at wwwroot. COuld my urls to servcies be:

ArcGIS/rest/servcies instead of:

http://server/rest/services??
0 Kudos
DasaPaddock
Esri Regular Contributor
Yes, that's worth a try. You could also first try not moving it and using something like "/ArcGIS/rest/services/..."

Use a tool like HttpFox or Firebug to see what it's requesting.
0 Kudos
JasonClark
Deactivated User
Simon

Did you find a solution to this problem, we are facing a similar issue with internal and external services.

Cheers
0 Kudos