Actually i try to test RIA publication including widgets with the flex viewer for arcgis serveur. After taking the URL of my Rest service coming from the Arcgis directory (AGS install in localhost, Win XP SP3), and putting it instead of the operational sample URL in the config.xml, i try to see my french map with a french projection (LB 93). i try to with WGS 84.
But i couln't see it , instead i have put the Flex viewer folder in the right place : ========================== ArcGIS Viewer for Flex 2.3 build date 2011-04-14 ==========================
This file contains the compiled version of the ArcGIS Viewer for Flex 2.3.
1. Unzip the download package file; it will create a new folder called "flexviewer".
2. Place the flexviewer folder into your machine's Web server folder (e.g., C:\inetpub\wwwroot). Note: you will need write permissions to this folder. Depending on your operating system and user privileges, you might have to ask your systems administrator for help.
3. Open a Web browser and test the Viewer application by entering the matching URL, e.g. http://<machinename>/flexviewer/index.html
I try to put a new widget code in this config.xml file but without result.
Somebody could help me ... i can develop more since 7 days... and have a counted time.
If your map service is cached (i.e. the tiles already created), then it needs to be in the same projection as the basemaps. If your map service is not cached (i.e. map images are created dynamically), then it doesn't matter which projection it is in, as ArcGIS Server will automatically project it on-the-fly to the same projection as the basemaps you are using in your application.
In the config.xml file, what's the syntax you were using for your service?
Is your map service cached or not? If it's cached the type should be specified as "tiled", if it's not cached, then the type should be specified with "dynamic".
What's the URL you are specifying for your map service? What's the URL of your application?
If your application is not on the same domain as the ArcGIS Server, did you add a crossdomain.xml file to your ArcGIS Server?
For Cross domain i don't nedd to access data from a different server than the one hosting your Flex application, because my application of flex viewer is on my own computer and the AGS version to. In the root directory i have the flexviwer but i can not publish with my old adress like : http://L018301.intranet.ens-lsh.fr/flexviewer/index.html http://localhost/flexviewer/index.html I have an error message like.HTTP 404 - File not found Services Internet (IIS)
I can launch the flex viewer buy using the Flex builder now... is it a problem ?
For my test i join the config.xml code file :
<?xml version="1.0" ?> <!-- //////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010-2011 ESRI // // All rights reserved under the copyright laws of the United States. // You may freely redistribute and use this software, with or // without modification, provided you include the original copyright // and use restrictions. See use restrictions in the file: // <install location>/License.txt // // Read more about ArcGIS Viewer for Flex 2.3 - http://links.esri.com/flexviewer // //////////////////////////////////////////////////////////////////////////////// --> <configuration> <title>ArcGIS Viewer for Flex</title> <subtitle>a configurable web mapping application</subtitle> <logo>assets/images/logo.png</logo> <style> <colors>0xFFFFFF,0x333333,0x101010,0x000000,0xFFD700</colors> <alpha>0.8</alpha> </style> <!-- replace the following url with your own geometryservice --> <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" /> <!-- replace the following key with your own Bing key --> <bing key="Ahw1due6dkmZg98wUJJYLrVmYlDik4oleCg6hoNqx6l2jFYRToImQH1HfH-asjjH"/>