Hello<br>I solved this In ms4w 2.2.9 and Mapserver V5.2 adding to wms_onlinresurce this<br><br>"wms_onlineresource" "<a href="http://yourhost/cgi-bin/mapserv.exe?map=/your/map/file.map">http://yourhost/cgi-bin/mapserv.exe?map=/your/map/file.map</a><b>&SERVICE=WMS&</b>"<br>
And I test in ArcGIS 9.2 and not problem!<br><br><br><div class="gmail_quote">2008/10/22 Smith, Michael <span dir="ltr"><<a href="mailto:Michael.Smith@maine.gov">Michael.Smith@maine.gov</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div vlink="purple" link="blue" lang="EN-US">
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">I did find the solution to this, with the help of Bob
Bistrais, a programmer here in Maine. It's a known bug in MapServer
5.2. I fixed it by going back to MapServer 5.0 (from an earlier MS4W I had
on a separate machine). The bug is known and we found it discussed on
a MapServer list serv posting. Presumably to be fixed in the next
version. Link to the the bug discussion:</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"><a href="http://www.nabble.com/WMS-query-problems-in-Mapserver-5.2-td19256659.html" target="_blank">http://www.nabble.com/WMS-query-problems-in-Mapserver-5.2-td19256659.html</a></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">The problem is that by default, MapServer 5.2 does not try
such requests in the order WMS-WFS-WCS as it should. It seems to try WFS
first, and when the service is not WFS, it looks like ArcGIS gives up (hence the
white screen). Other software such as QGIS would show the WMS service
correctly, but with a noticeable delay after each refresh (it presumably tries
adding the service parameter to the URL and resending it to MapServer).
MapInfo provided a hint by displaying a WFS error message when trying to connect
to the WMS service.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Using a previous release of MS4W works great, fixed it in
just a few seconds. Brian if you need the 5.0 release I can put the whole
thing in a zip file and get it to you, let me know off-list.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Another solution (which I did not try), might be to add the
SERVICE=WMS to the URL you use in ArcGIS, which presumably would force MapServer
to treat it as WMS right away.</font></span></div>
<div dir="ltr" align="left"><font size="2"></font> </div>
<div dir="ltr" align="left"><font size="2">*********<br>Michael Smith<br>State GIS
Manager<br>Maine Office of GIS </font></div>
<div> </div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> Fischer, Brian
[mailto:<a href="mailto:bfischer@houstonengineeringinc.com" target="_blank">bfischer@houstonengineeringinc.com</a>] <br><b>Sent:</b> Tuesday, October
21, 2008 3:18 PM<br><b>To:</b> Smith, Michael;
<a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br><b>Cc:</b>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br><b>Subject:</b> RE: [ms4w-users] WMS problems
in ESRI clients<br></font><br></div>
<div></div>
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Has
anyone found a solution to this problem? I am having the exact same
problem. I'm using MS4W 2.3.0 with MapServer 5.2 and IIS 6.0.
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 10pt;">WMS Get Capabilities URL: <a href="http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</a></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">This
is proof it works as a MapServer CGI request:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&mode=map&layers=parcelwms" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&mode=map&layers=parcelwms</a>
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">This
is proof it works as an OGC WMS GetMap request:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><a href="http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=parcelwms&STYLES=&SRS=EPSG:26915&BBOX=276595,5065831,342552,5113395&WIDTH=600&HEIGHT=500&FORMAT=image/png" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=parcelwms&STYLES=&SRS=EPSG:26915&BBOX=276595,5065831,342552,5113395&WIDTH=600&HEIGHT=500&FORMAT=image/png</a>
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">ArcGIS
9.3 recognizes the service but displays a blank image. It even will bring in the
legend with the right symbology.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"><img src="cid:160305712@22102008-1695" border="0" width="616" height="466"></span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<p><span style="font-size: 10pt; color: rgb(31, 73, 125);">Brian
Fischer</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 10pt; color: rgb(31, 73, 125);">Houston
Engineering, Inc.</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 10pt; color: rgb(31, 73, 125);">Maple
Grove, MN</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 10pt; color: rgb(31, 73, 125);">(763)
493-4522</span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p></div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p style="margin-left: 0.5in;"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:ms4w-users-bounces@lists.maptools.org" target="_blank">ms4w-users-bounces@lists.maptools.org</a>
[mailto:<a href="mailto:ms4w-users-bounces@lists.maptools.org" target="_blank">ms4w-users-bounces@lists.maptools.org</a>] <b>On Behalf Of </b>Smith,
Michael<br><b>Sent:</b> Friday, October 03, 2008 3:56 PM<br><b>To:</b>
<a href="mailto:ms4w-users@lists.maptools.org" target="_blank">ms4w-users@lists.maptools.org</a><br><b>Subject:</b> [ms4w-users] WMS problems in
ESRI clients</span></p></div></div>
<p style="margin-left: 0.5in;"> </p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">Greetings, I have a
new MS4W server running with IIS, using the newest MS4W on Windows 2003
server. It works fine if I look at it in QGIS. If I consume it in
ArcMap (I tried v 9.0 and 9.3) there is no output image, just white. My
layers turn on/off at appropriate scales, but nothing is there. The WMS is
just 3 levels of orthoimagery for part of Maine.</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">The URL is</span>
<br><a href="http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&" target="_blank"><span style="font-size: 10pt;">http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&</span></a>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">I have a prototype
box (which is internal to our WAN and so readers you won't be able to see it)
which has the same exact data and mapfile, but it runs on Apache (the one
distributed with MS4W) on Windows XP, and the service works fine in ArcGIS 9.0
and 9.3.</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">My map file is shown
below.</span> </p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">Any
suggestions?</span> </p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">**********</span>
<br><span style="font-size: 10pt;">Michael
Smith</span> <br><span style="font-size: 10pt;">State GIS
Manager</span> <br><span style="font-size: 10pt;">Maine Office of GIS
</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">MAP</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">EXTENT 396000 5093000
501000 5261000</span> <br><span style="font-size: 10pt;">UNITS METERS</span>
<br><span style="font-size: 10pt;">SHAPEPATH
"C:/mapserver_data/nw_doqs"</span> <br><span style="font-size: 10pt;">RESOLUTION 96</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">CONFIG "PROJ_LIB"
"C:\ms4w\proj\nad"</span> </p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">OUTPUTFORMAT</span>
<br><span style="font-size: 10pt;"> NAME
PNG8</span> <br><span style="font-size: 10pt;"> DRIVER
"GD/PNG"</span> <br><span style="font-size: 10pt;"> MIMETYPE
"image/png"</span> <br><span style="font-size: 10pt;"> EXTENSION
PNG</span> <br><span style="font-size: 10pt;"> IMAGEMODE
PC256</span> <br><span style="font-size: 10pt;"> TRANSPARENT
ON</span> <br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">WEB</span> <br><span style="font-size: 10pt;">
METADATA</span> <br><span style="font-size: 10pt;">
"wms_title" "Northwest DOQs"</span> <br><span style="font-size: 10pt;">
"wms_onlineresource" "</span><a href="http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&" target="_blank"><span style="font-size: 10pt;">http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&</span></a><span style="font-size: 10pt;">"</span></p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">
"wms_srs" "EPSG:26919"</span> <br><span style="font-size: 10pt;"> END</span>
<br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">PROJECTION</span>
<br><span style="font-size: 10pt;">
"init=epsg:26919"</span> <br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">LAYER</span>
<br><span style="font-size: 10pt;"> NAME
nw_doqs</span> <br><span style="font-size: 10pt;"> MAXSCALEDENOM
50000</span> <br><span style="font-size: 10pt;">
METADATA</span> <br><span style="font-size: 10pt;">
"wms_title" "NW DOQs"</span> <br><span style="font-size: 10pt;">
"wms_extent" "396000 5093000 501000 5261000"</span> <br><span style="font-size: 10pt;">
"wms_srs" "EPSG:26919"</span> <br><span style="font-size: 10pt;"> END</span>
<br><span style="font-size: 10pt;">
TILEINDEX "nw_doqs_index.shp"</span> <br><span style="font-size: 10pt;"> TILEITEM
"location"</span> <br><span style="font-size: 10pt;"> TYPE
RASTER</span> <br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">LAYER</span>
<br><span style="font-size: 10pt;"> NAME
nw_doqs10m</span> <br><span style="font-size: 10pt;"> MINSCALEDENOM
50000</span> <br><span style="font-size: 10pt;"> MAXSCALEDENOM
500000</span> <br><span style="font-size: 10pt;">
METADATA</span> <br><span style="font-size: 10pt;">
"wms_title" "NW DOQs 10m overview"</span> <br><span style="font-size: 10pt;">
"wms_extent" "396000 5093000 501000 5261000"</span> <br><span style="font-size: 10pt;">
"wms_srs" "EPSG:26919"</span> <br><span style="font-size: 10pt;"> END</span>
<br><span style="font-size: 10pt;"> TYPE
RASTER</span> <br><span style="font-size: 10pt;"> DATA
doq_overview20.tif</span> <br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">LAYER</span>
<br><span style="font-size: 10pt;"> NAME
nw_doqs100m</span> <br><span style="font-size: 10pt;"> MINSCALEDENOM
500000</span> <br><span style="font-size: 10pt;"> MAXSCALEDENOM
10000000</span> <br><span style="font-size: 10pt;">
METADATA</span> <br><span style="font-size: 10pt;">
"wms_title" "NW DOQs 100m overview"</span> <br><span style="font-size: 10pt;">
"wms_extent" "396000 5093000 501000 5261000"</span> <br><span style="font-size: 10pt;">
"wms_srs" "EPSG:26919"</span> <br><span style="font-size: 10pt;"> END</span>
<br><span style="font-size: 10pt;"> TYPE
RASTER</span> <br><span style="font-size: 10pt;"> DATA
doq_overview100.tif</span> <br><span style="font-size: 10pt;">END</span>
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">END</span>
</p></div></div>
<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>