By the way, the usage of "ows" in the caps documents has been ignored for
so much time that I guess it could
be put on the discussion table again. I have no strong opinion on the
matter, to GeoServer wms/wcs/wps/ows
are all the same (you can literally use geoserver/workspace/wms to make a
wfs request if you want to,
unless you're forgetting to add &service=WFS in the URL it should not make
any difference).
E.g.:

http://demo.geo-solutions.it/geoserver/tiger/wms?service=WFS&version=1.0.0&request=GetFeature&typeName=tiger:tiger_roads&maxFeatures=50

And oh, noticed that the preview is indeed using "ows" for WFS, but "wms"
for WMS preview links... LOL :-)

Cheers
Andrea

On Tue, Mar 15, 2016 at 3:19 PM, Andrea Aime <[email protected]>
wrote:

> On Tue, Mar 15, 2016 at 2:38 PM, Damiano Albani <[email protected]>
> wrote:
>
>> Hello,
>>
>> Looking at the content of the GetCapabilities response for WMS, I saw
>> that Request >> OnlineResource URL follows a different pattern than other
>> protocols as WFS and WPS.
>>
>> For example, compare:
>>
>>   <Get><OnlineResource xlink:type="simple" xlink:href="
>>> http://host/geoserver/workspace/*ows?SERVICE=WMS&*"/></Get>
>>
>>
>>
>>   <ows:Get xlink:href="http://host/geoserver/workspace/*wfs*"/>
>>
>>
>>
>>   <ows:Get xlink:href="http://host/geoserver/workspace/*wps*"/>
>>
>>
>> The last 2 seem more logical / look nicer to me.
>>
>> The implementation for WMS is to be found on
>> https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/capabilities/Capabilities_1_3_0_Transformer.java#L477
>> .
>> To be compared to, say, WFS:
>> https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/CapabilitiesTransformer.java#L610
>>
>> What do you think? Shouldn't all protocols follow the same line in term
>> of "canonical" URLs?
>> Or maybe there's a particular (compatibility) reason why WMS is treated
>> differently.
>>
>
> Only because they were developed by different people in different times.
> That said, the "right" version is almost the WMS one,
> it should be using "ows", the service named endpoints wms/wfs/wps and so
> on are kept, as far as I know, for backwards compatibility
> only. It should be "http://host/geoserver/workspace/ows";.
>
> Cheers
> Andrea
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
> -------------------------------------------------------
>



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

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to