Uploading WMS capabilities of GeoServer

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Uploading WMS capabilities of GeoServer

Jonas Blasques
Hello,

I am trying to load the WMS capabilities of the GeoServer sitting in my Localhost.

I followed all the steps from the mapbender tutorial (created new blank GUI and then did load WMS).

I used the following URL:

http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1

and it gives the xml file which I send in attachment.

However in the mapbender interface when I submit this url the response is just a line:

file: http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1

It does and says nothing else.

Not much of an error response. I have absolutely no idea what is wrong.
Can someone help ?

Jonas





--
"Ajude um pouco ... já é muito"
Projecto SOSIndia http://sosindia.net
---------------------------------------------

Shoot for the moon,
even if you miss it
you will land among the stars.
- Unknown

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

What if for a moment, as an experiment,
you drop every belief that you have?
- Unknown

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

"We are all linked by a fabric of unseen connections. This fabric is constantly changing and evolving. This field is directly structured and influenced by our behavior and by our understanding."
—David Bohm, quantum physicist, 1917–1992

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Uploading WMS capabilities of GeoServer

Michael Schulz
Hi Jonas,

is Mapbender running on localhost as well? Which connection type did
you configure in mapbender.conf, http or curl? If you are using a
recent Mapbender 2.6, try to use type curl and add localhost to the
NOT_PROXY_HOSTS parameter. Check if this solves your problem.

Cheers, Michael


2010/3/29 Jonas Blasques <[hidden email]>:

> Hello,
>
> I am trying to load the WMS capabilities of the GeoServer sitting in my
> Localhost.
>
> I followed all the steps from the mapbender tutorial (created new blank GUI
> and then did load WMS).
>
> I used the following URL:
>
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> and it gives the xml file which I send in attachment.
>
> However in the mapbender interface when I submit this url the response is
> just a line:
>
> file:
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> It does and says nothing else.
>
> Not much of an error response. I have absolutely no idea what is wrong.
> Can someone help ?
>
> Jonas
>
>
>
>
>
> --
> "Ajude um pouco ... já é muito"
> Projecto SOSIndia http://sosindia.net
> ---------------------------------------------
>
> Shoot for the moon,
> even if you miss it
> you will land among the stars.
> - Unknown
>
> -------------------------------------------------
>
> What if for a moment, as an experiment,
> you drop every belief that you have?
> - Unknown
>
> ---------------------------------------------------------------
>
> "We are all linked by a fabric of unseen connections. This fabric is
> constantly changing and evolving. This field is directly structured and
> influenced by our behavior and by our understanding."
> —David Bohm, quantum physicist, 1917–1992
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Uploading WMS capabilities of GeoServer

Jonas Blasques
Thanks for the quick answer Michael,

I did what you tried and the response is the same although it is now 10X faster, meaning when I hit the submit button to load the wms it straight away returns an HTML output and before it was dead slow (I don't know if this has anything to do with it but i thought of telling you).

Below are the location to which the form of the "upload wms" is sent to together with the post parameteres.
I also send the request header and the response header.

I checked the mapbender php modules - mod_loadcapabilities and the mod_load_wms and the postgres db and saw that the WMS is not being uploaded to the table wms of the db as is intended with the writeObjInDB($guiList) function.

I think that the code:

"
$mywms = new wms();
$mywms->createObjFromXML($xml);
$mywms->writeObjInDB($guiList);
$mywms->displayWMS();
"

has problems wiith the function createObjFromXML($xml)
The parameter $xml seems to be ok (http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1).
I say this because I do var_dumps up to the point after this line and then no more. I don't know if this is helpful or not.

Any further help is deeply appreciated Michael,

Jonas


LOCATION WITH PARAMETERS

http://localhost/mapbender/php/mod_loadwms.php?&guiID=admin_en_services&elementID=loadWMS&guiList=fdsafdsafdsa&xml_file=http%3A%2F%2Flocalhost%2Fmapbender%2Fwms%3FREQUEST%3DGetCapabilities%26SERVICE%3DWMS%26VERSION%3D1.1.1

REQUEST HEADER
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 (.NET CLR 3.5.30729) FirePHP/0.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://localhost/mapbender/php/mod_loadCapabilities.php?&guiID=admin_en_services&elementID=loadWMS
Cookie: PHPSESSID=8lpi7smghkuntptleva7rr5ee7

RESPONSE HEADER
Date: Mon, 29 Mar 2010 14:32:02 GMT
Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_jk/1.2.28 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 104
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html

RESPONSE BODY

file: http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1



On Mon, Mar 29, 2010 at 1:29 PM, Michael Schulz <[hidden email]> wrote:
Hi Jonas,

is Mapbender running on localhost as well? Which connection type did
you configure in mapbender.conf, http or curl? If you are using a
recent Mapbender 2.6, try to use type curl and add localhost to the
NOT_PROXY_HOSTS parameter. Check if this solves your problem.

Cheers, Michael


2010/3/29 Jonas Blasques <[hidden email]>:
> Hello,
>
> I am trying to load the WMS capabilities of the GeoServer sitting in my
> Localhost.
>
> I followed all the steps from the mapbender tutorial (created new blank GUI
> and then did load WMS).
>
> I used the following URL:
>
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> and it gives the xml file which I send in attachment.
>
> However in the mapbender interface when I submit this url the response is
> just a line:
>
> file:
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> It does and says nothing else.
>
> Not much of an error response. I have absolutely no idea what is wrong.
> Can someone help ?
>
> Jonas
>
>
>
>
>
> --
> "Ajude um pouco ... já é muito"
> Projecto SOSIndia http://sosindia.net
> ---------------------------------------------
>
> Shoot for the moon,
> even if you miss it
> you will land among the stars.
> - Unknown
>
> -------------------------------------------------
>
> What if for a moment, as an experiment,
> you drop every belief that you have?
> - Unknown
>
> ---------------------------------------------------------------
>
> "We are all linked by a fabric of unseen connections. This fabric is
> constantly changing and evolving. This field is directly structured and
> influenced by our behavior and by our understanding."
> —David Bohm, quantum physicist, 1917–1992
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users



--
"Ajude um pouco ... já é muito"
Projecto SOSIndia http://sosindia.net
---------------------------------------------

Shoot for the moon,
even if you miss it
you will land among the stars.
- Unknown

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

What if for a moment, as an experiment,
you drop every belief that you have?
- Unknown

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

"We are all linked by a fabric of unseen connections. This fabric is constantly changing and evolving. This field is directly structured and influenced by our behavior and by our understanding."
—David Bohm, quantum physicist, 1917–1992
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDQvMDQvMDhrK9wWAAACLklEQVQ4jbXUP0wTcRQH8O/9ekdjkT8CUqpee00bRyNNmSRSV0PcJJoQg2i6ODTExEUHg04OaNSppqtCjQ4ukDSKSuLUwcm4NNZcQYsIGtD+u/f7MZSWXltqo/Ul7/JL7u7z3r3fLye53e5xj8ejoYWRSCSSstfr1YLBYHcr4XA4rMmMMciy3EoXjDHIjDEoivL/4fefrP1P3nYEvqzLajOIo8fQz5/cfH3cnVttCM8udQaODBxQFx44Ye9h4HxvdGWtgMlbSXV2SQoMHf0RNcGSJJlmvPLdos7fdyIWL+D5myx+ZwwUDAIRh2EU1wYRFItA6FwvIjdcGJr4qFYakiSBlTavlABwsJth7mUWmSyBOAfnAkQE4gKccxBx/MoYmHmcxuH+NgAwGQ03j3NeRjjnoGqcC/zcIgghAMBkNISJuKlbEy4EaKdoKerC5nNMxQdlgVx+t0siKhYQovwV1rbdtyoNxlhxxoqilBMA0uuES6Pt6NqP2hHsoDarhJuXD2F5NV/uuJR1T4XLzvTJ25/VyHUnzgzba0YkKq6pdB4T00m47EyvPhU1M54asy3ee5o55bvwQQWAr/PHMBfbQGhGrykCANqARZ8asy3+ccYjg/K3kcF9UQAYvrJ29dmrDUxHlnOxu72P+rpYrq5eFU39K649TCF0tnPB0WdtCt2z48rQHIp+8XTHu9ET7alm0aY6fnFHjda98a/w3wZjDJLP5xv3+/1aK+F4PJ7cBm32CUNiyI2GAAAAAElFTkSuQmCC" style="position: absolute; visibility: visible; color: transparent; margin: 0px; border: medium none; z-index: 2147483647; left: 297px; top: 21px;" id="kosakoff-target-image">
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Uploading WMS capabilities of GeoServer

Michael Schulz
Hi Jonas, 

one another try: geoserver sometimes publishes around 3000 epsg codes in the cetcapabilities document. In newer geoserver version you can define a customized list of epsgs codes. I think sometiems mapbender will stumble across the 3000 epsg codes ....

Cheers, Michael

2010/3/29 Jonas Blasques <[hidden email]>
Thanks for the quick answer Michael,

I did what you tried and the response is the same although it is now 10X faster, meaning when I hit the submit button to load the wms it straight away returns an HTML output and before it was dead slow (I don't know if this has anything to do with it but i thought of telling you).

Below are the location to which the form of the "upload wms" is sent to together with the post parameteres.
I also send the request header and the response header.

I checked the mapbender php modules - mod_loadcapabilities and the mod_load_wms and the postgres db and saw that the WMS is not being uploaded to the table wms of the db as is intended with the writeObjInDB($guiList) function.

I think that the code:

"
$mywms = new wms();
$mywms->createObjFromXML($xml);
$mywms->writeObjInDB($guiList);
$mywms->displayWMS();
"

has problems wiith the function createObjFromXML($xml)
The parameter $xml seems to be ok (http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1).
I say this because I do var_dumps up to the point after this line and then no more. I don't know if this is helpful or not.

Any further help is deeply appreciated Michael,

Jonas


LOCATION WITH PARAMETERS

http://localhost/mapbender/php/mod_loadwms.php?&guiID=admin_en_services&elementID=loadWMS&guiList=fdsafdsafdsa&xml_file=http%3A%2F%2Flocalhost%2Fmapbender%2Fwms%3FREQUEST%3DGetCapabilities%26SERVICE%3DWMS%26VERSION%3D1.1.1

REQUEST HEADER
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2 (.NET CLR 3.5.30729) FirePHP/0.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: http://localhost/mapbender/php/mod_loadCapabilities.php?&guiID=admin_en_services&elementID=loadWMS
Cookie: PHPSESSID=8lpi7smghkuntptleva7rr5ee7

RESPONSE HEADER
Date: Mon, 29 Mar 2010 14:32:02 GMT
Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_jk/1.2.28 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
X-Powered-By: PHP/5.3.1
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 104
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html

RESPONSE BODY

file: http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1




On Mon, Mar 29, 2010 at 1:29 PM, Michael Schulz <[hidden email]> wrote:
Hi Jonas,

is Mapbender running on localhost as well? Which connection type did
you configure in mapbender.conf, http or curl? If you are using a
recent Mapbender 2.6, try to use type curl and add localhost to the
NOT_PROXY_HOSTS parameter. Check if this solves your problem.

Cheers, Michael


2010/3/29 Jonas Blasques <[hidden email]>:
> Hello,
>
> I am trying to load the WMS capabilities of the GeoServer sitting in my
> Localhost.
>
> I followed all the steps from the mapbender tutorial (created new blank GUI
> and then did load WMS).
>
> I used the following URL:
>
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> and it gives the xml file which I send in attachment.
>
> However in the mapbender interface when I submit this url the response is
> just a line:
>
> file:
> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>
> It does and says nothing else.
>
> Not much of an error response. I have absolutely no idea what is wrong.
> Can someone help ?
>
> Jonas
>
>
>
>
>
> --
> "Ajude um pouco ... já é muito"
> Projecto SOSIndia http://sosindia.net
> ---------------------------------------------
>
> Shoot for the moon,
> even if you miss it
> you will land among the stars.
> - Unknown
>
> -------------------------------------------------
>
> What if for a moment, as an experiment,
> you drop every belief that you have?
> - Unknown
>
> ---------------------------------------------------------------
>
> "We are all linked by a fabric of unseen connections. This fabric is
> constantly changing and evolving. This field is directly structured and
> influenced by our behavior and by our understanding."
> —David Bohm, quantum physicist, 1917–1992
>
> _______________________________________________
> Mapbender_users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users



--
"Ajude um pouco ... já é muito"
Projecto SOSIndia http://sosindia.net
---------------------------------------------

Shoot for the moon,
even if you miss it
you will land among the stars.
- Unknown

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

What if for a moment, as an experiment,
you drop every belief that you have?
- Unknown

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

"We are all linked by a fabric of unseen connections. This fabric is constantly changing and evolving. This field is directly structured and influenced by our behavior and by our understanding."
—David Bohm, quantum physicist, 1917–1992

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users




--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
[hidden email]

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg

_______________________________________________
Mapbender_users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/mapbender_users