URGENT help with wms capabilities request from layercontainer example

View: New views
2 Messages — Rating Filter:   Alert me  

URGENT help with wms capabilities request from layercontainer example

by Mario.Nunez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

The last tests I have made using layercontainer.html and layercontainer.js:

 

1) Loading this url directly in the web browser:

http://gea.atosorigin.es:8080/geoserver/wms?service=wms&request=GetCapabilities&version=1.1.1

 

It loads the capabilities, and I open a correct xml. Then geoserver shows on the log file:

2009-10-30 11:43:29,759 DEBUG [responses.helpers] - producing a capabilities document for GetCapabilities [service: WMS, version: 1.1.1]

 

2) Reloading the web page (layercontainer.html that uses layercontainer.js where I configured the

URL: http://gea.atosorigin.es:8080/geoserver/wms?service=wms&request=GetCapabilities&version=1.1.1)

 

It does not load the layers into the grid, it remains empty. Then geoserver shows on the log file:

2009-10-30 11:43:29,755 DEBUG [geoserver.filters] - filtering http://gea.atosorigin.es:8080/geoserver/wms

 

In this case firebug net shows this entry:

OPTIONS  wms?service=wms&

 

Its extrange to se a OPTIONS label instead of a GET right? But I do not know what it means…

 

If I explore this firebug net entry:

 

-Params

“Request GetCapabilities

service wms

version 1.1.1”

 

-Headers

“Response headers

ServerApache-Coyote/1.1AllowGET, HEAD, POST, PUT, DELETE, TRACE, OPTIONSContent-Length0DateFri, 30 Oct 2009 11:02:08 GMT

Request Headers

Hostgea.atosorigin.es:8080User-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Languagees-es,es;q=0.8,en-us;q=0.5,en;q=0.3Accept-Encodinggzip,deflateAccept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive300Connectionkeep-aliveOriginhttp://gea.atosorigin.esAccess-Control-Request-MethodGETAccess-Control-Request-Headersx-requested-with”

 

-Response

EMPTY!!!

 

So I don’t know if there is a bug in MapFish or what else may be happening…

Anybody has experienced the same?

Anybody has achieved to use the layercontainer with a remote capabilities?

 

Regards.

Mario.

 
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive
this e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin
group liability cannot be triggered for the message content. Although
the sender endeavours to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and
will not be liable for any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
destinada solamente a la(s) persona(s) mencionadas anteriormente
pueden estar protegidos por secreto profesional.
Si usted recibe este correo electronico por error, gracias por informar
inmediatamente al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
no se hace responsable por su contenido. Su contenido no constituye ningun
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus.
------------------------------------------------------------------
_______________________________________________
Users mailing list
Users@...
http://www.mapfish.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@...
http://www.mapfish.org/cgi-bin/mailman/listinfo/users

Re: URGENT help with wms capabilities request from layercontainer example

by Eric Lemoine-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/30 Mario Nuñez Jimenez <mario.nunez@...>:
> The last tests I have made using layercontainer.html and layercontainer.js:
>
>
>
> 1) Loading this url directly in the web browser:
>
> http://gea.atosorigin.es:8080/geoserver/wms?service=wms&request=GetCapabilities&version=1.1.1

too bad it's a private URL.

I tested the layercontainer.html example against
<http://labs.metacarta.com/wms/vmap0> and the grid gets filled as
expected. See the attached patch. Without access to your WMS I'm
afraid I can't help more.



--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine@...
http://www.camptocamp.com

[layercontainer-example.patch]

Index: examples/layercontainer.html
===================================================================
--- examples/layercontainer.html (revision 1442)
+++ examples/layercontainer.html (working copy)
@@ -3,6 +3,7 @@
         <title>GeoExt Layer Tree</title>
 
         <script type="text/javascript" src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
+        <script type="text/javascript" src="../lib/overrides/override-ext-ajax.js"></script>
         <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
         <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" />
         <script src="http://openlayers.org/api/2.8/OpenLayers.js"></script>
Index: examples/layercontainer.js
===================================================================
--- examples/layercontainer.js (revision 1442)
+++ examples/layercontainer.js (working copy)
@@ -14,10 +14,12 @@
 
 var store, tree, panel;
 Ext.onReady(function() {
+
+    OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";
     
     // create a new WMS capabilities store
     store = new GeoExt.data.WMSCapabilitiesStore({
-        url: "data/wmscap.xml"
+        url: "http://labs.metacarta.com/wms/vmap0?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0"
     });
     // load the store with records derived from the doc at the above url
     store.load();


_______________________________________________
Users mailing list
Users@...
http://www.mapfish.org/cgi-bin/mailman/listinfo/users