Select to view content in your preferred language

Desire to execute POST HTTP requests for Map Export service to support long layerDef

2209
2
05-03-2010 11:17 AM
JonFrench
New Contributor
Hello:

I would like to include a relatively long layerDefs HTTP parameter in a call back to an Export Map REST endpoint. The problem is that the Flex ArcGISDynamicMapServiceLayer object issues GET requests to the ArcGIS server and these requests are limited in length depending on your browser and web server.

Is there any way to configure ArcGISDynamicMapServiceLayer to execute POST requests? Any other thoughts on how to resolve this?

BTW: I'm having to issue long layerDefs because I need to pass a long SQL "in" statement. (i.e. column_name in (val1, val2, val3,..) ) because ArcGIS server doesn't seem to support sub-queries like this: column_name in (select name from table1 where name like '%foo%'). If someone knows how to solve the sub-select problem, that would also be useful.
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
It will automatically switch to a POST if the url gets to be longer than 2000 characters.
0 Kudos
JonFrench
New Contributor
You just made my month. I'll try this out.
0 Kudos