<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
Hi Yewondwossen Assefa,<br>
dear List members,<br>
<br>
thank you for your answer.<br>
During the last hours I include your hint with the forced request
method: "wfs_request_method" "GET" <br>
and I also found something else on my own: <br>
<br>
I left the port number (8088) in the URL string:<br>
So, in my case the complet request is called: <br>
<br>
<a class="moz-txt-link-freetext"
 href="http://babyz.uni-muenster.de:8088/wfs/WFS">http://babyz.uni-muenster.de:8088/wfs/WFS</a>?<br>
This might also be the reason why you did not work for you, too!<br>
<br>
When sending above mentioned request the server sends a complete .gml
file which is stored in my tmp directory.<br>
Nevertheless still these coordinates are not drawn from the mapserver. <br>
<br>
The beginning of&nbsp; the .gml file sounds like this:<br>
<br>
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;GMLPacket
xmlns=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/examples/packet">"http://www.opengis.net/examples/packet"</a>
xmlns:gml=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/examples/packethttp://xmlschemas.uni-muenster.de/gmlpacket.xsd">"http://www.opengis.net/examples/packet
http://xmlschemas.uni-muenster.de/gmlpacket.xsd"</a>&gt;&lt;gml:description&gt;WLIS_UTM32&lt;/gml:description&gt;&lt;gml:boundedBy&gt;&lt;gml:Box
srsName=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/gml/srs/epsg.xml#32632">"http://www.opengis.net/gml/srs/epsg.xml#32632"</a>&gt;&lt;gml:coordinates&gt;555409.568178104,5650501.14750786
868199.990485413,5934332.6040282&lt;/gml:coordinates&gt;&lt;/gml:Box&gt;&lt;/gml:boundedBy&gt;&lt;packetMember&gt;&lt;StaticFeature
fid="WLIS_UTM32.1"
featureType="WLIS_UTM32"&gt;&lt;gml:lineStringProperty&gt;&lt;gml:LineString
srsName=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/gml/srs/epsg.xml#32632">"http://www.opengis.net/gml/srs/epsg.xml#32632"</a>&gt;&lt;gml:coordinates&gt;555409.5681781038,5934223.853692098
555418.5706741122,5934332.604028199
&lt;/gml:coordinates&gt;&lt;/gml:LineString&gt;&lt;/gml:lineStringProperty&gt;&lt;property&gt;&lt;propertyName&gt;PEGELSTAND&lt;/propertyName&gt;&lt;value
dataType="decimal"&gt;100.0&lt;/value&gt;&lt;/property&gt;&lt;/StaticFeature&gt;&lt;/packetMember&gt;&lt;packetMember&gt;&lt;StaticFeature
fid="WLIS_UTM32.2"
featureType="WLIS_UTM32"&gt;&lt;gml:lineStringProperty&gt;&lt;gml:LineString
srsName=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/gml/srs/epsg.xml#32632">"http://www.opengis.net/gml/srs/epsg.xml#32632"</a>&gt;&lt;gml:coordinates&gt;555418.5706741122,5934332.604028199
557407.5662599645,5933762.565755668
&lt;/gml:coordinates&gt;&lt;/gml:LineString&gt;&lt;/gml:lineStringProperty&gt;&lt;property&gt;&lt;propertyName&gt;PEGELSTAND&lt;/propertyName&gt;&lt;value
dataType="decimal"&gt;100.07000000000001&lt;/value&gt;&lt;/property&gt;&lt;/StaticFeature&gt;&lt;/packetMember&gt;&lt;packetMember&gt;&lt;StaticFeature
fid="WLIS_UTM32.3"
featureType="WLIS_UTM32"&gt;&lt;gml:lineStringProperty&gt;&lt;gml:LineString
srsName=<a class="moz-txt-link-rfc2396E"
 href="http://www.opengis.net/gml/srs/epsg.xml#32632">"http://www.opengis.net/gml/srs/epsg.xml#32632"</a>&gt;&lt;gml:coordinates&gt;557407.5662599645,5933762.565755668
559292.2735897198,5933662.819451575<br>
<br>
(... hundreds of coordinate pairs are following!) <br>
<br>
the gml file is stored in the /srv/www/htdocs/tmp directory<br>
I am running the mapserver vers: 4.2.3 with wms client/server and wfs
client7server support <br>
(that it what the mapserver gives back when typing the ./mapserv -v
command!)<br>
<br>
does anybody have an idea what could still be wrong?<br>
<br>
thanks <br>
Karsten <br>
<br>
<br>
schrieb:
<blockquote cite="mid41ADF0BD.9030906@dmsolutions.ca" type="cite">One
other thing you can try is to force mapserver to send Get request to
the wfs server by adding the following metadata on your layer (default
is Post) : <br>
&nbsp;&nbsp; "wfs_request_method" "GET". <br>
  <br>
&nbsp;You should also test the wfs_server by manulally sending some requests
to make sure that that the wfs responsd properly. Does the <a
 class="moz-txt-link-freetext"
 href="http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;&amp;REQUEST=GetFeature">http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;&amp;REQUEST=GetFeature</a>
  <br>
returns something for you (I does not work for me but It might me an
internal URL) ? <br>
  <br>
Later, <br>
  <br>
  <br>
K. Lessing wrote: <br>
  <br>
  <blockquote type="cite">Hi Bart, <br>
(and dear List Members), <br>
    <br>
first of all I would like to apologize my late response on your quick <br>
answer! <br>
Unfortunatelly I was too busy to spend time on my WFS problem the last <br>
couple of hours. <br>
    <br>
Regarding your answer I chanched the string: <br>
    <br>
CONNECTION <br>
    <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;">"http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;"</a>
    <br>
to: <br>
CONNECTION <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de?/wfs/WFS?">"http://babyz.uni-muenster.de?/wfs/WFS?"</a>
    <br>
(you find the whole mapfile at the bottom of my answer) <br>
    <br>
This resulted in the following gml-file which was stored in the /tmp <br>
directory: <br>
    <br>
&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt; <br>
&lt;HTML&gt;&lt;HEAD&gt; <br>
&lt;TITLE&gt;404 Not Found&lt;/TITLE&gt; <br>
&lt;/HEAD&gt;&lt;BODY&gt; <br>
&lt;H1&gt;Not Found&lt;/H1&gt; <br>
The requested URL /wfs/wfs was not found on this server.&lt;P&gt; <br>
&lt;HR&gt; <br>
&lt;ADDRESS&gt;Oracle HTTP Server Powered by Apache/1.3.22 Server at <br>
BabyZ.geoinformatik.geo.uni-muenster.de Port 80&lt;/ADDRESS&gt; <br>
&lt;/BODY&gt;&lt;/HTML&gt; <br>
    <br>
    <br>
Than I chanced the CONNECTION string to: <br>
    <br>
CONNECTION <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de?">"http://babyz.uni-muenster.de?"</a>
    <br>
    <br>
This resulted in the message of following gml-file: <br>
    <br>
&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt; <br>
&lt;HTML&gt;&lt;HEAD&gt; <br>
&lt;TITLE&gt;405 Method Not Allowed&lt;/TITLE&gt; <br>
&lt;/HEAD&gt;&lt;BODY&gt; <br>
&lt;H1&gt;Method Not Allowed&lt;/H1&gt; <br>
The requested method POST is not allowed for the URL
/index.html.&lt;P&gt; <br>
&lt;HR&gt; <br>
&lt;ADDRESS&gt;Oracle HTTP Server Powered by Apache/1.3.22 Server at <br>
BabyZ.geoinformatik.geo.uni-muenster.de Port 80&lt;/ADDRESS&gt; <br>
&lt;/BODY&gt;&lt;/HTML&gt; <br>
    <br>
As you mentioned earlier the WFS Server does not seem to be able to
cope <br>
with the POST request. <br>
What does this mean ... and what can I do now? <br>
For the first steps with WFS it might be an more promissing way to
start <br>
with another WFS server which is able to work with POST requests? <br>
Would you - Or anybody else - know another WFS server and would also be
    <br>
able to give me the necessary coordinates? <br>
    <br>
many thanks beforehand <br>
Karsten <br>
    <br>
    <br>
(the changed mapfile) <br>
    <br>
MAP <br>
&nbsp; NAME "wfs_client" <br>
&nbsp; SIZE 500 600 <br>
&nbsp; IMAGECOLOR 255 255 255 <br>
&nbsp; EXTENT 9000 5500000 1000000 5600000 <br>
&nbsp; STATUS ON <br>
&nbsp; PROJECTION <br>
&nbsp;&nbsp; "init=epsg:4326" <br>
&nbsp; END <br>
    <br>
WEB <br>
&nbsp; LOG "wfs_client.log" <br>
&nbsp;&nbsp; TEMPLATE "/srv/www/cgi-bin/docs/template5.htm" <br>
&nbsp;&nbsp; IMAGEPATH /var/tmp/ <br>
&nbsp;&nbsp; IMAGEURL tmp <br>
END <br>
    <br>
&nbsp;OUTPUTFORMAT <br>
&nbsp;&nbsp; NAME PNG <br>
&nbsp;&nbsp; DRIVER "GDAL/PNG" <br>
&nbsp;&nbsp; MIMETYPE "image/png" <br>
&nbsp;&nbsp; IMAGEMODE RGBA <br>
&nbsp;&nbsp; EXTENSION "png" <br>
&nbsp;END <br>
    <br>
LAYER <br>
&nbsp;&nbsp; NAME "WaterLevel" <br>
&nbsp;&nbsp; TYPE LINE <br>
&nbsp;&nbsp; STATUS ON <br>
&nbsp;&nbsp; CONNECTION <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de?">"http://babyz.uni-muenster.de?"</a>
    <br>
&nbsp;&nbsp; CONNECTIONTYPE WFS <br>
&nbsp;&nbsp; PROJECTION <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326" <br>
&nbsp;&nbsp; END <br>
&nbsp;&nbsp; METADATA <br>
&nbsp;&nbsp;&nbsp; "wfs_version" "1.0.0" <br>
&nbsp;&nbsp;&nbsp; "wfs_typename" "bafg2" <br>
&nbsp;&nbsp;&nbsp; "wfs_service" "WFS" <br>
&nbsp;&nbsp;&nbsp; "wfs_connectiontimeout" "2000" <br>
&nbsp;&nbsp;&nbsp; "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" <br>
&nbsp;&nbsp;&nbsp; "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" <br>
&nbsp;&nbsp; END <br>
#&nbsp;&nbsp;&nbsp; CLASSITEM "lineId" <br>
&nbsp;&nbsp;&nbsp; CLASS <br>
#&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '124.0' <br>
&nbsp;&nbsp;&nbsp;&nbsp; Color 200 200 200 <br>
&nbsp;&nbsp;&nbsp; END <br>
&nbsp;END <br>
END <br>
    <br>
    <br>
    <br>
Bart van den Eijnden schrieb: <br>
    <br>
    <blockquote type="cite">Hi, <br>
      <br>
could you try using a connection string without parameters. The
typename <br>
you set through metadata differs from the typename you specify in the <br>
connection. The preferred way to do this now is to set all the
variables <br>
through the METADATA and not in the connection string. <br>
      <br>
CONNECTION <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de/wfs/WFS?">"http://babyz.uni-muenster.de/wfs/WFS?"</a>
      <br>
      <br>
Also, does your WFS server support HTTP POST requests? <br>
      <br>
Are there any error messages in your error logs? Is the gml actually <br>
being <br>
downloaded to the tmp directory? <br>
      <br>
Best regards, <br>
Bart <br>
      <br>
On Mon, 29 Nov 2004 16:56:13 +0100, K. Lessing <a
 class="moz-txt-link-rfc2396E" href="mailto:umn@KARSTEN-LESSING.DE">&lt;umn@KARSTEN-LESSING.DE&gt;</a>
      <br>
wrote: <br>
      <br>
      <blockquote type="cite">Dear List member, <br>
        <br>
I am new with the work on mapserver as wfs-client. <br>
I am running Mapserver 4.2.5. with the support of all necessary <br>
libraries on <br>
Suse 9.1. <br>
I read the How2 instruction page for setting up an WFS-Layer. <br>
Unfortunatelly it does not work. <br>
Does anybody maybe have a clue what could be wrong? <br>
Please have a look on the following map file. <br>
        <br>
thanx beforehand <br>
K. Lessing <br>
        <br>
        <br>
MAP <br>
NAME "wfs_client" <br>
SIZE 500 700 <br>
IMAGECOLOR 50 50 50 <br>
EXTENT 9000 5500000 1000000 5600000 <br>
STATUS ON <br>
PROJECTION <br>
"init=epsg:32632" <br>
END <br>
        <br>
WEB <br>
TEMPLATE "template5.html" <br>
IMAGEPATH "/srv/www/htdocs/tmp/" <br>
IMAGEURL "/tmp/" <br>
END <br>
        <br>
OUTPUTFORMAT <br>
NAME "Farbenfroh" <br>
DRIVER "GDAL/JPEG" <br>
MIMETYPE "image/jpeg" <br>
IMAGEMODE RGB <br>
EXTENSION "jpeg" <br>
END <br>
        <br>
LAYER <br>
NAME "WaterLevel" <br>
TYPE LINE <br>
STATUS DEFAULT <br>
CONNECTION <br>
        <a class="moz-txt-link-rfc2396E"
 href="http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;">"http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;"</a>
        <br>
        <br>
CONNECTIONTYPE WFS <br>
PROJECTION <br>
"init=epsg:32632" <br>
END <br>
METADATA <br>
"wfs_version" "1.0.0" <br>
"wfs_typename" "bafg2" <br>
"wfs_service" "WFS" <br>
"wfs_connectiontimeout" "60" <br>
"wfs_latlonboundingbox" "9000 5500000 1000000 5600000" <br>
"wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" <br>
END <br>
CLASSITEM "lineId" <br>
CLASS <br>
EXPRESSION '124.0' <br>
Color 200 200 200 <br>
END <br>
END <br>
END <br>
      </blockquote>
      <br>
      <br>
      <br>
      <br>
      <br>
--&nbsp;<br>
Using Opera's revolutionary e-mail client: <a
 class="moz-txt-link-freetext" href="http://www.opera.com/m2/">http://www.opera.com/m2/</a>
      <br>
      <br>
    </blockquote>
    <br>
  </blockquote>
  <br>
  <br>
</blockquote>
<br>
</body>
</html>