[mapserver-users] Can't get capabilities xml error message
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Nov 23 05:48:41 PST 2016
Hi,
Regarding your issue, here is my advice for how I always debug such a
situation:
- I narrow down the mapfile until I am able to have the
smallest/shortest mapfile that still generates the error (one layer,
simple classification)
- once I have that tiny mapfile, then examine that one problem layer
(most times I also change the data in that layer, from something like a
PostGIS connection to a local shapefile, and see if that changes anything)
- for OGC/WMS requests, I will run the request directly from the MS4W
commandline, such as:
setenv.bat
mapserv -nh
QUERY_STRING="map=D:\ms4w\blah.map&SERVICE=wms&REQUEST=GetCapabilities"
> getcap.xml
And open that generated xml file to check for any errors or "WARNING"s
in the response.
Thank you for the positive feedback from you that MS4W is working great
for you and your clients.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-11-22 11:35 AM, Leehan wrote:
> hello,
>
> Mapserver 7 & Apache are installed using ms4w 3.1.4. All is running fine
> with windows server 2008.
> I can get a map in FireFox.
> I can't get the WMS with Qgis : failed to load capabilities (traduction from
> french, sorry)
> Indeed, I can't get the capabilities in FF either with :
> http://10.210.1.32:8080/cgi-bin/mapserv.exe?...\fond_mapserver.map&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetCapabilities&
>
> here's the message :
> <http://osgeo-org.1560.x6.nabble.com/file/n5296958/Capture.png>
>
> Previously I had a message beginning by "mandatory metadata...'. I worked on
> my mapfile and then get this last message just above.
>
> here's my mapfile :
> MAP
> WEB
> METADATA
> "wms_title" "WMS-Inrap, aide au montage des opérations"
> "wms_onlineresource"
> "http://10.210.1.32:8080/Apache/cgi-bin/mapserv.exe?MAP=C:/ms4w/map/fond_mapserver.map&"
> "wms_enable_request" "*"
> "wms_srs" "EPSG:2154 EPSG:3857 EPSG:900913"
> "wms_encoding" "UTF-8"
>
> END
> END
>
> All layers have METADATA with wms_title and wms_srs (even if this last param
> is not required because I have a PROJECTION object).
> I feel a little lost.
> Thanks
>
>
>
>
More information about the MapServer-users
mailing list