This sample hard-codes the symbology - but is it possible to access the symbology (and other properties) which were defined in ArcMap, then published to ArcGIS Server?
Eg my services catalog shows a layer with properties like:
I believe the sample was written to show how you can define a renderer using the API. If your FeatureLayer already has a renderer, you do not need to overwrite it.
Thanks for the info. I don't have access to an ArcGIS Server 9.3.1 machine to test this - I'm running ArcGIS Server 10, which apparently doesn't connect with the version of Silverlight/Visual Studio that I'm using.
I'm hoping to upgrade shortly - but in the meanwhile, can you point me at a sample ArcGIS Server 9.3.1 service which has the symbology already set?