<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Etienne,<br>
    <br>
    &nbsp; My guess is that it might be related to a feature namespace
    issue.&nbsp; Look in Firebug, in the Console tab, what is the namespace
    returned inside your GML.&nbsp; You can change it in you mapfile by
    setting the following in the Map "Metadata" section :<br>
    <br>
    &nbsp;&nbsp;&nbsp; "wfs_namespace_uri" <a class="moz-txt-link-rfc2396E" href="http://localhost">"http://localhost"</a>&nbsp; # example<br>
    <br>
    &nbsp;and set the according ns in OpenLayers :<br>
    <br>
    <span class="sourceRowText" role="presentation">featureNS:
      <a class="moz-txt-link-rfc2396E" href="http://localhost">"http://localhost"</a>&nbsp; // example</span><br>
    <br>
    HTH,<br>
    <br>
    Alexandre<br>
    <br>
    <br>
    On 11-05-03 08:28 AM, Etienne DELAY wrote:
    <blockquote
      cite="mid:BANLkTin=63uPea3YgRsc-WC1JgyXJ2Gc+g@mail.gmail.com"
      type="cite"><span id="result_box" class="" lang="en"><span
          title="Cliquer ici pour voir d'autres traductions" class="hps">Hello</span><span
          title="Cliquer ici pour voir d'autres traductions">,</span><br>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">I</span> try<span title="Cliquer ici pour voir
          d'autres traductions" class="hps"> to</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">work</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">to</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">display</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">information</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">coming</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">from</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">MapServer</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">as</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">WFS</span><span
          title="Cliquer ici pour voir d'autres traductions">,</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">the
          following code works</span><span class="" title="Cliquer ici
          pour voir d'autres traductions">:</span></span><br>
      VectVigneti = new OpenLayers.Layer.WFS("coperture del suolo", <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "<a
        moz-do-not-send="true"
        href="http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map">http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map</a>",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {typename:
      'vigneti'}, <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {
      extractAttributes: true, visibility: false});<br>
      <br>
      <br>
      <span id="result_box" class="" lang="en"><span title="Cliquer ici
          pour voir d'autres traductions" class="hps">But</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">I</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">have read</span> on the <span title="Cliquer ici
          pour voir d'autres traductions" class="hps">documentation</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">than that this</span> <span title="Cliquer ici
          pour voir d'autres traductions" class="hps">technique</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">is</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps atn">"</span><span class="" title="Cliquer ici pour
          voir d'autres traductions">Deprecated</span><span
          title="Cliquer ici pour voir d'autres traductions">"</span><span
          title="Cliquer ici pour voir d'autres traductions">.</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">I</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">try</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">with</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">OpenLayers.Layer.Vecto</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">and</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">protocol</span><span
          title="Cliquer ici pour voir d'autres traductions">:</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">new</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">OpenLayers.Protocol.WFS</span><span title="Cliquer
          ici pour voir d'autres traductions">,</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">but</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">that does</span><span title="Cliquer ici pour voir
          d'autres traductions" class="hps">n't work</span><span
          class="" title="Cliquer ici pour voir d'autres traductions">.</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps"></span></span><span id="result_box" class=""
        lang="en"><span title="Cliquer ici pour voir d'autres
          traductions" class="hps">I</span> <span title="Cliquer ici
          pour voir d'autres traductions" class="hps">have not</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps"></span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">solved</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">my</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">problem</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">with</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">the</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">answer</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">to this</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">question on</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">the</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">mailing list</span></span> (<a
        moz-do-not-send="true"
href="http://osgeo-org.1803224.n2.nabble.com/Problem-with-OpenLayers-Protocol-WFS-from-Geoserver-td5167039.html">http://osgeo-org.1803224.n2.nabble.com/Problem-with-OpenLayers-Protocol-WFS-from-Geoserver-td5167039.html</a>).<br>
      <span id="result_box" class="" lang="en"><span title="Cliquer ici
          pour voir d'autres traductions" class="hps">I</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">wanted</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">to know</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">if</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">someone</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">could</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">help me</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">to
          understand where</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">is my</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">problem</span><span
          title="Cliquer ici pour voir d'autres traductions">.</span><br>
        <br>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">This is</span> <span title="Cliquer ici pour voir
          d'autres traductions" class="hps">my</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">code</span></span>
      : <br>
      var wfs = new OpenLayers.Layer.Vector("vigneti", {<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:32632"),<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: "<a moz-do-not-send="true"
        href="http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map">http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map</a>",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;schema: "<a moz-do-not-send="true"
href="http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map&amp;SERVICE=WFS&amp;REQUEST=GetSchema&amp;schema=miwfs:vigneti&amp;VERSION=1.0.0">http://localhost/cgi-bin/mapserv?map=/home/delaye/vector.map&amp;SERVICE=WFS&amp;REQUEST=GetSchema&amp;schema=miwfs:vigneti&amp;VERSION=1.0.0</a>",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //equivalent a layer pour les couche wms<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureType: "vigneti",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; srsName: "EPSG:32632",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureNS: "<a moz-do-not-send="true"
        href="http://www.openplans.org/topp">http://www.openplans.org/topp</a>",<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }),<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      });<br clear="all">
      <br>
      <span id="result_box" class="" lang="en"><span title="Cliquer ici
          pour voir d'autres traductions" class="hps">And</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">firebug</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">gives me</span> <span title="Cliquer ici pour
          voir d'autres traductions" class="hps">no</span> <span
          title="Cliquer ici pour voir d'autres traductions" class="hps">errors</span>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">...</span><br>
        <span title="Cliquer ici pour voir d'autres traductions"
          class="hps">thank you</span> <span title="Cliquer ici pour
          voir d'autres traductions" class="hps">very much</span></span><br>
      <br>
      -- <br>
      Cordialement<br>
      <br>
      Etienne DELAY<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Alexandre Dub&eacute;
Mapgears
<a class="moz-txt-link-abbreviated" href="http://www.mapgears.com">www.mapgears.com</a>
</pre>
  </body>
</html>