Lately it seems like every new ESRI feature fails for me - I must be cursed. I'm testing the use of a FeatureLayer to see if helps display and query features using the JavaScript API 2.0.
This layer was registered with ArcSDE from a view. The data is in a DB2 database. We have used the view for a long time in a MapService on our server.
I copied the MapService MXD to a new file and published it as a FeatureLayer. As a MapService it shows up in ArcCatalog and can be previewed. It also shows up in ArcGIS Service Manager. The MapService doesn't show up in the ArcGIS Services Directory page. If I enter the URL in a browser, it returns an error. If I try to add the layer to a JavaScript API map, it raises an error "missing } in XML expression" in Firebug for the script arcgis?v=2.0, line 52.
Is there anybody who's used a FeatureLayer successfully? Any pointers or hints?