WFS POST requests: "No template provided" error
Yewondwossen Assefa
yassefa at DMSOLUTIONS.CA
Fri Nov 9 06:13:27 PST 2007
Frank.Steggink at bentley.com wrote:
> Hello Yewondwossen,
>
> Sorry, no improvement here. I'm not getting an error, but I got a time
> out, while posting (DescribeFeatureType) to the original server URL
> (http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/en
> vdat/config.map).
> Also, the other service I mentioned,
> http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp, uses this same URL as online
> resources, which already gave the template error.
>
Not sure why would that be. I just retried it (my client is php script
using curl to send a post request), and both DescribeFeature and
GetFeature return properly. If necessary I can provide the test script.
> I'm a bit out of options right now. As already mentioned, when I'm using
> GET, then everything works fine, so our client will be able to access
> MapServer. I'll try a few other MapServer WFS's, and see what they do.
> (Using POST, and the online resource URL's.) There are quite a lot of
> them online. If they all give the same result, then I'm going to file a
> bug in Trac. It is no coincidence if several servers, which are set up
> independently, all have the same problem.
>
Ok that works.
Best Regards,
> Frank
>
> -----Original Message-----
> From: Yewondwossen Assefa [mailto:yassefa at dmsolutions.ca]
> Sent: Thursday, November 08, 2007 17:30
> To: Frank Steggink
> Cc: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] WFS POST requests: "No template
> provided" error
>
> Hi There,
>
> WFS POST is supported by MapServer. Looking into this thread, you
> mentioned a couple of URLS and I have tried the follwing one :
> "http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/en
> vdat/config.map"
>
> I have tried WFS post requests describefeature and getfeature with
> this service and It responds correctly. It is a Mapserve 4.8.3.
>
> I am guessing that there is something 'wrong" with the service
> accessed though the script at http://map.ns.ec.gc.ca/envdat/map.aspx
> where the post requests are not maybe transfered properly to Mapserver.
>
> Hopefully this helps.
>
> Best Regards,
>
>
> Frank Steggink wrote:
>> Hello Daniel,
>>
>> Thanks for the reply. I've tried your suggestion, but unfortunately it
>
>> didn't work. I'm getting the following ServiceException:
>>
>> <ServiceExceptionReport
>> xmlns="http://www.opengis.net/ogc"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://www.opengis.net/ogc
>> http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd">
>> <ServiceException>
>> msWFSDispatch(): WFS server error. Incomplete WFS request: VERSION
>> parameter missing
>> </ServiceException>
>> </ServiceExceptionReport>
>>
>> The URL is http://map.ns.ec.gc.ca/envdat/map.aspx?SERVICE=WFS& and the
>
>> post data is the same as in the original message.
>>
>> It really looks like MapServer only accepts GET request for WFS. So,
>> the simple fix you suggested will probably not be enough. I'm going to
> file a ticket.
>> In case
>> something needs to be tested, please let me know.
>>
>> Frank
>>
>
>
> --
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
>
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
>
> Phone: (613) 565-5056 (ext 14)
> Fax: (613) 565-0925
> ----------------------------------------------------------------
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list