Use Proxy Handler to Site Config - How?
We have a need to access a server using a proxy handler. I have created the handler based on the ESRI proxy (.NET}. Basically I want to be able to use the handler URL instead of the Mapservice in the Site.xml (see example below). However, the viewer application fails with an error "The remote server returned an error: Not Found." If I go to the Geocortex Rest endpoint I see that there is an error in the connection "The connection settings may be incorrect or the map service may be temporarily unavailable". How can I use a Proxy handler?
<MapServices>
<MapService ConnectionString="url=http://servername/agsdata/proxy.ashx?http://servername/ArcGIS/rest/services/Basemap/MapServer" DisplayName="Agricultural Map" Function="Operational" ID="11" ImageFormat="Png24" IncludeInLayerList="true" Opacity="1" ProviderInvariantName="Geocortex.Gis.Services.ArcGisServer.Rest" SupportedImageHeight="0" SupportedImageWidth="0" UseHttpAuthentication="false" Visible="true">
Any help is appreciated.
Thank you.
Louie
-
Hi Louie,
I am suspecting that you are probably missing a token. Did you actually go through the Map Server details settings in Rest Manager to setup your proxy or are you trying to manually modify the site.xml?
If latter, you may want to try it by editing the connection via the connection wizard in Rest Manager. After setting your proxy (and token) there, you could try using "Test Connection" button that could help you find out more details about your connection security problem.
Cheers
Dan
0 -
Dan,
Thank you your tip was very helpful, I had missed the whole connection options in the Manager. I know this is a bit of a reach but do you know if it is possible to use a blank Token? I am putting together a proof of concept and trying to avoid going all out and setting up security.
Louie
0 -
Thanx Alejandro,
I did end up getting the proxy to work without a token but ran into my next block (double encoded values), if interested see --> http://support.geocortex.com/Forums/Thread.aspx?pageid=0&mid=2&ItemID=2&thread=46199Louie
0
Please sign in to leave a comment.
Comments
3 comments