To add a feature layer, you need to specify a particular layer, rather than the whole service. For example:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer...
as opposed to a dynamic map service which would work with:
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/MapServer
Note that the feature service specifies a layer with a number at the end of the URL. From the service's FeatureServer page in REST, click the layer you want to get the new URL to use.
Within a Flex APP. Building a definition Expression and tying it together is no big deal. I would like to do this in the Flex Viewer. How do I send this to a featurelayer within the Config.xml?
Thanks! I was indeed specifying the particular layer, but I didn't realize there was a different service type for individual features within a map service. I'm unfamiliar with feature services (I'm assuming that's what they're called). When I click on the layer I want, the URL still indicates "MapServer", as opposed to "FeatureServer". Is there a particular process I need to go through to create feature services?
Just go to your REST home page (e.g. http://yourserver.com/yourinstance/rest/services/), and you will see that each map service with Feature capability enabled has two entries, one Map Server entry and another Feature Server entry (and a third if Mobile is enabled). Click on the Feature Server link, then the layer you want. Or you can just manually change the URL, but it's always a good idea to click through via your REST page to make sure the service has been created correctly, is started, etc.
I created a new map service with WFS enabled, but I am still only seeing one service (a map service) listed on my REST page. I'm currently using ArcGIS Server 9.3. Is this something that's only available with ArcGIS Server 10?
Yes, "feature services" are different from WFS, and are only supported with Server 10. Just set the type to "dynamic" and you can use your http://yourserver.com/yourinstance/rest/services/yourservice/MapServer/ link. I thought you needed the specific feature service functionality, but if not just use dynamic and you'll be fine.
@jrfishe1
So the only way to get the attribute data from the layers is to use ArcSDE?