AnsweredAssumed Answered

Proxy, POST, and Tokens

Question asked by coords01 on Jan 14, 2014
Latest reply on Jan 16, 2014 by coords01
I have configured the proxy.ashx with my URL and token and am successfully using it for GET requests (DynamicMapServiceLayer drawing and FeatureLayer.queryFeatures).

When I try an operation that requires POST, things do not go as well. I'm attempting to call FeatureLayer.applyEdits as follows:

         
ROWLayer.queryFeatures(q, function (featureSet) {                 if (featureSet.features.length == 1) {                     var thisFeature = featureSet.features[0];                     thisFeature.attributes.ContactName = 'Some Body';                     ROWLayer.applyEdits(null, [thisFeature], null);                 }             });


The proxy appends the token to the URL which (I guess?) makes the POST request invalid or incorrect. The response I receive is the JSON version of the FeatureLayer info page.

Can anyone tell me what I am doing wrong?

Thanks in advance,

Dave

Outcomes