<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Hi everybody.<br>I'm trying to handle WFS with Mapscript but it's not working for me.<br>Output of the code below supose to be the name of the GML file, but it's only empty string. <br>What's wrong??<br><br>CODE::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::<br>&lt;?php<br>&nbsp;dl('php_mapscript.dll'); &nbsp;<br>&nbsp;$map_path="/ms4w/apps/test/";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>$map = ms_newMapObj($map_path."lol.map");<br>$kokot = $map-&gt;getLayerByName("MyWFS");<br>$GMLname= "= ".$kokot-&gt;executeWFSGetfeature()." =";<br>?&gt;<br>&lt;HTML&gt;<br>&nbsp;&nbsp; &lt;HEAD&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;TITLE&gt;WFS-pokus&lt;/TITLE&gt;<br>&nbsp; &lt;/HEAD&gt;<br>&nbsp; &lt;BODY&gt; &nbsp;<br>&nbsp; &lt;IMG SRC=&lt;?php echo $image_url; ?&gt;
 &gt;<br>&nbsp; &lt;?php echo $GMLname; ?&gt;<br>&nbsp; &lt;/BODY&gt;<br>&nbsp;&lt;/HTML&gt;<br><br><br>MAPFILE::::::::::::::::::::::::::::::<br><br>MAP<br>&nbsp; NAME "demoPlugins"<br>&nbsp; SIZE&nbsp;&nbsp;&nbsp; 600 400<br>&nbsp; STATUS ON<br>&nbsp; EXTENT -600000 -1334715 -159000 -1132715<br>&nbsp; IMAGECOLOR 255 255 255<br>&nbsp; UNITS METERS<br>&nbsp; <br>&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; "init=EPSG:102067"<br>&nbsp; END<br><br>&nbsp;&nbsp; WEB<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL "/ms_tmp/"<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp; "wfs_title" "msCross WFS Server" ## REQUIRED<br>&nbsp;&nbsp;&nbsp;&nbsp; "wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv?" ## Recommended<br>&nbsp;&nbsp;&nbsp;&nbsp; "wfs_srs" "EPSG:102067 EPSG:3064 EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326" ## Recommended<br>&nbsp;&nbsp;&nbsp;&nbsp; END
 <br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; <br>&nbsp; LEGEND<br>&nbsp;&nbsp;&nbsp; STATUS EMBED<br>&nbsp;&nbsp;&nbsp; KEYSIZE 20 15<br>&nbsp; END<br><br>&nbsp; ##########<br>&nbsp; # LAYERS #<br>&nbsp; ##########<br>&nbsp;<br>&nbsp; <br>&nbsp; LAYER <br>&nbsp;&nbsp; NAME "MyWFS"<br>&nbsp; CONNECTIONTYPE postgis<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION "user=JAVLLAR password=kreator host=localhost dbname=SlovGis"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA "the_geom FROM setl"<br>&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp; WMS_SRS "EPSG:28992"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wfs_title" "MyWFS"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ## REQUIRED<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "gml_featureid" "id" ## REQUIRED<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "gml_include_items" "id" ## Optional (serves all attributes for layer)<br>&nbsp;&nbsp;&nbsp;&nbsp; END <br>&nbsp;&nbsp; DUMP TRUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ##
 REQUIRED<br>&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp; TYPE POINT<br>&nbsp;&nbsp;&nbsp; CLASS <br>&nbsp;&nbsp;&nbsp; NAME "WFSvrstva"<br>&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0 <br>&nbsp;&nbsp;&nbsp;&nbsp; END <br>&nbsp;&nbsp;&nbsp; END&nbsp; <br>&nbsp; END<br>&nbsp; <br>END<br><br><br>Thanks for help.<br></div><br>

      </body></html>