I use config.loadModel(modelid, uri) with uri = '
http://localhost/tagis/gui/test.php'; then I get error:

Image: http://sendpics.vnpower.org/post/26426524/38596120.png

but If I use uri = "
http://localhost:8080/geoserver/wfs?request=GetFeature&typeName=binhthanh:diadanh&outputFormat=GML2&FEATUREID=diadanh.3";;
then it work well.

Note that both return same result.

So I can't use config.loadModel() in my function.

My PHP script example:

<?php
// Send the headers
header('Content-type: text/xml');
header('Pragma: public');
header('Cache-control: private');
header('Expires: -1');
$xmlstring = '<?xml version="1.0" encoding="UTF-8"?><wfs:FeatureCollection
xmlns="http://www.opengis.net/wfs"; xmlns:wfs="http://www.opengis.net/wfs";
xmlns:binhthanh="http://localhost:8080/geoserver"; xmlns:gml="
http://www.opengis.net/gml"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://localhost:8080/geoserver
http://localhost:8080/geoserver/wfs/DescribeFeatureType?typeName=binhthanh:diadanh
http://www.opengis.net/wfs
http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd";><gml:boundedBy><gml:Box
srsName="http://www.opengis.net/gml/srs/epsg.xml#3405";><gml:coordinates
xmlns:gml="http://www.opengis.net/gml"; decimal="." cs="," ts=" ">577419.9375
,1193777.625 
577420,1193777.75</gml:coordinates></gml:Box></gml:boundedBy><gml:featureMember><binhthanh:diadanh
fid="diadanh.3"><binhthanh:nameu>Ngan Hang Cong Thuong Viet Nam-Chi Nhanh
7-Quy Tiet Kiem so 3</binhthanh:nameu><binhthanh:addressu>22 Xo Viet Nghe
Tinh, Phuong 19, Quan Binh
Thanh</binhthanh:addressu><binhthanh:tel_fax>8990872</binhthanh:tel_fax><binhthanh:objecttype>Bank</binhthanh:objecttype><binhthanh:the_geom><gml:Point
srsName="http://www.opengis.net/gml/srs/epsg.xml#3405";><gml:coordinates
xmlns:gml="http://www.opengis.net/gml"; decimal="." cs="," ts=" ">
577419.95164139,1193777.73306767
</gml:coordinates></gml:Point></binhthanh:the_geom><binhthanh:names>nganhangcongthuongvietnam-chinhanh7-quytietkiemso3</binhthanh:names></binhthanh:diadanh></gml:featureMember></wfs:FeatureCollection>';
echo($xmlstring);
?>

-- 
   Nguyễn Đình Toán

-------------------------
Neu khong doc duoc tieng Viet, vui long vao menu View --> chon Encoding -->
chon Unicode (UTF-8). Cam on.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to