opengeospatial / ets-wfs20

Executable Test Suite for WFS 2.0
Other
9 stars 11 forks source link

java.lang.AssertionError: XPath expression cannot be evaluated: not(xs:anySimpleType(ns1:propertyValue<br>[1]) = xs:anySimpleType('240.000000'))XPath syntax error #196

Closed zguo closed 2 years ago

zguo commented 3 years ago

I am getting the following errors when try to validate the following WFS http://agsinspire1.esri.com/arcgis/rest/services/el1/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetCapabilities

java.lang.AssertionError: XPath expression cannot be evaluated: not(xs:anySimpleType(ns1:propertyValue
[1]) = xs:anySimpleType('240.000000'))XPath syntax error at char 43 in {...tyValue
[1]) = xs:anySimpleT...}: Unknown constructor function: {http://www.w3.org/2001/XMLSchema}anySimpleType.

here is the specific request give the error, the response looks ok to us, thus not sure what the error is about, is it a validator issue?

get request

http://agsinspire1.esri.com/arcgis/rest/services/el1/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetFeature&count=10&typenames=ns37:ContourLine&namespaces=xmlns(xml,http://www.w3.org/XML/1998/namespace),xmlns(ns37,http://inspire.ec.europa.eu/schemas/el-vec/4.0),xmlns(wfs,http://www.opengis.net/wfs/2.0)&filter=%3CFilter%20xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Ffes%2F2.0%22%20xmlns%3Ans37%3D%22http%3A%2F%2Finspire.ec.europa.eu%2Fschemas%2Fel-vec%2F4.0%22%20xmlns%3Awfs%3D%22http%3A%2F%2Fwww.opengis.net%2Fwfs%2F2.0%22%3E%3CPropertyIsNotEqualTo%20matchAction%3D%22All%22%20matchCase%3D%22true%22%3E%3CLiteral%3E240.000000%3C%2FLiteral%3E%3CValueReference%20xmlns%3Atns%3D%22http%3A%2F%2Finspire.ec.europa.eu%2Fschemas%2Fel-vec%2F4.0%22%3Etns%3ApropertyValue%3C%2FValueReference%3E%3C%2FPropertyIsNotEqualTo%3E%3C%2FFilter%3E

post request

url: http://agsinspire1.esri.com/arcgis/services/el1/MapServer/InspireFeatureDownload

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="10" service="WFS" version="2.0.0"> <wfs:Query xmlns:ns63="http://inspire.ec.europa.eu/schemas/el-vec/4.0" typeNames="ns63:ContourLine">

240.000000 tns:propertyValue

</wfs:Query> </wfs:GetFeature>

response

http://agsinspire1.esri.com/arcgis/rest/services/el1/MapServer/exts/InspireFeatureDownload/service?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&STOREDQUERY_ID=urn:ogc:def:query:OGC-WFS::GetFeatureById&id=elContourLineL.102 2019-08-01T00:00:00 2019-08-09T00:00:00 43.495805156000 18.072968379000 Ext Description 705 1 43.676527818000 17.531609172000 43.676527818000 18.226411786000 43.219562881000 18.229848525000 43.205286115000 17.516010223000 43.676527818000 17.531609172000
dstenger commented 3 years ago

Thank you for reporting.

You are probably referring to the tests

The XPath expression is constructed here: https://github.com/opengeospatial/ets-wfs20/blob/9e2827be1e1eb2daaa36f8d2db098eed2b0eb635/src/main/java/org/opengis/cite/iso19142/basic/filter/PropertyIsEqualToOperatorTests.java#L88

Following expression cannot be processed: xs:anySimpleType(ns1:propertyValue[1])

We will do further investigation if there is an error in the test suite.

zguo commented 3 years ago

Just to see if any updates on this issue? we seem to run into the same issue on some other INSPIRE data themes as well.

bpross-52n commented 2 years ago

@zguo I am working on the issue, but the service is no longer available. Could you point me to another instance, maybe?

zguo commented 2 years ago

Hi @bpross-52n,

Please try this one instead: http://agsinspire1.esri.com/arcgis/rest/services/elc/MapServer/exts/InspireFeatureDownload/service?service=WFS&version=2.0.0&request=GetCapabilities

Thanks,

ZhongPing

bpross-52n commented 2 years ago

Hi @zguo, thanks for the link. I tested it last week and could not reproduce the issue. In my understanding, we would need a service with one or more properties of type xs:AnySimpleType.

mpleic commented 2 years ago

Hello,

our service fails at the similar test step returnig the similar type of an error: OGC TEAM Engine reported a failed test: XPath expression cannot be evaluated: not(xs:anySimpleType(ns1:dateOfDiscovery[1]) = xs:anySimpleType('1987-05-31Z'))XPath syntax error at char 45 in {...scovery[1]) = xs:anySimpleT...}: Unknown constructor function: {http://www.w3.org/2001/XMLSchema}anySimpleType.

So you can use it and try to reproduce this type of an error and try to fix a problem. Here is the INSPIRE WFS validation report: Test object Katastarski plan - Eksploatacijsko polje ugljikovodika Okoli - WFS.zip

Thank you in advance, Marko Pleić

bpross-52n commented 2 years ago

Thank you @mpleic, we will do further investigations with your service.