GetWSCapabilities

Parameters

Name Type Description Required?
wmsurl URI URL encoded wmsurl used in capabilities query **true**
key string Search string for finding specific key inside of capabilities JSON **false**

Response

Success

{
  "WMS_Capabilities":{
    // WMS capability result
  }
}

Error

Returns HTTP code 500 with an error message as a JSON in response body.

Key not found (200): null

Incorrect WMS URL (500):

{
  "EXCEPTION":"INCORRECT URL"
}

Could not request WMS GetCapabilities (500):

{
  "EXCEPTION": "Couldn't request WS CetGapabilities"
}

Examples

Example query for Paikkatietoikkuna (example.com)

(GET) http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=GetWSCapabilities&wmsurl=http%3A%2F%2Fexample.com

Response: { "WMS_Capabilities":{ // capability result } }

Example curl request

TODO

  • I think we need to change the name of this action route to GetWMSCapabilities.
  • Error messages are not good enough

Last modified: Thu Nov 10 2022 13:59:32 GMT+0200 (Eastern European Standard Time)