Select to view content in your preferred language

Issue with Publishing "Own Data" in Flexviewer 2.2

3272
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,

   Which version of ArcGIS Server are you using? What is the WKID of your map services when you look at them in the REST Services Directory?
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,
Thank you for the quick response.

I am using ArcGIS server 10 and ArcMap/ArcCatalog v 10. I think my service WKID is 3857. (I am not sure though, is it same as spatial reference ID then that is 3857)

My service URL looks like this. Servername is 'parikshitgisserv'
http://parikshitgisser/FASinst/rest/...ervs/MapServer

It looks like this under REST directory.

sampleservs (MapServer)
View In: ArcMap ArcGIS Explorer ArcGIS JavaScript Google Earth ArcGIS.com Map

View Footprint In: Google Earth

Service Description:

Map Name: Layers

All Layers and Tables

Layers:

�?� fireproj (0)
Tables:

Description:

Copyright Text:

Spatial Reference: 3857

Single Fused Map Cache: false

Intial Extent:
XMin: -9265792.81266069
YMin: 5212729.67591906
XMax: -9234206.09937128
YMax: 5224585.0564975
Spatial Reference: 3857
Full Extent:
XMin: -9260757.62492676
YMin: 5201239.82996113
XMax: -9239241.28710522
YMax: 5223473.37904339
Spatial Reference: 3857
Units: esriMeters

Supported Image Format Types: PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SV GZ,BMP

Document Info:

�?� Title:
�?� Author:
�?� Comments:
�?� Subject:
�?� Category:
�?� Keywords:
�?� AntialiasingMode: None
�?� TextAntialiasingMode: Force
Supported Interfaces: REST SOAP
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Parikshit,


   Unfortunately the very first thing I would do is upgrade ArcGIS Server to SP1 as there were some issues with 3857 and 102100 addressed in the service pack.
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,
Thank you very much for the help. I am learning a lot here.
I will do that ASAP and post the update.
Thanks again.
Parikshit
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,
I updated all ArcGIS server, ArcMap and ArcSDE with SP1 and Rebooted the server. I still had no luck with publishing my own data in Flexviewer 2.2.
I am trying to publish a simple dynamic map service with hardly 4 point feature points (for testing purpose). It is a simple shapefile.
The service is running and I can create "out of the box" application from server manager (.NET)
Parikshit
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Parikshit,

   I have not seen this behavior, but I don't publish map services with shapefiles either. Shapefiles are great for backward compatibility but are not great at all for web stuff.
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,
Thank you for suggestion. I realized it later so I am trying to publish layer (.lyr) and other files.
Could you suggest best/easiest data type to publish on server with flexviewer.
I need to enable web editing and I am trying to publish SDE data too.
I will update if other data type works.
Thanks
Parikshit
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Parikshit,

   SDE is by far the standard and will allow for web editing. ESRI published a white paper some time ago that a File Geodatabase is the most responsive. But if your ultimate goal is web editing than SDE is the only option for you.
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,

I am working on creating a SDE service for web editing, But I also need some basemaps of my own. I tried to publish data from "ESRI data for ArcGIS server CD" as a MXD based map service.  I also tried to publish layers in their as an image service. It all shows up in Server manager fine, but no luck with Flexviewer. Service URL is correct as well (as shown in REST service directory)

I dont know if I am making some basic mistake?

Attached is the config.xml and crossdomain file that I am using. (its TXT now, XML wouldn't upload)

I kept crossdomain file is under C:\inetpub\wwwroot\Crossdomain.xml

Many thanks
Parikshit
0 Kudos