I'm working on an application that has to access data from a server. The flex application uses Esri's World_Imagery basemap and is able to access ESRI_Census_USA from the sample server.
Here are the two active lines of my code (almost directly copy and pasted from their tutorial.
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" /> <esri:FeatureLayer graphicAdd="featurelayer1_graphicAddHandler(event)" outFields="[*]" url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0" />
This works just fine as long as I want to show census data, but if I try to access the ArcGIS Server software running on my machine (the same machine), nothing appears. To do this I change the code in the second line to this:
Even the SampleWorldCities layer on the server won't load, so it's either the Flex application not accessing the server properly or it's the server itself not being set up right (there might be something else going on, too, but these are the most likely as far as I can tell).
I am able to get the SampleWorldCities (and my other data) to open in the online viewer without any problems.
How do I go about getting my Flex application to talk to the server?