vivekcs087

Access is denied while saving huge polygon through SOE

Discussion created by vivekcs087 on Sep 11, 2011
Latest reply on Sep 12, 2011 by jeff.pace
Hi All,

I have written one SOE for saving the user created polygon graphics into database and it is working fine woh small polygons.but of user has created a huge polygon (more than 50 vertices) then I am getting the Access is denied error.

I have used the proxy also for sending the huge polygon to server.


esri.request({
        url: soeURL,
        content: content,
        callbackParamName: "callback",
        handleAs: "json",
        load: function (response) {
            alert(response.ObjectID);
                   },
        error: function (error) {
            alert(error.message);
        }
    });

I have seen some where in ESRI web site that for more than 2000 character esri using the below format for sending the request to the server so when ever i am using the below mentioned way for callong the SOE then every time i am getting the "Access is denied" error(for small polygon also).

    var requestHandle = dojo.xhrGet({
        url: soeURL,
        content: content,
        handleAs: "json",
        load: result,
        error: requestFailed
    });



Can any one please tell that how to get out of this?

Outcomes