[Geoserver-users] Disable WMS on Specific workspace?

Hi all
How can i disable WMS on some workspaces while remain it enabled on others?
I also want those disabled workspaces not to appear on WMS GetCapabilites.

Regards

Hi Saka,
Virtual services should do most (all?) of what you want:
http://docs.geoserver.org/2.1.0/user/services/virtual-services.html

Cheers,
Jonathan

---- On Wed, 09 Mar 2016 06:16:20 +0000 Saka Royban <sakaroyban@anonymised.com…54…> wrote ----

Hi all
How can i disable WMS on some workspaces while remain it enabled on others?
I also want those disabled workspaces not to appear on WMS GetCapabilites.

Regards

Hi Jonathan
I’d already read that document and now i read it once more. It doesn’t feet my needs.
Suppose this scenario: A client connects to my server. He doesn’t know anything about workspaces and layers loaded in GeoServer. So, he makes a GetCapabilities request (to global service) to ask about offered layers. Leaving global services enabled, he sees all workspaces and layers as enabled and offerable by GeoServer WMS service.
I can’t disable global services, because i wanna tell client which workspaces and layers are available on the server.

Regards

On Wednesday, March 9, 2016 2:21 PM, Jonathan Moules jonathan-lists@anonymised.com wrote:

Hi Saka,
Virtual services should do most (all?) of what you want:
http://docs.geoserver.org/2.1.0/user/services/virtual-services.html

Cheers,
Jonathan

---- On Wed, 09 Mar 2016 06:16:20 +0000 Saka Royban sakaroyban@anonymised.com wrote ----

Hi all
How can i disable WMS on some workspaces while remain it enabled on others?
I also want those disabled workspaces not to appear on WMS GetCapabilites.

Regards

Hi Saka,
I’m not sure there’s a good solution (though I could be wrong; someone will hopefully chip in if I am).

The client has to have received a URL for your service from somewhere in the first place (email, website, etc…). Rather than them getting the global URL, you could arrange for them to get the applicable workspace-based virtual service URL. The problem is that your requirement that they have global access (to find out what is available) is directly contradictory.

The alternative is that you disable global services and serve your own custom created GetCapabilities document using a fixed XML document (copy the current one and edit it manually) and your webserver.
Cheers,
Jonathan

---- On Wed, 09 Mar 2016 12:20:31 +0000 Saka Royban<sakaroyban@anonymised.com> wrote ----

Hi Jonathan
I’d already read that document and now i read it once more. It doesn’t feet my needs.
Suppose this scenario: A client connects to my server. He doesn’t know anything about workspaces and layers loaded in GeoServer. So, he makes a GetCapabilities request (to global service) to ask about offered layers. Leaving global services enabled, he sees all workspaces and layers as enabled and offerable by GeoServer WMS service.
I can’t disable global services, because i wanna tell client which workspaces and layers are available on the server.

Regards

On Wednesday, March 9, 2016 2:21 PM, Jonathan Moules <jonathan-lists@anonymised.com> wrote:

Hi Saka,
Virtual services should do most (all?) of what you want:
http://docs.geoserver.org/2.1.0/user/services/virtual-services.html

Cheers,
Jonathan

---- On Wed, 09 Mar 2016 06:16:20 +0000 Saka Royban <sakaroyban@anonymised.com> wrote ----

Hi all
How can i disable WMS on some workspaces while remain it enabled on others?
I also want those disabled workspaces not to appear on WMS GetCapabilites.

Regards


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=278785111&iu=/4140_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Jonathan
Let me change the way and ask another, similar question. I think it’s more common.
I have some workspaces and I want to enable WMS on all and WFS on some (I don’t wanna let users retrieve features from specific workspaces). How can i disable WFS on a workspace, while WMS is enabled on those?

There is a check box for enabling/disabling WFS globally. Also there is checkbox in “Edit workspace” which i couldn’t understand how it works.

Regards


From: Jonathan Moules jonathan-lists@anonymised.com
To: Saka Royban sakaroyban@anonymised.com
Cc: geoserver geoserver-users@lists.sourceforge.net
Sent: Thursday, March 10, 2016 4:31 PM
Subject: Re: [Geoserver-users] Disable WMS on Specific workspace?

Hi Saka,
I’m not sure there’s a good solution (though I could be wrong; someone will hopefully chip in if I am).

The client has to have received a URL for your service from somewhere in the first place (email, website, etc…). Rather than them getting the global URL, you could arrange for them to get the applicable workspace-based virtual service URL. The problem is that your requirement that they have global access (to find out what is available) is directly contradictory.

The alternative is that you disable global services and serve your own custom created GetCapabilities document using a fixed XML document (copy the current one and edit it manually) and your webserver.
Cheers,
Jonathan

---- On Wed, 09 Mar 2016 12:20:31 +0000 Saka Royban<sakaroyban@anonymised.com> wrote ----

Hi Jonathan
I’d already read that document and now i read it once more. It doesn’t feet my needs.
Suppose this scenario: A client connects to my server. He doesn’t know anything about workspaces and layers loaded in GeoServer. So, he makes a GetCapabilities request (to global service) to ask about offered layers. Leaving global services enabled, he sees all workspaces and layers as enabled and offerable by GeoServer WMS service.
I can’t disable global services, because i wanna tell client which workspaces and layers are available on the server.

Regards

On Wednesday, March 9, 2016 2:21 PM, Jonathan Moules <jonathan-lists@anonymised.com> wrote:

Hi Saka,
Virtual services should do most (all?) of what you want:
http://docs.geoserver.org/2.1.0/user/services/virtual-services.html

Cheers,
Jonathan

---- On Wed, 09 Mar 2016 06:16:20 +0000 Saka Royban <sakaroyban@anonymised.com> wrote ----

Hi all
How can i disable WMS on some workspaces while remain it enabled on others?
I also want those disabled workspaces not to appear on WMS GetCapabilites.

Regards


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=278785111&iu=/4140_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users