Thanks, Jennifer.
I ran Fiddler as you suggested. In the application, I first query a customer location point feature layer and populate a FeatureDataGrid with the customer query results. On this FeatureDataGrid's "SelectionChanged" event, I run a second query to retrieve all incidents associated with that particular customer row, and populate a second FeatureDataGrid with the incidents query results (ObjectIDs 2,3,5,6,7). Using this FeatureDataGrid's "SelectionChanged" event, I reach the custom editing form, whose controls are populated with the selected incident's attributes. I change one attribute value, the INC_DTM (Incident Date) attribute, and immediately get an "ESRI.ArcGIS.Client.Tasks.TaskFailedEventArgs" error. In Fiddler, I noted the following:
In the Web Sessions pane,
-------------------------------------------------------------------------------------
# Result URL
-------------------------------------------------------------------------------------
50 401 ......./rest/services/CYO_TEST/FeatureServer/1/applyEdits
51 200 ......./rest/services/CYO_TEST/FeatureServer/1/applyEdits
-------------------------------------------------------------------------------------
For the Request, #50, under Inspectors -- Webforms (Body), I get
(Row 1 ) Name = adds
(Row 1) Value (reformatted and edited for clarity):
[
{"attributes":
{
"OBJECTID":2,
"GATE_STATUS":"OPEN",
"INC_TYPE":"SERVICE",
"INC_DTM":1297659600000,
"INC_ID":"tstww",
"SUMMARY":"SUMMARY - Customer has <snip.. long text ..snip> they release at once.",
"STATEMENT":"STATEMENT - This customer is <snip.. long text ..snip> to prevent delays.",
"GEO_LOC_SA":16370068522720,
"CINC_ID":3,
"PROP_RES":"RESOLUTION - Escalate power <snip.. long text ..snip> for congestion resolution.",
"RES_DTM":1298246400000,
"RES_ID":"tnbjf",
"CUST_FK":null
}
},
: <snip ... similar details for OBJECTIDs 3,5,6 ...snip>
:
{"attributes":
{
"OBJECTID":7,
"GATE_STATUS":"OPEN",
"INC_TYPE":"SERVICE",
"INC_DTM":1303603200000,
"INC_ID":"tstww",
"SUMMARY":"ENTER SUMMARY DETAILS HERE, MUTBOB",
"STATEMENT":"ENTER STATEMENT DETAILS HERE MUTBOB",
"GEO_LOC_SA":16370068522720,
"CINC_ID":7,
"PROP_RES":"ENTER RESOLUTION DETAILS HERE MUTBOB",
"RES_DTM":1303689600000,
"RES_ID":"tstww",
"CUST_FK":null
}
}
]
(Row 2) Name = f
(Row 2) Value = json
-------------------------------------------------------------------------------------
Below that, under WebView, I get
"Server Error
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied."
For the response, #51, under WebView, I get
{"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to apply edits"]}}
-------------------------------------------------------------------------------------
I tried an "Update Features" from the REST API. In Fiddler, again, I received a 401 result for the Request, as under
For the Request, under Inspectors -- Webforms (Body), I get
(Row 1 ) Name = features
(Row 1) Value :
[
{
"attributes" : {
"OBJECTID" : 6,
"SUMMARY" : "SUMMARY BBBBBB"
}
}
]
(Row 2) Name = f
(Row 2) Value = pjson
-------------------------------------------------------------------------------------
Below that, under WebView, I get
"Server Error
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied."
For the response however, under WebView, I get
{ "updateResults" : [ { "objectId" : 6, "globalId" : null, "success" : true } ]}
and the updates are committed to the database!
-------------------------------------------------------------------------------------
I also tried applyEdits from the REST API, with similar results, for instance, under WebView,
{ "addResults" : [ ], "updateResults" : [ { "objectId" : 6, "globalId" : null, "success" : true } ], "deleteResults" : [ ]}
even though the Request reports the 401 Server Error...
-------------------------------------------------------------------------------------
In the MapService permissions, I am an authorized user under a role (and so is ArcGISSOC). I am allowed to make changes to the database. I can make changes using the REST API with no additional entry credentials. I am able to view the data correctly in the silverlight application. What is different when I access the same service through Silverlight? I see that the request through Silverlight seems to be "adds" under an applyEdits "json" process (is the applyEdits process in Silverlight trying to add 5 features?), whereas in the REST API, it is an appropriate updateFeatures "pjson" process or applyEdits "pjson" process with only the update values sent...
Hope this helps you in understanding the situation... Thanks, again...