Select to view content in your preferred language

Adding a secured ArcIMSMapServiceLayer to the sample flex viewer

812
6
06-22-2010 06:21 AM
JasonReid
Emerging Contributor
Having some difficulty using a secured arcIMS service in the default flex viewer. I made the changes to the ConfigManager and MapManager to handle arcIMS services. The layer shows up, however it prompts for a username and password even though I put those in the config.xml and handle those properties in the connection.

Anyone have any suggestions?
Tags (2)
0 Kudos
6 Replies
DasaPaddock
Esri Regular Contributor
Is it using Basic or Digest authentication? Only Basic is supported in the API:
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/apiref/com/esri/ags/layers/ArcIMSMapServic...
0 Kudos
JasonReid
Emerging Contributor
The source is using basic authentication. It's the WeatherBug® GIS Data Services I'm trying to use. I can add the serivice into a default map application in server and have no problems so this is a flex app problem I can't find the problem.

I'll attach a text file with what changes I made to the flex viewer. Maybe someone will see what I'm missing.
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you try this in the Flash Debug player to see if you're getting any errors?
http://www.adobe.com/support/flashplayer/downloads.html#fp10

Can you try a tool like HttpFox to see if the Authorization header is being sent in the request and what the response from the server is?
https://addons.mozilla.org/en-US/firefox/addon/6647/

You may also want to try creating a simple test app first like this one before trying it in the Viewer:
http://resources.esri.com/help/9.3/arcgisserver/apis/flex/samples/index.html?sample=ArcIMS
0 Kudos
JasonReid
Emerging Contributor
I've narrowed this down to a network problem, which makes this even more difficult to track down the problem.
0 Kudos
DavidKiendl
Deactivated User
The source is using basic authentication. It's the WeatherBug® GIS Data Services I'm trying to use. I can add the serivice into a default map application in server and have no problems so this is a flex app problem I can't find the problem.

I'll attach a text file with what changes I made to the flex viewer. Maybe someone will see what I'm missing.


you can rehost the IMS weather service from weather bug as a wms. This method only seems to work in 1.3 sfv though no luck with 2.x. Load the feed into an mxd or msd and publish as wms.
0 Kudos
JasonReid
Emerging Contributor
I'll try this see if it works. Unfortunatly the latest 2.1 viewer doesn't support secured ArcIMS services either. I'll need to figure out a proxy if the wms trick doesn't work.
0 Kudos