Access protected services via a local proxy!
- This chapter guides you through the steps of setting up the WSC.Desktop application and access a WMS protected by the 52°North Demo WSS.
- Internet connection
- Java 6 JRE installation
Download and Install WSC.Desktop
- Download WSC.Desktop
- Unzip the downloaded file
- Either run run.bat (Windows) or run.sh (Unix) in the unzipped folder to start the application
Managing the Facade Server
By default WSC.Desktop listens for requests on http://<local_hostname>:1234/facadeServer.
Click Edit to change the port, hostname, or path where facades are served. Click Apply to save your changes and restart the server.
With WSC.Desktop, facades define local URLs that provide access to a protected service on the internet via the native WSS security protocol. When creating a facade you also specify the user's credentials that are sent to the protected service.
- The facade called alices is bound to the URL http://localhost:1234/facades/alices. It uses username/password alice/alice to connect to the WSS with the URL http://security.demo.52north.org:8180/wss/service/wms_demis/WSS
By clicking New you start creating a new facade for a certain user:
- Click New
- Enter the server URL of the 52°North Demo WSS http://security.demo.52north.org:8180/wss/service/wms_demis/WSS which offers proteced access to the Demis WMS.
- Click Connect to connect to the WSS.
If you get an error please check your internet connection and/or proxy settings, that you may need to pass to the JVM
- Enter alice for username and password.
- Enter a facade name. This will be part of the resulting facade's URL.
- Click Save to create and save the facade
- Click Cancel to skip creating other facades.
The facade is now displayed in the table of facades.
As part of this quick intro we will use the facade to request the capabilities of the protected service with a browser.
- Open a browser window.
- In WSC.Desktop highlight the facade just created in the table of available facades.
- Click Copy Facade URL
- Paste the URL into the browser address bar and append ?SERVICE=WMS&REQUEST=GetCapabilities
- Hit enter
As a result the browser should display the WMS's capabilities. Please notice, that all URLs within the capabilities document were replaced by URLs pointing to the facade.
You can load the protected service in any local desktop client that is able to connect to WMS like uDig or ESRI(c) ArcMap.