Select to view content in your preferred language

Issue with Publishing "Own Data" in Flexviewer 2.2

4023
14
02-07-2011 01:16 PM
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.

Any suggestion will be greatly appreciated.
Thanks
PR
Tags (2)
0 Kudos
14 Replies
JoeSchmit
Emerging Contributor
Robert, thanks, I ended up re-structuring my crossdomain.xml to the following:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>


Only problem are security holes, but it works splendidly.  I need to figure out a good crossdomain.xml that will integrate well with this flex app.



Thanks again for your assistance!
0 Kudos
ScottEvenson
Emerging Contributor
I too am having a similar issue and can't seem to find documentation to support.

I am used ArcServer 9.3.1, all my layers (dynamic) are projectedin WGS84, Web Mercator.  See my tag below.  The layer isn't projecting.  It works just fine in JavaScript API.

 
<layer label="Mowing" type="dynamic" visible="false"
                   url="http://hqolymeocgis01/ArcGIS/rest/services/ivm/Mowing/MapServer"/


Any suggestions?  I understand that there may be some proxy issues, but I am unfamiliar why.



I had the same problem, then I added 0/ to the end of the url and it worked.
yours would look like:
url="http://hqolymeocgis01/ArcGIS/rest/services/ivm/Mowing/MapServer/0"/

my 2 cents
0 Kudos
parikshitranade
Emerging Contributor
Joe,

   A simple free utility like Fiddler or Charles would be able to confirm this for you.


Thanks Robert. I used Fiddler and it detected issue wih Crossdomain file.

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

Thank you everyone for all the suggestions. I learned a lot here.
Parikshit
0 Kudos
GiosiaPoma
Regular Contributor
Try to set visible attribute to true.
0 Kudos
parikshitranade
Emerging Contributor
Hi Giosia,
Thanks for suggestion. The issue was with "cross domain file" as I mentioned above. and changing crossdomain policy fixed it.
Parikshit
0 Kudos