[Geoserver-users] Problem with WFS-T

GeoServer 1.5.x on WinXP.

I am trying to send a Delete request to the server, but I am having trouble
forming the request.
Here is the Transaction request:
<?xml version="1.0" ?>
<wfs:Transaction
version="1.0.0"
service="WFS"
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:sde="http://geoserver.sf.net"
xmlns:tiger="http://www.census.gov"
xmlns:it.geosolutions="http://www.geo-solutions.it"
xmlns:nurc="http://www.nurc.nato.int"
xmlns:cite="http://www.opengeospatial.net/cite&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns="http://www.opengis.net/wfs&quot;
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd"
xmlns:sf="http://www.openplans.org/spearfish&quot;
xmlns:topp="http://www.openplans.org/topp&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Delete typeName="tiger_roads_Type">
        <ogc:Filter>
            <ogc:FeatureId fid="tiger_roads.1"/>
        </ogc:Filter>
    </wfs:Delete>
</wfs:Transaction>
The response contains "Unexpected exception processing transaction".
On the server console I find:
463102594 [WARNING] org.vfny.geoserver.servlets.AbstractService - service
except
ion while executing request: Lock Id: null
releaseAction: ALL
handle: null
Delete Feature Request
feature type:tiger_roads_Type
filter:[ tiger_roads.1 ]
release:true

cause: Unexpected exception processing transaction

/* much junk snipped in the call stack */

463102594 [WARNING] org.vfny.geoserver.ServiceException - encountered error:
Unexpected exception processing transaction
StackTrace: java.util.NoSuchElementException: Could not locate
FeatureTypeConfig 'tiger_roads_Type'

Thanks for any advice on what I am doing wrong...
--
View this message in context: http://www.nabble.com/Problem-with-WFS-T-tp15611618p15611618.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

The type name is actually tiger_roads, tiger_roads_Type is the title of the type. You may also need to namespace prefix it as well:

typeName="topp:tiger_roads"

Hope that helps.

-Justin

Number8 wrote:

GeoServer 1.5.x on WinXP.

I am trying to send a Delete request to the server, but I am having trouble
forming the request.
Here is the Transaction request:
<?xml version="1.0" ?>
<wfs:Transaction
version="1.0.0"
service="WFS"
xmlns:wfs="http://www.opengis.net/wfs&quot;
xmlns:sde="http://geoserver.sf.net"
xmlns:tiger="http://www.census.gov"
xmlns:it.geosolutions="http://www.geo-solutions.it"
xmlns:nurc="http://www.nurc.nato.int"
xmlns:cite="http://www.opengeospatial.net/cite&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot;
xmlns="http://www.opengis.net/wfs&quot;
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd"
xmlns:sf="http://www.openplans.org/spearfish&quot;
xmlns:topp="http://www.openplans.org/topp&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Delete typeName="tiger_roads_Type">
        <ogc:Filter>
            <ogc:FeatureId fid="tiger_roads.1"/>
        </ogc:Filter>
    </wfs:Delete>
</wfs:Transaction>
The response contains "Unexpected exception processing transaction".
On the server console I find:
463102594 [WARNING] org.vfny.geoserver.servlets.AbstractService - service
except
ion while executing request: Lock Id: null
releaseAction: ALL
handle: null
Delete Feature Request
feature type:tiger_roads_Type
filter:[ tiger_roads.1 ]
release:true

cause: Unexpected exception processing transaction

/* much junk snipped in the call stack */

463102594 [WARNING] org.vfny.geoserver.ServiceException - encountered error:
Unexpected exception processing transaction
StackTrace: java.util.NoSuchElementException: Could not locate
FeatureTypeConfig 'tiger_roads_Type'

Thanks for any advice on what I am doing wrong...

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com