hi, I want use the function WfsFeatureLayer for connect to WFS MAPSERVER.
My code is very simple :
WfsFeatureLayer wfs = new WfsFeatureLayer("127.0.0.1:8181/cgi-bin/mapse...in/wfs.map &", "zone"); wfs.Open();
...
but i never a reponse, column et feature are null
After compared the request with Quamtum GIS, Mapsuite insert the char "?" after the url for DescribeFeatureType and GetFeature
GET /cgi-bin/mapserv.exe?map=C:/ms4w/Apache/cgi-bin/wfs.map&?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=zone HTTP/1.1
GET /cgi-bin/mapserv.exe?map=C:/ms4w/Apache/cgi-bin/wfs.map&?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=zone&propertyname= HTTP/1.1
With a navigator, if delete the "?" MAPSERVER send to me the data.
What make ?
We use the mapSuiteCore 4.5.0.0. I try with teh last version 5.5.0.0 but the result is the same.
Thank for you return
Gary2
February 7, 2012, 7:56am
2
Hello thierry, Thanks for your post, the input parameter “127.0.0.1:8181/cgi-bin/mapse…in/wfs.map&” isn’t right, it should be WfsFeatureLayer wfs = new WfsFeatureLayer("127.0.0.1:8181/cgi-bin/mapse…in/wfs.map", "zone"); Thanks, Gary
thierry
February 13, 2012, 4:26am
3
Hi Gary
I remove the char & at the end line, but i always the same problem. Mapserver return a error. In fact, there is always two char '?' in the query
with Mapsuite :127.0.0.1:8181/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/cgi-bin/plan.map?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=zone&propertyname =
With Quantum one char is used :127.0.0.1:8181/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/cgi-bin/plan.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=zone&propertyname =
For me there is in bug with Mapsuite, it inserts the character '?' instead of '&' in the query
Thank for you return
Gary2
February 13, 2012, 2:47pm
4
Hello thierry, Thanks for your further information. Yes we are using ? not & before SERVICE, it's design for that, but if it's not working for your server, is that possible you can provide a link that we can do some test? Regards, Gary