[TinyOWS-users] exceptionCode='InvalidParameterValue'

luca marletta lucamarle at gmail.com
Tue Sep 7 00:58:31 EST 2010


Hi all, thanks for suggestions,
I'm already tried a lot of diffenrend configuration without results.

Here more details

I'm using
svn tinyows
svn openlayers
postgis 1.5.1

that's my last config with log output
		protocol:		new OpenLayers.Protocol.WFS({
			version:		"1.1.0"
			url:			"http://127.0.0.1/cgi-bin/tinyows",
			featureType:  	"sit_manomissioni",
			featureNS:		"http://127.0.0.1",
			srsName:		"EPSG:3003",
			geometryName:	"the_geom",
			schema:			"http://127.0.0.1/cgi-bin/tinyows?service=WFS&version=1.1.0&request=DescribeFeatureType&TypeName=sit_manomissioni"
		})

tinyows layer config
	<layer queryable	=	"1"
		   retrievable	=	"1"
		   writable		=	"1"
		   prefix		=	"feature" <<  as suggested by Alex
		   server		=	"http://127.0.0.1"
		   name			=	"sit_manomissioni"
		   srid			=	"3003"
		   title		=	"manomissioni" />


[Tue Sep  7 07:48:41 2010] [EVENT] == TINYOWS STARTUP ==
[Tue Sep  7 07:48:41 2010] [EVENT] == Connection PostGIS ==
[Tue Sep  7 07:48:41 2010] [EVENT] == Filling Storage ==
[Tue Sep  7 07:48:41 2010] [QUERY]
TypeName=sit_manomissioni&service=WFS&version=1.1.0&request=DescribeFeatureType&
[Tue Sep  7 07:48:41 2010] [EVENT] == TINYOWS SHUTDOWN ==
[Tue Sep  7 07:48:41 2010] [EVENT] == TINYOWS STARTUP ==
[Tue Sep  7 07:48:41 2010] [EVENT] == Connection PostGIS ==
[Tue Sep  7 07:48:41 2010] [EVENT] == Filling Storage ==
[Tue Sep  7 07:48:41 2010] [QUERY] <wfs:GetFeature
xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://127.0.0.1
http://127.0.0.1/cgi-bin/tinyows?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;TypeName=sit_manomissioni"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
typeName="feature:sit_manomissioni" srsName="EPSG:3003"
xmlns:feature="http://127.0.0.1"><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:3003"><gml:lowerCorner>1488745.3354364
5054041.6682668</gml:lowerCorner><gml:upperCorner>1496534.6645636
5059968.3317332</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>
[Tue Sep  7 07:48:41 2010] [ERROR] Element
'{http://www.opengis.net/wfs}Query', attribute 'typeName': [facet
'pattern'] The value 'feature:sit_manomissioni' is not accepted by the
pattern '((\w:)?\w(=\w)?){1,}'.

[Tue Sep  7 07:48:41 2010] [ERROR] Element
'{http://www.opengis.net/wfs}Query', attribute 'typeName':
'feature:sit_manomissioni' is not a valid value of the list type
'{http://www.opengis.net/wfs}TypeNameListType'.

[Tue Sep  7 07:48:41 2010] [ERROR] xml isn't valid
[Tue Sep  7 07:48:41 2010] [EVENT] == TINYOWS SHUTDOWN ==

it seems that 'feature:sit_manomissioni'  is by default and is a bad
parameter, it comes out also if i put prefix	=	""  on config.xml as
show below

[Tue Sep  7 07:55:59 2010] [QUERY] <wfs:GetFeature
xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://127.0.0.1
http://127.0.0.1/cgi-bin/tinyows?service=WFS&amp;version=1.1.0&amp;request=DescribeFeatureType&amp;TypeName=sit_manomissioni"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
typeName="feature:sit_manomissioni" srsName="EPSG:3003"
xmlns:feature="http://127.0.0.1"><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:3003"><gml:lowerCorner>1488745.3354364
5054041.6682668</gml:lowerCorner><gml:upperCorner>1496534.6645636
5059968.3317332</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>
[Tue Sep  7 07:55:59 2010] [ERROR] Element
'{http://www.opengis.net/wfs}Query', attribute 'typeName': [facet
'pattern'] The value 'feature:sit_manomissioni' is not accepted by the
pattern '((\w:)?\w(=\w)?){1,}'.

[Tue Sep  7 07:55:59 2010] [ERROR] Element
'{http://www.opengis.net/wfs}Query', attribute 'typeName':
'feature:sit_manomissioni' is not a valid value of the list type
'{http://www.opengis.net/wfs}TypeNameListType'.

[Tue Sep  7 07:55:59 2010] [ERROR] xml isn't valid
[Tue Sep  7 07:55:59 2010] [EVENT] == TINYOWS SHUTDOWN ==

In this last log there is no "feature" defined anywhere in my code and
it comes out as bad ??

could someone suggest some tests?

thank


luca marletta
www.beopen.it



On Mon, Sep 6, 2010 at 2:23 PM, Alexander Schäfer
<alexander.schaefer at intevation.de> wrote:
> Hello Luca,
>
> i had the same problem a few mounths ago. The error xml isnt valid could have
> many reasons.
>
> First of all which version of postgis and tinyows do you use? Secondy i would
> recommend you to try my tinyows and ol configuration:
>
> protocol: new OpenLayers.Protocol.WFS({
>                    version: "1.1.0", /*should work also with 1.0.0 Version
> but i am not 100% sure.*/
>                    url: "http://servername/cgi-bin/tinyows0.8",
>                    featureType: "osna_point",
>                    srsName: "EPSG:******",
>                    featureNS: "http://servername", /*without prefix*/
> schema: "http://servername/cgi-bin/tinyows?service=WFS&version=1.1.0&request=DescribeFeatureType&TypeName=osna_punkt"
>                })
>
> The prefix of the layer is only in the tinyows config:
>
>  <layer retrievable="1"
>         writeable="1"
>         prefix="feature"
>         server="servername"
>         name="osna_point"
>         title="Points"/>
>
> ----------------------------------------------------------------------------------
>
> Alex
>
>
> Am Montag, 6. September 2010 10:04:00 schrieb luca marletta:
>> fo/tinyows-users
>
>
> --
> Alexander Schäfer | ++49-541-335083-0 | http://www.intevation.de/ |
> Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
> Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
> _______________________________________________
> TinyOWS-users mailing list
> TinyOWS-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tinyows-users
>


More information about the TinyOWS-users mailing list