Select to view content in your preferred language

No map is displayed when I call my map deployed in Arcgis server

527
2
05-12-2010 09:18 PM
brahimderk
New Contributor
Hello,
  I am a biginner in GIS in general and arcgis server , I try work with flex API for Arcgisserver.
My problem is that when I call a map from ESRI server all is good, however with the same code when I call my map from my localhost ,it doesn't work.

This the steps I followed to deploy my map in arcgis server.

I have my mxd file.
I run the arcgis manager
I chose publish a map service
then I search my mxd
after I have my link   http//myserver...    ?wsdl
right now all is good.

this the code sample , it's from the API documentation:

----------------------------------------------------code---------------------------

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:esri="http://www.esri.com/2008/ags"
    pageTitle="Tutorial - Adding a map">

    <esri:Map panArrowsVisible="true" crosshairVisible="true" crosshairWidth="3">
        <esri:extent>
            <esri:Extent xmin="115" ymin="-41" xmax="151" ymax="-9">
                <esri:SpatialReference wkid="4326"/>
            </esri:Extent>
        </esri:extent>
        <esri:ArcGISTiledMapServiceLayer
            url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer"/>
    </esri:Map>

</mx:Application>

--------------------------------------------------------------end code---------------------

Now when I use this code the map is displayed
but when I make in url=""http://myserver/arcgis..."   no map is displayed

please someone could help me,  
                                                                                                                                   best regards
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
goliate88,

   If you are consuming a map service from your ArcGIS Server on a different machine then you must have a crossdomain.xml file. look here http://help.arcgis.com/en/webapi/flex/help/content/deploy_application.htm.
0 Kudos
CarlosRiano
Emerging Contributor
Hi goliate88

Like you I am beginner in Flex; but I am one step back, since I can not see the Map (service) of Esri when I run my application. Do you run it from your laptop or you run it from the server. I am doing it from my laptop and I am not able to see the service.. It looks like  the service couldn't been called.

If you have any Idea or explanation, I appreciated so much. Thank you.

Carlos Riano
0 Kudos