Select to view content in your preferred language

Issue with Publishing "Own Data" in Flexviewer 2.2

3353
12
02-08-2011 05:42 AM
parikshitranade
Emerging Contributor
I am new to ArcGIS viewer for flex. I downloaded flex viewer 2.2. I edited the config.xml file and I am able to customize UI (logos, widget tray etc.) and display it in the browser.
However I cannot publish my own map service. It displays blank screen (although ESRI online service base maps are visible). My Service is blank at the full map extent as well.

I made sure
1. Service is running and URL is correct (also double checked in ArcGIS service directory and service manager)
2. Tried both TILE and DYNAMIC option in config.xml.
3. Placed crossdomain.xml file in web root directory.
4. Have same projection as ESRI online maps (WGS 1984 Web Mercator (Auxiliary Sphere))
5. Optimized map service using 'Map Service' toolbar in ArcMap.
6. Checked and adjusted initial extent in 'config.xml' but DONT KNOW HOW TO SET FULL EXTENT.

I DONT KNOW IF IT PROXY ISSUE AND IF IT IS THEN HOW TO FIX IT.

I referred to videos for flex viewer and forum to look for answer. Materials from Robert Scheitlin were of great help.

Any suggestion will be greatly appreciated.

Thanks
PR
Tags (2)
0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus
Parikshit,

    You have an issue with the commenting out of items in your config.xml:

You have:
<map initialextent="-9359000 5171400 -9118000 5264300" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"/>
            <layer label="PLD"  type="dynamic" visible="true" alpha="1"
                        url="http://parikshitgisser/FASinst/rest/services/fire/MapServer"/>
            



     <--layer label="Hybrid" type="tiled" visible="false"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <--layer label="Hybrid"  type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>

                        
        </basemaps>
        <operationallayers>
            <--layer label="Boundaries and Places" type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer"/>
            <--layer label="Fires" type="feature" visible="false" alpha="1"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer"/>
        </operationallayers>
    </map>


It needs to be:
<map initialextent="-9359000 5171400 -9118000 5264300" top="40">
        <basemaps>
            <layer label="Streets" type="tiled" visible="true"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Aerial"  type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer"/>
            <layer label="PLD"  type="dynamic" visible="true" alpha="1"
                        url="http://parikshitgisser/FASinst/rest/services/fire/MapServer"/>
            



     <!--layer label="Hybrid" type="tiled" visible="false"  alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
            <layer label="Hybrid"  type="tiled" visible="false" alpha="1"
                        url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/-->

                        
        </basemaps>
        <operationallayers>
            <!--layer label="Boundaries and Places" type="tiled" visible="false"
                   url="http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer"/>
            <layer label="Fires" type="feature" visible="false" alpha="1"
                   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/IWT_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer"/-->
        </operationallayers>
    </map>


So just to verify when you did your ArcGIS server installation you choose to not use the standard ArcGIS instance name and you used FASinst instead?
0 Kudos
parikshitranade
Emerging Contributor
Thank you so much Robert. That was a serious commenting error.

You are correct, I used FASinst instead of standard ArcGIS instance name during installation.

I tried modifying code as you said. But the new code did not work either.

Actually I also tried modifying original flex viewer config.xml (where I just changed the service URL to mine and did not comment out or modify anything else), but no luck. I just changed service type from tiled to dynamic.

I am still wondering what is going wrong.

Parikshit
0 Kudos
parikshitranade
Emerging Contributor
I was finally able to publish my own data with Flexviewer. It was CROSSDOMAIN file issue. I referred to

http://www.senocular.com/pub/adobe/crossdomain/policyfiles.html#cross-domain-policy
I used most permissive policy.

Thanks to Robert, I used FIDDLER as per your suggestion and it confirmed issue with crossdomain.
0 Kudos