MapInfo Pro

 View Only
  • 1.  Web Services

    Posted 11-01-2024 10:55

    Many public data are available in the Netherlands as maps, through a viewer or as a web service; I have been using these for many years.

    Recently however when trying to accees a WMS web service like  https://service.pdok.nl/rws/ahn/wms/v1_0?request=GetCapabilities

    I receive a message "the service issued the followig exception: MIssing key: SERVICE".

    A local discussion points at Mapinfo as te culprit. 

    I would appreciate any help in trying to restore this service.

     

    Pdok remove preview

     

    Pdok remove preview

    Pdok remove preview

     



    ------------------------------
    Ad van Ooststroom
    Bergen op Zoom, NL
    ------------------------------


  • 2.  RE: Web Services

    Employee
    Posted 29 days ago
      |   view attached

    Hi Ad

    The WMS protocol is not static. At some point, in a new version, 1.1.0) it was decided to add the Service parameter to allow the same server to publish various OGC services.

    I tried accessing the service in question with the Service parameter:

    https://service.pdok.nl/rws/ahn/wms/v1_0?Service=WMS

    That seemed to work until the table was to be opened with the selected layer. I got the same error that you referred to.

    I opened the XML file that is created with the TAB file and noticed that the Service parameters hadn't been "copied" onto the GetMap URL. So I manually added the Service=WMS text onto the URL

    I saved the XML file and reopened the WMS table using the existing TAB file and now it works.
    Many OGC servers copy the parameter sent with the GetCapability request into the Capabilities document. This server does it but only for the GetCapability request URL. It would have worked if it also had copied the Service=WMS parameter onto the GetMap URL.
    Some servers have an option that must be turned on for this copying to take place. Would you be able to reach out to the publishers of the PDOC server to see if they can enable this on their server?

    I have attached the table (TAB and XML).



    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------

    Attachment(s)

    zip
    DTM PDOK.zip   838 B 1 version