Select to view content in your preferred language

Editor, GeometryServiceURL & ProxyURL

494
3
08-24-2010 11:15 AM
DaveRabrun
Deactivated User
I'm using a proxyurl to scrub/authenticate any calls made to the server.

Editor is missing a proxyurl property, so i set the geometryserviceURL to the proxyurl and concat the geometry service url. <ProxyUrl>?<geometryServiceURL>.

I'm guessing that since i'm not using geometryserviceURl for it's intended purpose, any functions are used as parameters. <proxyurl>?<geometryserviceurl>/reshape& instead of <proxyurl>?<geometryserviceurl>/reshape?. So i have to then replace the "&" with an "?".

I have it working fine for now, but i was wondering if the Editor class had any use (or will eventually have any use) for the ProxyUrl?
0 Kudos
3 Replies
BrooksShannon
Deactivated User
Dave,

I kind of wondered the same thing.  I came to the following conclusions, though, that (for now) seem to have satisfied me:

1) Since the GeometryService doesn't really do anything except pure geometry computations, I felt it probably wasn't necessary to secure it using, say, token-based authentication.  It would be one thing if the geometry service exposed my data in some way, but it really doesn't.  Because of that, I didn't have any issue leaving it unprotected.

2) My Editor is associated with a Feature Layer, which I definitely want to protect.  I know I can do that by setting its ProxyURL property, so I'm good to go there.

Since those are the only two services the Editor uses, I was fine with simply securing the feature service, leaving the geometry service as-is, and going from there.  I'll make the conjecture that the Editor itself probably doesn't require a ProxyURL property, since all you need to do is provide the proxy URL to the feature layer, and the geometry service, as you have, if you need to do that.

It would be interesting, however, to get ESRI's take on this.

Thanks!
Brooks
0 Kudos
dotMorten_esri
Esri Notable Contributor
Can't you just prefix the geometry service URL with the proxy URL?
Ie GeometryServiceUrl="Http://myserver/proxy.ashx?http://myserver/arcgis/rest/geometryservice"
0 Kudos
dotMorten_esri
Esri Notable Contributor
Oh wait that was what you were trying to do. Good point! I'll see what can be done to remedy this.
Until then you can create a proxy that only deals with geometry service requests and automatically sends the query string to a geometry service (that way the geometry service URL won't contain a ?)
0 Kudos