Hi all !!
I'm new to GeoServer but I installed it properly on Windows, and it's connected to a PostGIS Database on Solaris 8.
I used the Tester to try some request.
It works well, for DescribeFeatureType and GetFeature request(GetCapabilities seems to have some bug, but that's not the big problem)
But I can't get a Transaction working. I know it can work because the line " http://localhost:8080/geoserver/Transaction?operation=delete&typename=xxxxx&featureid=00001 " is a success.
As soon as i use xml encoded requests, it stops working.
Maybe i'm making a mistake in the xml shema ...
Here are two requests that should work but don't (i tried different schemas in order to find one which works ...):
1)
<?xml version="1.0" encoding='ISO-8859-1' ?>
<Transaction version="1.0.0" service="WFS" outputFormat="XMLSCHEMA">
<wfs:Delete typename="Comm">
<ogc:filter>
<ogc:FeatureId fid="Comm.17117">
</ogc:filter>
</wfs:Delete>
</wfs:Transaction>
2)
<?xml version="1.0"?>
<wfs:Transaction version="1.0.0" service="WFS" xsi:schemaLocation="http://localhost:8080/geoserver/DescribeFeatureType?typename=comm">
<wfs:Insert>
<Comm>
<gid>1000</gid>
<ID_BDCARTO>15</ID_BDCARTO>
<NOM_COMM>Test</NOM_COMM>
<INSEE_COMM>007</INSEE_COMM>
<SATUT>Capital</SATUT>
<X_COMMUNE>668000</X_COMMUNE>
<Y_COMMUNE>1802360</Y_COMMUNE>
<SUPERFICIE>5000</SUPERFICIE>
<POPULATION>5000</POPULATION>
<INSEE_CANT>14</INSEE_CANT>
<INSEE_ARR>3</INSEE_ARR>
<NOM_DEPT>AUDE</NOM_DEPT>
<INSEE_DEPT>11</INSEE_DEPT>
<NOM_REGION>LANGUEDOC-ROUSSILLON</NOM_REGION>
<INSEE_REG>91</INSEE_REG>
<the_geom>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>-100,50,-110,55</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</the_geom>
</Commune>
</wfs:Insert>
</wfs:Transaction>
Note that these two examples are not encoded the same way (see the two first lines of each) but anyway, it doesn't work
I always get a IOException because the result of the request is an HTTP error code 500 (Servlet exception)
Please help me !!!
I don't know what to do
Thanks a lot !
_________________________________________________________________
Hotmail : un compte GRATUIT qui vous suit partout et tout le temps ! http://g.msn.fr/FR1000/9493