Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Flex Viewer and am currently trying to view my Map Service that comes from remote Arc GIS Server over the Internet. All parameters in the config.xml file are set up as default (I made no changes to the original file) and I am trying to add a new operational layer. I have installed (locally) Apache 2.2 as my local web server and Flexviewer v 2.3.1. I am therefore using the Flexviewer through my localhost.

My map service using a single feature class, file geodatabase with the data and mxd data frame set to WGS_1984_Web_Mercator_Auxiliary_Sphere, to be consistent with the basemap layers from arcgis online.

I haven't got the ability to install flex viewer on the actual ArcGIS service (in a different office) but I have access via ArcCatalog and ArcGIS Server Manager.

I assume the problem is either

  1. the URL structure specifying the map service, or
  2. some issue with that fact that I'm using a remote ArcGIS Server map serivce?

Below is the code used in config.xml specifying my map service. Is this correct?

        <layer label="test" type="feature" visible="true"
    </operationallayers>   ,

where 'myservice_wgs84wm' is the name of my map service, served from my ArcGIS Server (named above as 'myserver').

Can anyone advise on the structure of my URL? Do I need to include 'REST' parameter - I don't really understand this?

I'm going to post cross post on the

share|improve this question

from your configuration of the layer, it seems there lost the ">" for the tag "layer". it should be as follows:

    <layer label="test" type="feature" visible="true"
           url="http://myserver/arcgis/rest/services/myservice_wgs84wm/MapServer/" />
share|improve this answer
Thanks for your suggestion. I adjusted the configuration of the layer but it did not make any changes. Any ideas would be appreciated! – Magda Jun 8 '11 at 14:41

Try type="dynamic"

and do you url like this


And see what happens.

share|improve this answer

When accessing a mapservice with flex, you have to take care about the crossdomain.xml on the server on which you are accessing the mapservice.

You cand find the explications in the ArcGIS Flex documentation:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.