[TinyOWS-users] exceptionCode='InvalidParameterValue'

luca marletta lucamarle at gmail.com
Mon Sep 6 03:04:00 EST 2010


Hi List,
I got this error in my openlayers -tinyows application,

(tinyows is from svn)

I've no troble updating an existing feature

but posting an INSERT request I got this

<?xml version='1.0' encoding='UTF-8'?>
<ows:ExceptionReport  xmlns='http://www.opengis.net/ows'
xmlns:ows='http://www.opengis.net/ows'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
version='1.1.0' language='en'>
 <ows:Exception exceptionCode='InvalidParameterValue' locator='request'>
  <ows:ExceptionText>xml isn't valid</ows:ExceptionText>
 </ows:Exception>
</ows:ExceptionReport>

and here is the POST
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Insert><feature:sit_manomissioni
xmlns:feature="http://127.0.0.1/"><feature:the_geom><gml:Polygon
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:3003"><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates
decimal="." cs="," ts=" ">1491966.2852219855,5057336.017724436
1491939.4741253525,5057402.339910844
1491825.879742249,5057354.362158974
1491813.8853042815,5057238.651110347
1491966.2852219855,5057336.017724436</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></feature:the_geom><feature:rete>1</feature:rete><feature:oggetto>test</feature:oggetto><feature:descrizione>abcd
abcd abcd</feature:descrizione></feature:sit_manomissioni></wfs:Insert></wfs:Transaction>


here my config.xml

<tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
		 schema_dir="/usr/local/tinyows/schema/"
		 check_schema= "1"
		 log="/tmp/tinyows.log">

	<pg host="127.0.0.1" user="user" password="pass" dbname="database"
port="5432"/>

	<metadata
		   name="Viario"
		   title="TinyOWS Service"
		   keywords="tinyows,ows,wfs,ogc"
		   online_resource="http://www.beopen.it/"
		   fees="free"
		   access_constraint="nope" >
		<abstract>
		  Viario...
		</abstract>
		<contact ecc..  />
	</metadata>
	<layer queryable	=	"1"
		   retrievable	=	"1"
		   writable		=	"1"
		   prefix		=	"u_sot"
		   server		=	"http://127.0.0.1/"
		   name			=	"sit_manomissioni"
		   srid			=	"3003"
		   title		=	"manomissioni" />

</tinyows>

this is vector layer

	vector_man = new OpenLayers.Layer.Vector("Edit manomissioni", {
		styleMap:		oStyleMap,
		strategies:		[new OpenLayers.Strategy.BBOX(), oSaveStrategy],
		projection:		new OpenLayers.Projection("EPSG:3003"),
		protocol:		new OpenLayers.Protocol.WFS({
			featureVersion: "1.0.0",
			version:		"1.0.0",
			url:			"http://127.0.0.1/cgi-bin/tinyows",
			featureType:	"sit_manomissioni",  // la tabella postgis lo srid
deve corrispondere e deve avere la chiave primaria
			featurePrefix:	"u_sot",
			srsName:		"EPSG: 3003",
			geometryName:	"the_geom",
			schema:			"http://127.0.0.1/cgi-bin/tinyows?service=WFS&version=1.0.0&request=DescribeFeatureType&TypeName=sit_manomissioni"
		})
	});

I use protocol version 1.0.0 because otherwise I've errors and vector
is not visible, with 1.0.0 all work correctly, also update feature
(geometry and data) but not insert

could someone suggest how to solve?

luca marletta
www.beopen.it


More information about the TinyOWS-users mailing list