2

I'm running WMS service, that corresponds with OGC standard on WMS 1.3.0 - Queryable WMS "conformance class". It supports both mandatory requests - GetCapabilites and GetMap - and also optional request getFeatureInfo.

I was testing it with requesting the service by the method GET and I wanted to test it via POST request as well, but unfortunatelly, I wasn't able to create proper XML requests, because I haven't found any XSD schema on WMS requests. All I have found is XSD on capabilities (which deals with proper form of GetCapabilites document) and XSD on exceptions (which deals with exceptions format to be machin readable).

That forces me to think, that there is no possibility to request (properly) WMS service by POST request, or is there?

3

This should give you an idea: http://schemas.opengis.net/sld/1.1.0/GetMap.xsd

3

The schema for the HTTP POST encoding of a WMS 1.3.0 GetMap request is located at:

http://schemas.opengis.net/sld/1.1/GetMap.xsd

(It's part of the SLD specification rather than the WMS specification presumably because it was thought that the only reason a client would have for issuing a POST request rather than a GET request would be to include custom user styles.)

I'm not sure where the official schema for the HTTP POST encoding of a WMS 1.3.0 GetCapabilities request is, or if there even is one.

  • that works fine for GetMap request, do you have any ideas on GetFeatureInfoRequest and/or getCapabilities? I know it's confusing to call these by POST, but still, is there an option? – Meďák Jan 7 '15 at 10:16
2

The format of OGC XML requests are specified in the OGC Web Services Common Standard document. Then WMS (and WFS, WCS, etc.) extends these schema to save time and effort.

If you have a look in http://schemas.opengis.net/ows/ you should find what you need. I don't have a good schema viewer to hand but http://schemas.opengis.net/ows/2.0/owsCommon.xsd should be a good point to look at.

  • I get that WMS, WFS etc extends basic OWS, but there is a XSD file for WFS, that extends it. I have not found anything like that for WMS. – Meďák Jan 5 '15 at 8:21
0

For WMS version 1.3.0 you should use the following (xsd) schema:

http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd

For WMS version 1.1.1 there isn't an xsd schema, instead you will need to reference the following DTD:

http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd

WMS may be extended to support other standards such as SLD.

  • This XSD doesn't serve as source for POST request, but for getCapabilities record. There is no chance to build a request based on this XSD. – Meďák Jan 6 '15 at 10:28
  • Sorry, yes you are correct. The correct answer is that supplied by user23054 and later with some description by keith-pomakis (after discussion on the OGC mail list). You need to have an a SLD enabled WMS to get the POST option. – nmtoken Jan 6 '15 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.