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; }
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 { } }
internal void RaiseIdentifyResponse(GISResponse response) { Controller.RequestProcessing = false; try { if (OnIdentifyRequestComplete != null) { OnIdentifyRequestComplete(response); } } catch { } }
internal void RaiseErrorResponse(GISResponse errorResponse) { Controller.RequestProcessing = false; if (OnRequestError != null) { OnRequestError(errorResponse); } }