WMS client and misbehaving servers

2 messages Options
Embed this post
Permalink
Bart van den Eijnden-3

WMS client and misbehaving servers

Reply Threaded More More options
Print post
Permalink
Hi list,

I am running into a problem where an ArcIMS server does not behave correctly, even though we ask for exceptions inimage, it returns an empty response with content-type text/plain.

Because of this, Mapserver will bail out and say:

msDrawMap(): WMS connection error. Failed to draw WMS layer named '0'. This most likely happened because the remote WMS server returned an invalid image, and XML exception or another unexpected result in response to the GetMap request. Also check and make sure that the layer's connection URL is valid. <br>
msDrawRaster(): Image handling error. Unrecognized or unsupported image format <br>
drawEPP(): Image handling error. EPPL7 support is not available. <br>

What I would want is for Mapserver WMS client to just ignore this layer, rather than bailing out completely. Is that possible somehow?

TIA.

Best regards,
Bart
Steve Lime

Re: WMS client and misbehaving servers

Reply Threaded More More options
Print post
Permalink
I would think it would be possible. Perhaps this could be triggered with metadata (e.g. WMS_SKIP_ON_FAILURE). Dan
would know best though.

Steve

>>> On 1/24/2008 at 9:27 AM, in message
<[hidden email]>, Bart van den
Eijnden <[hidden email]> wrote:

> Hi list,
>
> I am running into a problem where an ArcIMS server does not behave
> correctly, even though we ask for exceptions inimage, it returns an empty
> response with content-type text/plain.
>
> Because of this, Mapserver will bail out and say:
>
> msDrawMap(): WMS connection error. Failed to draw WMS layer named '0'. This
> most likely happened because the remote WMS server returned an invalid
> image, and XML exception or another unexpected result in response to the
> GetMap request. Also check and make sure that the layer's connection URL is
> valid. <br>
> msDrawRaster(): Image handling error. Unrecognized or unsupported image
> format <br>
> drawEPP(): Image handling error. EPPL7 support is not available. <br>
>
> What I would want is for Mapserver WMS client to just ignore this layer,
> rather than bailing out completely. Is that possible somehow?
>
> TIA.
>
> Best regards,
> Bart