Hello<br>I solved this In ms4w 2.2.9 and Mapserver V5.2 adding to wms_onlinresurce this<br><br>&quot;wms_onlineresource&quot; &nbsp;&nbsp;&nbsp; &quot;<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>&amp;SERVICE=WMS&amp;</b>&quot;<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">&lt;<a href="mailto:Michael.Smith@maine.gov">Michael.Smith@maine.gov</a>&gt;</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.&nbsp; It&#39;s a known bug in MapServer 
5.2.&nbsp; I fixed it by going back to MapServer 5.0 (from an earlier MS4W I had 
on a separate machine).&nbsp; The bug is known and we&nbsp;found it discussed on 
a MapServer list serv posting.&nbsp; Presumably to be&nbsp;fixed in the next 
version.&nbsp; 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>&nbsp;</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.&nbsp; It seems to try WFS 
first, and when the service is not WFS, it looks like ArcGIS gives up (hence the 
white screen).&nbsp; 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).&nbsp; 
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>&nbsp;</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.&nbsp; 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>&nbsp;</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>&nbsp;</div>
<div dir="ltr" align="left"><font size="2">*********<br>Michael Smith<br>State GIS 
Manager<br>Maine Office of GIS </font></div>
<div>&nbsp;</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?&nbsp; I am having the exact same 
problem.&nbsp; 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);">&nbsp;</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&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;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&amp;mode=map&amp;layers=parcelwms" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&amp;mode=map&amp;layers=parcelwms</a> 
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</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&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=parcelwms&amp;STYLES=&amp;SRS=EPSG:26915&amp;BBOX=276595,5065831,342552,5113395&amp;WIDTH=600&amp;HEIGHT=500&amp;FORMAT=image/png" target="_blank">http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;LAYERS=parcelwms&amp;STYLES=&amp;SRS=EPSG:26915&amp;BBOX=276595,5065831,342552,5113395&amp;WIDTH=600&amp;HEIGHT=500&amp;FORMAT=image/png</a> 
</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</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);">&nbsp;</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</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);">&nbsp;</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;">&nbsp;</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.&nbsp; It works fine if I look at it in QGIS.&nbsp; If I consume it in 
ArcMap (I tried v 9.0 and 9.3) there is no output image, just white.&nbsp; My 
layers turn on/off at appropriate scales, but nothing is there.&nbsp; 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&amp;" target="_blank"><span style="font-size: 10pt;">http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&amp;</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&#39;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 
&quot;C:/mapserver_data/nw_doqs&quot;</span> <br><span style="font-size: 10pt;">RESOLUTION 96</span> 
</p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">CONFIG &quot;PROJ_LIB&quot; 
&quot;C:\ms4w\proj\nad&quot;</span> </p>
<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">OUTPUTFORMAT</span> 
<br><span style="font-size: 10pt;">&nbsp; NAME 
PNG8</span> <br><span style="font-size: 10pt;">&nbsp; DRIVER 
&quot;GD/PNG&quot;</span> <br><span style="font-size: 10pt;">&nbsp; MIMETYPE 
&quot;image/png&quot;</span> <br><span style="font-size: 10pt;">&nbsp; EXTENSION 
PNG</span> <br><span style="font-size: 10pt;">&nbsp; IMAGEMODE 
PC256</span> <br><span style="font-size: 10pt;">&nbsp; 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;">&nbsp; 
METADATA</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_title&quot; &quot;Northwest DOQs&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_onlineresource&quot; &quot;</span><a href="http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&amp;" target="_blank"><span style="font-size: 10pt;">http://geolibportaltest.maine.gov/mapserver/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/nw_doqs.map&amp;</span></a><span style="font-size: 10pt;">&quot;</span></p>

<p style="margin-left: 0.5in;"><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_srs&quot; &quot;EPSG:26919&quot;</span> <br><span style="font-size: 10pt;">&nbsp; 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;">&nbsp; 
&quot;init=epsg:26919&quot;</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;">&nbsp; NAME 
nw_doqs</span> <br><span style="font-size: 10pt;">&nbsp; MAXSCALEDENOM 
50000</span> <br><span style="font-size: 10pt;">&nbsp; 
METADATA</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_title&quot; &quot;NW DOQs&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_extent&quot; &quot;396000 5093000 501000 5261000&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_srs&quot; &quot;EPSG:26919&quot;</span> <br><span style="font-size: 10pt;">&nbsp; END</span> 
<br><span style="font-size: 10pt;">&nbsp; 
TILEINDEX &quot;nw_doqs_index.shp&quot;</span> <br><span style="font-size: 10pt;">&nbsp; TILEITEM 
&quot;location&quot;</span> <br><span style="font-size: 10pt;">&nbsp; 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;">&nbsp; NAME 
nw_doqs10m</span> <br><span style="font-size: 10pt;">&nbsp; MINSCALEDENOM 
50000</span> <br><span style="font-size: 10pt;">&nbsp; MAXSCALEDENOM 
500000</span> <br><span style="font-size: 10pt;">&nbsp; 
METADATA</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_title&quot; &quot;NW DOQs 10m overview&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_extent&quot; &quot;396000 5093000 501000 5261000&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_srs&quot; &quot;EPSG:26919&quot;</span> <br><span style="font-size: 10pt;">&nbsp; END</span> 
<br><span style="font-size: 10pt;">&nbsp; TYPE 
RASTER</span> <br><span style="font-size: 10pt;">&nbsp; 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;">&nbsp; NAME 
nw_doqs100m</span> <br><span style="font-size: 10pt;">&nbsp; MINSCALEDENOM 
500000</span> <br><span style="font-size: 10pt;">&nbsp; MAXSCALEDENOM 
10000000</span> <br><span style="font-size: 10pt;">&nbsp; 
METADATA</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_title&quot; &quot;NW DOQs 100m overview&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_extent&quot; &quot;396000 5093000 501000 5261000&quot;</span> <br><span style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; 
&quot;wms_srs&quot; &quot;EPSG:26919&quot;</span> <br><span style="font-size: 10pt;">&nbsp; END</span> 
<br><span style="font-size: 10pt;">&nbsp; TYPE 
RASTER</span> <br><span style="font-size: 10pt;">&nbsp; 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>