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> 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 e-mail: mailto: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
                
 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

Reply via email to