Hi,
just a simple idea really but... you are in control of what capabilities
document the clients go look for, no?
Can't you simply put the capabilities document on whatever static file
server and then tell the world
"this is my WMS capabilities document"?
If you want to store it in GeoServer you can place it in the data
directory, www subfolder, and
it will be served at:
http(s)://host:port/geoserver/www/youFile.xml
Of course you won't be able to alter the capabilities document linked from
the GeoServer home page
but... do you need to make that page available, to start with?
Hope this helps
Cheers
Andrea
2017-10-17 13:19 GMT+02:00 Oscar Diago Alonso <oscar.di...@geograma.com>:
> Hi.
>
>
>
> Thanks for the answer! I guess I could deploy some XML in the Tomcat to do
> what you are proposing.
>
>
>
> Best regards.
>
>
>
> *Óscar Diago Alonso *
>
> *Desarrollador GIS** / GIS Developer*
>
>
>
> Tel: +34 945131372 <+34%20945%2013%2013%2072> e-mail:
> mailto:oscar.di...@geograma.com <oscar.di...@geograma.com>
>
> Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
>
> *Geograma*. Expertos en GeoInformación
>
>
>
> Patrocinadores Gold de la Conferencia ESRI 2017, el mayor evento GIS de
> Europa
> <http://www.geograma.com/2017/10/03/somos-patrocinadores-gold-de-la-conferencia-esri-2017/>
>
> [image: banner-principal-ce17]
> <http://www.geograma.com/2017/10/03/somos-patrocinadores-gold-de-la-conferencia-esri-2017/>
> [image:
> GEOGRAMA] [image: FME-Certified-Pro_RGB] [image:
> Certification_Badges-EDDA]
>
> *www.geograma.com <http://www.geograma.com/>*
>
>
>
> De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002
> (LSSICE), se informa que su dirección de correo electrónico figura en
> nuestros archivos, al objeto de mantener el contacto y remitirle
> publicidad e información empresarial sobre las actividades de Geograma,
> S.L. Si no desea recibir publicidad e información empresarial sobre las
> actividades de Geograma SL le rogamos que nos lo comunique a la siguiente
> dirección de correo electrónico: geogr...@geograma.com Podrá ejercer los
> derechos de acceso, cancelación, rectificación y oposición reconocidos por
> la LOPD mediante solicitud escrita y firmada a Geograma, S.L. a la
> siguiente dirección C/ Castillo de Eskibel, 2 Bajo de Vitoria (C.P.
> 01007), adjuntando en todo caso copia de su DNI. En caso de modificación de
> sus datos deberá notificarlo en la misma dirección, declinando toda
> responsabilidad para la empresa en caso de no hacerlo. Si no es Ud. el
> destinatario y ha recibido este mensaje por error, agradecemos que lo
> comunique inmediatamente al remitente sin difundir, almacenar o copiar su
> contenido.
>
>
>
> *De:* Jonathan Moules [mailto:jonathan-li...@lightpear.com]
> *Enviado el:* martes, 17 de octubre de 2017 13:15
> *Para:* Oscar Diago Alonso <oscar.di...@geograma.com>
> *CC:* geoserver-users@lists.sourceforge.net
> *Asunto:* Re: [Geoserver-users] External file for GetCapabilities
>
>
>
> Hi Oscar,
> If I'm understanding correctly, you want to return a custom
> GetCapabilities rather than the auto-generated one that GeoServer creates?
>
> I don't believe GeoServer can do this. A quick search found -
> https://sourceforge.net/p/geoserver/mailman/message/33191288/ - no idea
> if that was ever completed/integrated.
>
> However I'd imagine you can do it fairly simply using whatever middleware
> you have between GeoServer and your client (i.e. Apache, HAProxy, nginx,
> IIS, etc). You could use that to intercept queries for GetCapabilities
> (search for "request=getcapabilities" case insensitive inside GET requests)
> and redirect those requests to your XML file.
>
> Cheers,
> Jonathan
>
>
> ---- On Tue, 17 Oct 2017 09:55:39 +0100 *Oscar Diago
> Alonso<oscar.di...@geograma.com <oscar.di...@geograma.com>>* wrote ----
>
> Good morning!
>
>
>
> I have an XML file with the format of a GetCapabilities request for a WMS
> service.
>
>
>
> Is there a way to force GeoServer to return my file instead of the xml
> returned by GeoServer when requesting the capabilities?
>
>
>
> Best regards.
>
>
>
> *Óscar Diago Alonso *
>
> *Desarrollador GIS** / **GIS Developer*
>
>
>
> Tel: +34 945131372 <+34%20945%2013%2013%2072> e-mail:
> mailto:oscar.di...@geograma.com <oscar.di...@geograma.com>
>
> Calle Pintor Clemente Arraiz, 3 Bajo 01008 Vitoria-Gasteiz
>
> *Geograma*. Expertos en GeoInformación
>
>
>
> Patrocinadores Gold de la Conferencia ESRI 2017, el mayor evento GIS de
> Europa
> <http://www.geograma.com/2017/10/03/somos-patrocinadores-gold-de-la-conferencia-esri-2017/>
>
>
> <http://www.geograma.com/2017/10/03/somos-patrocinadores-gold-de-la-conferencia-esri-2017/>
>
>
> www.geograma.com
>
>
>
> De acuerdo con la LO 15/1999, de Protección de Datos, y la Ley 34/2002
> (LSSICE), se informa que su dirección de correo electrónico figura en
> nuestros archivos, al objeto de mantener el contacto y remitirle
> publicidad e información empresarial sobre las actividades de Geograma,
> S.L. Si no desea recibir publicidad e información empresarial sobre las
> actividades de Geograma SL le rogamos que nos lo comunique a la siguiente
> dirección de correo electrónico: geogr...@geograma.com Podrá ejercer los
> derechos de acceso, cancelación, rectificación y oposición reconocidos por
> la LOPD mediante solicitud escrita y firmada a Geograma, S.L. a la
> siguiente dirección C/ Castillo de Eskibel, 2 Bajo de Vitoria (C.P.
> 01007), adjuntando en todo caso copia de su DNI. En caso de modificación de
> sus datos deberá notificarlo en la misma dirección, declinando toda
> responsabilidad para la empresa en caso de no hacerlo. Si no es Ud. el
> destinatario y ha recibido este mensaje por error, agradecemos que lo
> comunique inmediatamente al remitente sin difundir, almacenar o copiar su
> contenido.
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
> 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
>
> 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
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Regards,
Andrea Aime
==
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.
------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users