internal static GISResponse ProcessErrorResponse(string errorMessage, string requestXml, string responseXml)
        {
            GISResponse response = new GISResponse();
            response._lastRequest = requestXml;
            response._lastResponse = responseXml;
            response._hasError = true;
            response._errorMessage = errorMessage;

            return response;
        }
Exemple #2
0
        internal void RaiseMapResponse(GISResponse response)
        {
            Controller.RequestProcessing = false;

            try
            {
                if (!response.HasError && response is GISImageResponse)
                {
                    GISLayerInfo tempLayer;
                    GISImageResponse iresponse = response as GISImageResponse;

                    foreach (GISLayerInfo info in iresponse.Layers)
                    {
                        if (!ActiveService.FindLayer(info._name, out tempLayer))
                        {
                            ActiveService._baseLayers.Add(info);
                            ActiveService._activeLayers.Add(info);
                        }
                    }
                }

                if (OnMapRequestComplete != null)
                {
                    OnMapRequestComplete(response);
                }
            }
            catch { }
        }
Exemple #3
0
        internal void RaiseIdentifyResponse(GISResponse response)
        {
            Controller.RequestProcessing = false;

            try
            {
                if (OnIdentifyRequestComplete != null)
                {
                    OnIdentifyRequestComplete(response);
                }
            }
            catch { }
        }
Exemple #4
0
        internal void RaiseErrorResponse(GISResponse errorResponse)
        {
            Controller.RequestProcessing = false;

            if (OnRequestError != null)
            {
                OnRequestError(errorResponse);
            }
        }