Select to view content in your preferred language

Issue with Publishing "Own Data" in Flexviewer 2.2

3936
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
EstherColero
Occasional Contributor
Hi!,

Ok, your map service is WGS 1984 Web Mercator (Auxiliary Sphere). Are your layers too? I have some issues when mix projection on-the-fly and msd. Try a dynamic service with mxd.

Regards
0 Kudos
parikshitranade
Emerging Contributor
Hi Esther,
Thanks for the suggestion. I do have same projection for masd and layers to avoid on-the-fly reprojection. I also tried dynamic service. But no luck.
Thanks
PR
0 Kudos
JoeSchmit
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.
0 Kudos
parikshitranade
Emerging Contributor
Hi Robert,
Thank you for 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/services/sampleservs/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,SVGZ,BMP

Document Info:

�?� Title:
�?� Author:
�?� Comments:
�?� Subject:
�?� Category:
�?� Keywords:
�?� AntialiasingMode: None
�?� TextAntialiasingMode: Force
Supported Interfaces:   REST   SOAP
0 Kudos
EstherColero
Occasional Contributor
Hello again,

Sorry for my insistence. Have you try with mxd? I don't know why but I can't view some data in shapefile or tiff using msd.

Regards
0 Kudos
parikshitranade
Emerging Contributor
Hi Esther,
Thank you for insisting. I tried dynamic with mxd after you reminded again, but no luck.
I am just trying small shapefile with 4 point data with no attributes except ID.
But publishing as an MXD is good alternative. I will keep in mind for future as well.Thanks a lot for the tip.
Pairkshit
0 Kudos
parikshitranade
Emerging Contributor
Hi Esther,
Thank you for insisting. I tried dynamic with mxd after you reminded again, but no luck.
I am just trying small shapefile with 4 point data with no attributes except ID.
But publishing as an MXD is good alternative. I will keep in mind for future as well.Thanks a lot for the tip.
Pairkshit
0 Kudos
JoeSchmit
Emerging Contributor
I guess I am not sure what you mean?  I have published all my mxd's as dynamic services not tiled/cached.

I can get the services to run just fine in other API's, just not Flex.  I think this must have something to do with the proxy/crossdomain.xml or lack thereof.

-Joe
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Joe,

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