Hi all,

I'm testing GeoServer 2.1.2, WFS-Transaction 1.1 with POSTGIS="1.5.3" 
GEOS="3.3.0-
CAPI-1.7.0" PROJ="Rel. 4.7.1"

In the start my WFS service responds to GetCapabilities and 
DescribeFeatureType both as HTTP GET and POST.

Then I test WFS-T Insert, which hangs forever (I'm using curl).
See log below.
Nothing is inserted into PostGIS, and I can see from the PostgreSQL logs that 
Geoserver has a connection, so probably not a connection issue.

After that only HTTP GET work, _not_ HTTP POST, until I restart Tomcat 
(version 7.0.22).

Do you have an advice?

kind regards
Jorn-Vegard

-----------Curl script
#!/bin/sh
SERVICE_URL=http://hostname:8080/geoserver/wfs?strict=true
curl -X POST -H 'Content-type: text/xml' -d @$1 $SERVICE_URL


------------WFS-T request:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:Transaction service="WFS" version="1.1.0"
  xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:gml="http://www.opengis.net/gml";
  xmlns:bw="http://www.host.no/bw";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd http://www.host.no/bw 
http://hostname:8080/geoserver/wfs/DescribeFeatureType?typename=bw:wfst";>
  <wfs:Insert>
    <bw:wfst>
      <bw:geometry_linestring>
        <gml:LineString 
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>
              <gml:coordinates decimal="." cs="," ts=" ">
19,20,19.5,20.1
              </gml:coordinates>
        </gml:LineString>
      </bw:geometry_linestring>
      <bw:uuid>f47ac10b-58cc-4372-a567-0e02b2c3d479</bw:uuid>
    </bw:wfst>
  </wfs:Insert>
</wfs:Transaction>


------------DescribeFeatureType response:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:bw="http://www.host.no/bw"; 
xmlns:cite="http://www.opengeospatial.net/cite"; 
xmlns:gml="http://www.opengis.net/gml"; xmlns:it.geosolutions="http://www.geo-
solutions.it" xmlns:nurc="http://www.nurc.nato.int"; 
xmlns:sde="http://geoserver.sf.net"; 
xmlns:sf="http://www.openplans.org/spearfish"; 
xmlns:tiger="http://www.census.gov"; xmlns:topp="http://www.openplans.org/topp"; 
elementFormDefault="qualified" targetNamespace="http://www.host.no/bw";>
  <xsd:import namespace="http://www.opengis.net/gml"; 
schemaLocation="http://hostname:8080/geoserver/schemas/gml/3.1.1/base/gml.xsd"/>
  <xsd:complexType name="wfstType">
    <xsd:complexContent>
      <xsd:extension base="gml:AbstractFeatureType">
        <xsd:sequence>
          <xsd:element maxOccurs="1" minOccurs="0" name="freetext" 
nillable="true" type="xsd:string"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="geometry_point" 
nillable="true" type="gml:PointPropertyType"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="geometry_polygon" 
nillable="true" type="gml:SurfacePropertyType"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="geometry_linestring" 
nillable="true" type="gml:LineStringPropertyType"/>
          <xsd:element maxOccurs="1" minOccurs="0" name="uuid" nillable="true" 
type="xsd:string"/>
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>
  <xsd:element name="wfst" substitutionGroup="gml:_Feature" 
type="bw:wfstType"/>
</xsd:schema>


-----------Geoserver logs:

2011-12-02 15:07:18,765 DEBUG [org.geoserver.ows] - Raw XML request: <?xml 
version="1.0" encoding="UTF-8"?><wfs:Transaction service="WFS" version="1.1.0"  
xmlns:wfs="http://www.opengis.net/wfs";  xmlns:gml="http://www.opengis.net/gml";  
xmlns:bw="http://www.host.no/bw";  xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"  xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd http://www.host.no/bw 
http://hostname:8080/geoserver/wfs/DescribeFeatureType?typename=bw:wfst";>  
<wfs:Insert>    <bw:wfst>      <bw:geometry_linestring>        <gml:LineString 
srsName="http://www.opengis.net/gml/srs/epsg.xml#4326";>              
<gml:coordinates decimal="." cs="," ts=" ">19,20,19.5,20.1              
</gml:coordinates>        </gml:LineString>      </bw:geometry_linestring>      
<bw:uuid>f47ac10b-58cc-4372-a567-0e02b2c3d479</bw:uuid>    </bw:wfst>  
</wfs:Insert></wfs:Transaction>
2011-12-02 15:07:18,766 INFO [org.geoserver.wfs] -
Request: getServiceInfo
2011-12-02 15:07:18,834 DEBUG [org.geoserver.filters] - filtering 
http://hostname:8080/geoserver/wfs/DescribeFeatureType
2011-12-02 15:07:18,835 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Looking 
up handler for [/wfs/DescribeFeatureType]
2011-12-02 15:07:18,835 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Looking 
up handler for [/wfs/DescribeFeatureType]
2011-12-02 15:07:18,835 DEBUG [org.geoserver.ows.OWSHandlerMapping] - Looking 
up handler for [/wfs/DescribeFeatureType]
2011-12-02 15:07:18,836 INFO [org.geoserver.wfs] -
Request: getServiceInfo
2011-12-02 15:07:18,836 INFO [org.geoserver.wfs] -
Request: describeFeatureType
        handle = null
        service = WFS
        version = 1.1.0
        baseUrl = http://hostname:8080/geoserver/
        providedVersion = null
        extendedProperties = {}
        typeName = [{http://www.host.no/bw}wfst]
        outputFormat = text/xml; subtype=gml/3.1.1


-------------------------------------------------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to