Select to view content in your preferred language

Access is denied while saving huge polygon through SOE

2166
1
09-11-2011 10:42 PM
VIvekShukla
Deactivated User
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?
0 Kudos
1 Reply
JeffPace
MVP Alum
Get has a 2000 character limit, which you are exceeding

use dojo.xhrPost

or

esri.request with the option  usePost: True
to force it to use Post
0 Kudos