AnsweredAssumed Answered

Dynamic Layer Parameter

Question asked by sshetty on Aug 22, 2012
Latest reply on Aug 24, 2012 by ahoque-esristaff
I'm working on some of the wpf sample codes and in one of the sample code the application utilizes dynamic layer. I browsed to the dynamic layer url (http://servicesbeta4.esri.com/arcgis/rest/services/USA/MapServer/dynamicLayer) from internet explorer and passed in the following layer parameter. Clicking "get dynamic layer" button causes 'layer' param invalid error. I followed the instruction from http://resources.arcgis.com/en/help/rest/apiref/dynamicLayer.html link and did not find any issue. Am I missing any attributes in the layer parameter.

[HTML]
{"source":{
"type":"dataLayer",
  {
      "type": "dataLayer",
      "dataSource":    
   {
         "type": "table",
         "workspaceId": "MyDatabaseWorkspaceIDSSR2",
         "dataSourceName": "egdb.DBADMIN.USLakes"
           }
      }
}
}
[/HTML]

Outcomes