I wouldn't recommend using SOAP to ArcGIS Server. The proxy generated is enourmous, and the overhead is even bigger (no caching at all). It just doesn't scale very well. Have you looked at this approach instead: http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16800
Have you checked in logs?
I have seen that from live it view ( http://silverlight.sharpgis.net/ArcGISLegend.html ) that are created image with prefix '_ags_'. Arcgis server clear this images after 10 minutes . you try see your settings cleaning mode
<Cleaning>sliding</Cleaning> <MaxFileAge>600</MaxFileAge>for details seehttp://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//0093000000mq000000.htm
Layer[] legend = null; if (context.Cache[soapUrl] != null) legend = context.Cache[soapUrl] as Layer[]; if(legend == null) { legend = LegendGenerator.GetLegend(soapUrl); context.Cache.Insert(soapUrl, legend, null, System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(15), System.Web.Caching.CacheItemPriority.AboveNormal, null); } if (isJson) { GenerateJson(context, legend, isPrettyJson); }
What happens if you disable caching in the REST endpoint? Or have the rest endpoint do caching of the images instead of just the URL to the images?
What happens if you disable caching in the REST endpoint?
Or have the rest endpoint do caching of the images instead of just the URL to the images
What do you mean by this?
I was referring to the custom rest endpoint in the sample. It's doing caching for the 10 mins, but you could just pull that code out of the sample.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.