I am deploying a AGS JavaScript site to a ColdFusion website, where ArcGIS Server remains on a IIS server. This creates the classic cross-domain problem with large requests using POST, such as buffers. ESRI provides proxies for .Net, PHP & Java, but not ColdFusion. Does anyone have an example I could use? I am a .Net developer not a ColdFusion developer.
I am attempting to write a proxy page using cold fusion as well. Any hints you could give me on how to best accomplish this? I am very new to cold fusion.
3. Set up your security logic as far as what servers you want to use, tokens etc. I have not implemented this part yet.
4. Set up a cfhttp to open a connection the the proxied URL, method post, name a result you can read on adobe about this tag as I am not exactly familiar with all the technicalities of it and do not want to pass along bad advice.
5. within that cfhttp loop through all the form values and use http param, where it has name=#i# and value = #form set that to however you choose to do the loop, tokens, etc
<cfhttpparam type=formField name = #i# value = #form#>
6. after you finish the cfhttp logic output the result so whatever you named your result in the cfhttp tag, use that name.fileContent in a cfoutput
Basically I just used firebug to see what it was passing around in the requests. However this is bare minimum as it doesn't handle any security issues what so ever and can probably be improved on a lot. The original poster never got back to me on this, so he may have a way better implementation.