I changed the URL but still get this response:<br><br><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><b>OpenLayers.Protocol.WFS is not a constructor<br></b><br> map.addLayer(new OpenLayers.Layer.Vector(&quot;Gravminne&quot;, {<br>
   strategies: [new OpenLayers.Strategy.BBOX()],<br>   protocol: new OpenLayers.Protocol.WFS({<br>       url: &quot;<a href="http://naturkart.no:8080/geoserver/wfs&amp;request=getmap">http://naturkart.no:8080/geoserver/wfs&amp;request=getmap</a>&quot;,<br>
       typeName: &quot;gravminne&quot;,<br>       featurePrefix: &quot;kulturminner_ns&quot;<br>   })<br>   }));<br><br>/asle<br><br></span><div class="gmail_quote">2009/3/28 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</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;">add &amp;request=getmap to your url.<br>
<br>
Regards,<br>
andreas.<br>
<div><div></div><div class="h5"><br>
On 3/28/09, Asle Benoni &lt;<a href="mailto:asle.benoni@gmail.com">asle.benoni@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt; I tried the new WFS code but I still get this response:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;!DOCTYPE<br>
&gt; ServiceExceptionReport SYSTEM &quot;http:<br>
&gt; //<a href="http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd" target="_blank">schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd</a>&quot;&gt;<br>
&gt; &lt;ServiceExceptionReport version=&quot;1.1.1&quot; &gt;<br>
&gt;   &lt;ServiceException code=&quot;MissingParameterValue&quot; locator=&quot;request&quot;&gt;<br>
&gt;       Could not determine geoserver request from http request<br>
&gt; org.apache.catalina.connector.RequestFacade<br>
&gt; @10f829<br>
&gt; &lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;<br>
&gt;<br>
&gt;<br>
&gt; I wonder if this WFS call can give me what I want with a KML response. I<br>
&gt; want to be able to click on the location and a popup with a style for the<br>
&gt; popup, show a picture, a link etc. fetched from the PostgreSQL table.<br>
&gt;<br>
&gt; /asle<br>
&gt;<br>
&gt; 2009/3/27 Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;<br>
&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Mar 26, 2009 at 5:08 PM, Asle Benoni &lt;<a href="mailto:asle.benoni@gmail.com">asle.benoni@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; I am really frustrated about not beeing able to display a kmz layer in<br>
&gt;&gt; &gt; OpenLayers.<br>
&gt;&gt; &gt; Here is the code:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;                 map.addLayer(new OpenLayers.Layer.GML(&quot;Gravminne&quot;, &quot;<br>
&gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;transparent=true&amp;srs=EPSG:4326&amp;transparent=true&amp;" target="_blank">http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;transparent=true&amp;srs=EPSG:4326&amp;transparent=true&amp;</a><br>

&gt;&gt; &gt; &quot;,<br>
&gt;&gt; &gt;                {<br>
&gt;&gt; &gt;                 format: OpenLayers.Format.KML,<br>
&gt;&gt; &gt;                 formatOptions: {<br>
&gt;&gt; &gt;                   extractStyles: true,<br>
&gt;&gt; &gt;                   extractAttributes: true,<br>
&gt;&gt; &gt;                   transparent:true<br>
&gt;&gt; &gt;                 }<br>
&gt;&gt; &gt;                }));<br>
&gt;&gt;<br>
&gt;&gt; The geoserver url you are using here will always return KMZ, which<br>
&gt;&gt; OpenLayers cannot parse. Instead, you should use the following to<br>
&gt;&gt; create your layer:<br>
&gt;&gt;<br>
&gt;&gt; map.addLayer(new OpenLayers.Layer.WFS(&quot;Gravminne&quot;,<br>
&gt;&gt; &quot;<br>
&gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms?service=WMS&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=kml&amp;srs=EPSG:4326" target="_blank">http://naturkart.no:8080/geoserver/wms?service=WMS&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=kml&amp;srs=EPSG:4326</a><br>

&gt;&gt; &quot;,<br>
&gt;&gt;                 {<br>
&gt;&gt;                 format: OpenLayers.Format.KML,<br>
&gt;&gt;                 formatOptions: {<br>
&gt;&gt;                   extractStyles: true,<br>
&gt;&gt;                   extractAttributes: true<br>
&gt;&gt;                 }<br>
&gt;&gt;                 }));<br>
&gt;&gt;<br>
&gt;&gt; Is there a specific reason why you  want to use KML? WFS would give<br>
&gt;&gt; you the same result, you would only have to use a style map for your<br>
&gt;&gt; symbology in addition. This is how to add the layer using the new WFS<br>
&gt;&gt; protocol:<br>
&gt;&gt;<br>
&gt;&gt; map.addLayer(new OpenLayers.Layer.Vector(&quot;Gravminne&quot;, {<br>
&gt;&gt;    strategies: [new OpenLayers.Strategy.BBOX()],<br>
&gt;&gt;    protocol: new OpenLayers.Protocol.WFS({<br>
&gt;&gt;        url: &quot;<a href="http://naturkart.no:8080/geoserver/wfs" target="_blank">http://naturkart.no:8080/geoserver/wfs</a>&quot;,<br>
&gt;&gt;        typeName: &quot;gravminne&quot;,<br>
&gt;&gt;        featurePrefix: &quot;kulturminner_ns&quot;<br>
&gt;&gt;    })<br>
&gt;&gt; ));<br>
&gt;&gt;<br>
&gt;&gt; For the symbology, you can use OpenLayers.Format.SLD to use a sld file<br>
&gt;&gt; that you already have on your server. Look at examples/SLD.html to see<br>
&gt;&gt; how to configure this.<br>
&gt;&gt;<br>
&gt;&gt; And you need OpenLayers.ProxyHost configured with a working proxy url.<br>
&gt;&gt;<br>
&gt;&gt; If a map image rendered on the server would also do, you could just<br>
&gt;&gt; use a WMS layer, and don&#39;t even need a ProxyHost:<br>
&gt;&gt;<br>
&gt;&gt; map.addLayer(new OpenLayers.Layer.WMS(&quot;Gravminne&quot;;<br>
&gt;&gt; &quot;<a href="http://naturkart.no:8080/geoserver/wms" target="_blank">http://naturkart.no:8080/geoserver/wms</a>?&quot;, {<br>
&gt;&gt;    transparent: true,<br>
&gt;&gt;    layers: &quot;kulturminner_ns:gravminne&quot;<br>
&gt;&gt; }));<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; &gt; I can see the http request from the proxy so it is fetching correct<br>
&gt;&gt; &gt; data (I think) but I cannot see any on the map!<br>
&gt;&gt; &gt; The request looks like this (FireBug). I am not sure if the EPSG is<br>
&gt;&gt; &gt; correct. I also tried &quot;EPSG:32632&quot; which I set for the map.<br>
&gt;&gt;<br>
&gt;&gt; With the WFS setup above (first of my code snippets), the data should<br>
&gt;&gt; be automatically reprojected to the SRS of your map.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Can anyone point to how to show a KMZ file from GeoServer as I need<br>
&gt;&gt; &gt; the options for that layer format. I checked the docs but did not get<br>
&gt;&gt; &gt; wiser.<br>
&gt;&gt;<br>
&gt;&gt; As already said, OpenLayers can not parse KMZ, only KML. To make<br>
&gt;&gt; GeoServer output KML, your request would have to be a WMS request and<br>
&gt;&gt; look like this:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms/?service=wms&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;format=kml&amp;bbox=0,0,180,90&amp;width=500&amp;height=250&amp;srs=EPSG:4326" target="_blank">http://naturkart.no:8080/geoserver/wms/?service=wms&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;format=kml&amp;bbox=0,0,180,90&amp;width=500&amp;height=250&amp;srs=EPSG:4326</a><br>

&gt;&gt;<br>
&gt;&gt; This is what will get generated with the second of my code snippets above.<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Andreas.<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Andreas Hocevar<br>
&gt;&gt; OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
&gt;&gt; Expert service straight from the developers.<br>
&gt;&gt;<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Sent from my mobile device<br>
</font><div><div></div><div class="h5"><br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
</div></div></blockquote></div><br>