Hi, I tried both of them with the same result. Trial with CadCorp WFS client was successful wit GET but not with POST but the error message does not tell too much. It says just "Unexpected element name: HTML" -Jukka-
________________________________ Lähettäjä: UMN MapServer Users List puolesta: Yewondwossen Assefa Lähetetty: pe 9.11.2007 16:59 Vastaanottaja: [email protected] Aihe: Re: [UMN_MAPSERVER-USERS] WFS POST requests: "No template provided" error Jukka, What server did you use : http://map.ns.ec.gc.ca/envdat/map.aspx or http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/envdat/config.map Best Regards, Rahkonen Jukka wrote: > Hi, > > I made a test with OpenJUMP WFS plugin (http://openjump.org > <http://openjump.org/> ) that is using only POST method. > For the first link GetCapabilities goes OK, but the plugin cannot parse the > response correctly. Because of that I cannot send DescribeFeatureType, but > when I tried GetFeature I got also "No template provided" error. > > This is the request that OpenJUMP plugin is generating: > <?xml version="1.0" encoding="ISO-8859-1"?> > <wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" > xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" > service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2"> > <wfs:Query xmlns:null="null" typeName="envirodat"> > </wfs:Query> > </wfs:GetFeature> > > And this is the response: > <HTML><HEAD><TITLE>MapServer Message</TITLE></HEAD><!-- MapServer version > 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG --><BODY > BGCOLOR="#FFFFFF">mapserv(): Web application error. No template provided. > <br></BODY></HTML> > > The result is the same with the other URL. > > OpenJUMP plugin was developed against GeoServer version 1.5, and with that it > works rather well, despite sometimes parsing errors with certain data types > (time, decimal). However, is has always had problems with all MapServer > based WFS services, including my own ones. As its best I can get > GetCapabilities and even GetFeature through, but there has always been some > problems with parsing the capabilities right, and with DescribeFeatureType. > The plugin has some tools for debugging so if someone sends me URLs I may try > those and see what happens. > > -Jukka Rahkonen- > > > > > > ________________________________ > > Lähettäjä: UMN MapServer Users List puolesta: Frank Steggink > Lähetetty: pe 9.11.2007 15:43 > Vastaanottaja: [email protected] > Aihe: Re: [UMN_MAPSERVER-USERS] WFS POST requests: "No template provided" > error > > > > 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. > > 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. > > Frank > > -----Original Message----- > From: Yewondwossen Assefa [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 17:30 > To: Frank Steggink > Cc: [email protected] > 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: [EMAIL PROTECTED] > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: [EMAIL PROTECTED] http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ----------------------------------------------------------------
