<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 09/26/2012 14:17, basvmrs wrote:
<blockquote cite="mid:1348661821207-5004603.post@n6.nabble.com"
type="cite">
<pre wrap="">Hi,
I followed the instructions on <a class="moz-txt-link-freetext" href="http://mapserver.org/ogc/wfs_server.html">http://mapserver.org/ogc/wfs_server.html</a> to
set up a WFS server with the shown example file. I find that WMS works fine,
but WFS doesn't, even though I am basically using the same configuration.
The WMS server:
<a class="moz-txt-link-freetext" href="http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&request=GetMap&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500">http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&request=GetMap&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500</a>
GetFeatureInfo also works:
<a class="moz-txt-link-freetext" href="http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&version=1.3.0&request=GetFeatureInfo&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500&query_layers=continents&info_formate=xml&X=106&Y=80">http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wms&version=1.3.0&request=GetFeatureInfo&bbox=-180.000000,-90.000000,180.000000,83.627419&layers=continents&version=1.0.0&srs=epsg:4326&format=jpeg&width=500&height=500&query_layers=continents&info_formate=xml&X=106&Y=80</a>
But now for WFS:
<a class="moz-txt-link-freetext" href="http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wfs&request=GetFeature&TYPENAME=continents&version=1.0.0">http://wms.cipix4.cipix.nl/?MAP=%2Fhome%2Figis%2Fwww%2Fdata%2Fwms%2Ftutorial%2Fhtdocs%2Fex.map&service=wfs&request=GetFeature&TYPENAME=continents&version=1.0.0</a>
It says:
msWFSGetFeature(): WFS server error. TYPENAME 'continents' doesn't exist in
this server. Please check the capabilities and reformulate your request.
I don't get it: the typename should be the same as the layer name and that
works fine in the WMS request. /var/log/mapserver reveals nothing
interesting at all.
My mapfile is:
</pre>
</blockquote>
<br>
your mapfile is missing .. ?<br>
are you sure that your layer METADATA section contains <span
class="s">"wfs_enable_request"</span> <span class="s">"*"</span>
(or "ows_enable_request" "*") ?<br>
<strong><br>
</strong>
<blockquote cite="mid:1348661821207-5004603.post@n6.nabble.com"
type="cite">
<pre wrap="">
After a couple of hours of searching I though I should just ask someone.
Thanks!
--
View this message in context: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.n6.nabble.com/WMS-works-WFS-doesn-t-tp5004603.html">http://osgeo-org.1560.n6.nabble.com/WMS-works-WFS-doesn-t-tp5004603.html</a>
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
</pre>
</body>
</html>