Open CeciliaPH opened 1 month ago
Thank you for reporting. We will do further investigation.
We made further investigation and discovered that is something that happens when you retrieve data by a POST request. If you ask via REST request the data retrieved should be correct. We are using deegree 3 to serve this data. May be is an internal parameter that changes the srsName while using POST. Does the petition need to be POST to accomplish the requirement?
@CeciliaPH I can confirm your findings, the incorrect EPSG code is returned from the server when requesting using POST. When the service supports POST requests, this will be tested. However, POST is not mandatory for WFS 2.0 services, see Chapter 6.4 of the WFS 2.0 standard.
Hi Benjamin,
We are really interested in complete the tests successfully. If the test is successful in GET, we understand that validator should not raise an error. We wonder which should be the next steps, as this issue is in Waiting in CITE.
Best regards,
Hi @CeciliaPH, The unexpected srsName is produced by your service when requested via POST. Thus, the error seems to be on the service side. Can you please check that? The request sent by TEAM Engine should be correct. @bpross-52n Can you please share the exact request which is leading to the response with the unexpected srsName?
Exactly, the srsName is produced by deegree 3. There is something intern that changes de srsName style, to the one with urn. Any way, using GET it works properly, but engine uses POST.
This is the kind of post request that raises the error. (any petition would, as the software changes de srsName style) https://www.ign.es/wfs-inspire/ngbe?
Describe the bug When validating our service https://www.ign.es/wfs-inspire/ngbe?request=GetCapabilities&service=WFS
We receive this error. Simple WFS (1 error). OGC TEAM Engine reported a failed test: Unexpected @srsName value on element srsName expected [http://www.opengis.net/def/crs/EPSG/0/4326] but found [urn:ogc:def:crs:EPSG:6.3:4326]
We don't understand where this error comes from. If you make the individual requests there is no way that the servers returns [urn:ogc:def:crs:EPSG:6.3:4326]. We would like to understand where this urn style string is coming from.
Thanks,
Cecilia
To Reproduce https://www.ign.es/wfs-inspire/ngbe?REQUEST=GetFeature&SERVICE=WFS&VERSION=2.0.0&COUNT=10&TYPENAMES=ns41:NamedPlace&SRSName=http://www.opengis.net/def/crs/EPSG/0/4326
https://www.ign.es/wfs-inspire/ngbe?REQUEST=GetFeature&SERVICE=WFS&VERSION=2.0.0&COUNT=10&TYPENAMES=ns41:NamedPlace&SRSName=http://www.opengis.net/def/crs/EPSG/0/25830