[Geoserver-users] WMS XML request

Hello

I would like to investigate using XML requests over POST to GeoServer, but I'm stumped by the lack of documentation about it. The WMS standard doesn't say anything about it, the SLD standard brings it up with an example, and I have gathered the schema for XML GetMap request is under the sld folder. But it doesn't answer all concerns:
- How to use XML-encoded request if it's not for SLD styles - e.g. because the request length exceeds GET limits.
- How to pass vendor-specific parameters like CQL_FILTER and TILED.

I know I can pass URL-encoded data in the POST content, but that doesn't excuse not learning about the XML-encoding. It may be Plan B (or Plan A, and XML-encoding becomes Plan B).

Does anyone know of a great web page discussing XML-encoded requests to WMS with examples? I think there ought to be a page on the GeoServer User Guide under Services->WMS about this.

Kind regards
Ugland IT Group AS

Thomas Jahnsen
Developer
Tel: + 47 67 59 28 23
E-mail: thja@anonymised.com

UGLAND IT GROUP AS, Strandveien 13, Pb. 58, 1324 Lysaker, org.nr. 971 058 773
Tlf: +47 67 59 28 10, fax: +47 67 59 28 11, email: firmapost@anonymised.com, internet: www.uglandit.com

Thomas Jahnsen ha scritto:

Hello

I would like to investigate using XML requests over POST to
GeoServer, but I'm stumped by the lack of documentation about it. The
WMS standard doesn't say anything about it, the SLD standard brings
it up with an example, and I have gathered the schema for XML GetMap
request is under the sld folder. But it doesn't answer all concerns: - How to use XML-encoded request if it's not for SLD styles

You don't, it's meant to be used with SLD styles. Or else, I
don't understand your question.

- e.g. because the request length exceeds GET limits.

In this case, you can post your GET request as a form, just make
sure to use the proper mime type, application/form-url-encoded,
when posting it.

- How to pass

vendor-specific parameters like CQL_FILTER and TILED.

There is no support for vendor parameters in XML requests.

I know I can pass URL-encoded data in the POST content, but that
doesn't excuse not learning about the XML-encoding. It may be Plan B
(or Plan A, and XML-encoding becomes Plan B).

Does anyone know of a great web page discussing XML-encoded requests
to WMS with examples? I think there ought to be a page on the
GeoServer User Guide under Services->WMS about this.

Nope, there is no such documentation. All there is, is in the
SLD standard.
Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.