Bart,

the default "Content-Type: application/gml+xml; version=3.2" is required by the WFS 2.0 standard:

http://docs.opengeospatial.org/is/09-025r2/09-025r2.html#52
"The optional outputFormat parameter specifies the format used to encode resources in the response to a query operation. The default value is "application/gml+xml; version=3.2" indicating that resources in the response document shall be encoded using GML (see ISO 19136:2007)."

You can set a different value in the WFS settings if you prefer the old non-standard-compliant behaviour:
http://docs.geoserver.org/latest/en/user/services/wfs/webadmin.html#override-gml-3-2-mime-type

It also looks from your report that you would like the option to be able to request a text/xml Content-Type for GML 3.2 regardless of this setting. I do not think GeoServer supports this because it chooses the language from outputformat (GML 3.2, GML 3.1, GeoJSON, ...) and then, for GML 3.2, the corresponding Content-Type from the WFS settings, which will not match the behaviour you expect.

Nuno, was this intended? Should a different GML 3.2 Content-Type specified in outputformat override the WFS GML 3.2 Content-Type settings if it matches a supported option? No doubt users specifying outputformat=gml32 will not expect "Content-Type: gml32", but the behaviour could be different for outputformat "text/xml; subtype=gml/3.2" or "text/xml".

Kind regards,
Ben.

On 08/06/18 02:09, Verbeeck Bart (AIV) wrote:
Dear List

Why is the default outputformat for a wfs (2.0.0) request in version 2.13.1 
"Content-Type: application/gml+xml; version=3.2"

It used to be (2.11.1 for instance) "Content-Type: text/xml; subtype=gml/3.2"

Even if I ask for "text/xml; subtype=gml/3.2", I receive application/gml+xml; 
version=3.2

Thanks for the info

Bart

-----Original Message-----
From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it]
Sent: donderdag 7 juni 2018 9:40
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Geoserver WFS 2.0 combined with app-schema

Good point Ben, thanks for the heads up !

On 06/07/2018 01:07 AM, Ben Caradoc-Davies wrote:
On 07/06/18 08:37, Nuno Oliveira wrote:
Regarding this request you are asking for GML3 ... which implies WFS
1.1.0 and GML 3 schemas. Your target INSPIRE schema uses GML32, so
you should request for GML32 output IMHO:
https://geo.sv.rostock.de/inspire/us-govserv-schools/ows?service=WFS&;
version=2.0.0&request=GetFeature&typeNames=us-govserv-schools:Governm
entalService&*outputFormat=gml32*&maxFeatures=1


Tim,

in my email client, viewing as plain text, this URL contains "*" for
bold around "outputFormat=gml32". Be sure to remove these if your
email client adds them.  :-)

Kind regards,


--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita.
Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to