Hi David!<br><br>The url is :<br><br><a href="http://localhost/cgi-bin/mapserv.exe?map=map.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&Y=217">http://localhost/cgi-bin/mapserv.exe?map=map.map&&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Test1,Test2&QUERY_LAYERS=Test1,Test2&STYLES=,&BBOX=-65.806807%2C-16.885911%2C-38.978193%2C-11.238939&FEATURE_COUNT=10&HEIGHT=257&WIDTH=1221&FORMAT=image%2Fpng&INFO_FORMAT=text%2Fhtml&SRS=EPSG%3A4326&X=366&Y=217</a><br>
<br>Executing that URL direct in browser generate that:<br><br>Content-type: application/vnd.ogc.se_xml



<br><br>Thanks<br><br>Stella<br><br><div class="gmail_quote">2010/1/26 Fawcett, David (MPCA) <span dir="ltr"><<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</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 link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Stella, </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">What does the getFeatureInfo call look like?  </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Use Firebug to find the URL used to make the request and post it
here.’</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">David.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<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 class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>
[mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>stela
anders<br>
<b>Sent:</b> Tuesday, January 26, 2010 1:33 PM<br>
<b>To:</b> MapserverList OSGEO<br>
<b>Subject:</b> [mapserver-users] Re: WMSGetFeatureInfo problem (No results,
using OL)</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal" style="margin-bottom: 12pt;">Any idea whats happening?<br>
I lost all day trying to fix that, but got nothing :(<br>
<br>
Stella<br>
<br>
</p>

<div>

<p class="MsoNormal">2010/1/25 stela anders <<a href="mailto:stelaanders@gmail.com" target="_blank">stelaanders@gmail.com</a>></p>

<p class="MsoNormal" style="margin-bottom: 12pt;">Hello guys...<br>
<br>
My mapfile:<br>
<br>
...<br>
  PROJECTION<br>
        "+init=epsg:4326"<br>
    END<br>
<br>
    WEB<br>
        IMAGEPATH 'C:\temp\'<br>
        IMAGEURL '/tmp/'<br>
        QUERYFORMAT text/html   
  <br>
        <br>
        METADATA<br>
            "wms_title"    
"WMS Server" <br>
           
"wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?" 
<br>
           
"wms_srs"       "EPSG:4326
EPSG:42304 EPSG:42101 EPSG:4269" <br>
            'wms_feature_info_mime_type'
"text/html" <br>
        END<br>
    END<br>
<br>
   QUERYMAP<br>
        COLOR 255 0 0<br>
        SIZE -1 -1<br>
        STATUS OFF<br>
        STYLE hilite<br>
    END<br>
...<br>
<br>
LAYER<br>
...<br>
       METADATA<br>
           
"wms_title"    "Test"   ##required<br>
             "wms_include_items"
"all"<br>
           
 "wms_feature_info_mime_type" "text/html"
             <br>
        END       <br>
        TYPE POINT<br>
        STATUS ON<br>
        INCLUDE "Connection.map" <br>
        DATA "the_geom from viwtest USING
UNIQUE oid USING SRID=0"<br>
        PROJECTION<br>
           
"+init=epsg:4326"<br>
        END<br>
        <br>
        TOLERANCE 5<br>
         HEADER  
"header.html" <br>
        TEMPLATE
"template.html"     <br>
         FOOTER  
"footer.html" <br>
...<br>
<br>
Templates:<br>
Header.html<br>
<!-- MapServer Template --><br>
<html> <br>
  <head> <br>
    <title>MapServer Template Sample</title> <br>
  </head> <br>
<br>
Template.html<br>
<!-- MapServer Template --><br>
<body> <br>
    <b>OID:</b> [oid]<br>
  </body> <br>
<br>
Footer.html<br>
</html><br>
<br>
WMSGetFeatureInfo  Javascript (OpenLayer)<br>
<br>
var infoCtl = new OpenLayers.Control.WMSGetFeatureInfo({ <br>
                   
layers: [_test], <br>
                   
title: 'Click on the map to get information on layers', <br>
                   
queryVisible: true, <br>
                   
infoFormat: 'text/html' <br>
               
}); <br>
              <br>
               
infoCtl.events.register("getfeatureinfo",map,showInfo); <br>
<br>
 function showInfo(evt) {    <br>
           
alert(evt.text);<br>
} <br>
<br>
<br>
I´m getting that :<br>
<br>
<html> <br>
  <head> <br>
    <title>MapServer Template Sample</title> <br>
  </head> Content-type: application/vnd.ogc.se_xml<br>
<br>
<?xml version='1.0' encoding="ISO-8859-1"
standalone="no" ?><br>
<!DOCTYPE ServiceExceptionReport SYSTEM "<a href="http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd" target="_blank">http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd</a>"><br>
<ServiceExceptionReport version="1.1.1"><br>
<ServiceException><br>
</ServiceException><br>
</ServiceExceptionReport><br>
<br>
<br>
Any idea whats happening?<br>
<br>
Stella<br>
<br>
</p>

</div>

<p class="MsoNormal"> </p>

</div></div></div>

</div>


</blockquote></div><br>