[CITE-Forum] Two problems in WFS 1.1.0 test
Andreas Schmitz
schmitz at lat-lon.de
Fri Nov 19 05:22:54 EST 2010
Arthur Liu wrote:
Hi,
> For wfs-1.1.0-Basic-GetFeature-tc23.1 I get following error:
>
> Test wfs:wfs-1.1.0-Basic-GetFeature-tc23.1 (s0004/d1e35143_1/d1e740_1/d1e25223_1/d1e6182_1)
>
> Assertion: The following query parameters are required for all KVP-encoded service requests except GetCapabilities: service, request, version.
>
> Request d1e6707_1:
> Method: get
> URL: http://MyServer?service=WFS&version=&request=GetFeature&typename=sf:PrimitiveGeoFeature&namespace=xmlns(sf=http://cite.opengeospatial.org/gmlsf)
> Response from parser p:XMLValidatingParser.GMLSF1:
>
> Messages from parser p:XMLValidatingParser.GMLSF1:
> Validation error:
> cvc-elt.1: Cannot find the declaration of element 'ServiceExceptionReport'.
> 1 validation error detected.
>
>
> Message d1e6740_1:
> FAILURE: Missing or invalid response entity.
>
> Result: Failed
>
> Because there's no version specified, we can't decide to response a
> ServiceExceptionReport for WFS 1.0.0 or ows:ExceptionReport for 1.1.0
I think like for GetCapabilities, sending the highest version you know
of might be a good idea. Your response is definitely not 1.1.0, that's
why it fails.
> For Test wfs:wfs-1.1.0-Basic-DescribeFeatureType-tc12.1, two sub test cases failed.
>
> Test ctl:assert-xpath (s0004/d1e35143_1/d1e740_1/d1e25198_1/d1e3834_1/d1e4656_1)
>
> Assertion:
> Evaluates the given XPath expression against the input document and
> returns a boolean result according to the XPath specification (see
> http://www.w3.org/TR/xpath#section-Boolean-Functions).
>
>
> Message d1e28_1:
> The expression '//@targetNamespace = 'http://cite.opengeospatial.org/gmlsf'' is false.
>
> Result: Failed
>
>
> Test ctl:assert-xpath (s0004/d1e35143_1/d1e740_1/d1e25198_1/d1e3834_1/d1e4666_1)
>
> Assertion:
> Evaluates the given XPath expression against the input document and
> returns a boolean result according to the XPath specification (see
> http://www.w3.org/TR/xpath#section-Boolean-Functions).
>
>
> Message d1e28_1:
> The expression '(//xsd:element/@name = 'PrimitiveGeoFeature') and (//xsd:element/@name = 'AggregateGeoFeature') and (//xsd:element/@name = 'EntitéGénérique')' is false.
>
> Result: Failed
>
>
> The DescribeFeatureType response is a <xs:import schemaLocation=..../>
> format, do you think those 2 sub test cases are needed?
The first test fails because you don't define a targetNamespace in your
schema. Maybe the other test failures are followup errors. Try fixing
the first test and see if it changes anything.
Best regards, Andreas
--
l a t / l o n GmbH
Aennchenstrasse 19 53177 Bonn, Germany
phone ++49 +228 18496-0 fax ++49 +228 18496-29
http://www.lat-lon.de http://www.deegree.org
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
deegree day 2010
http://deegreeday.deegree.org
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20101119/ca5412b9/attachment.pgp>
More information about the CITE-Forum
mailing list