WMS theme with authentication is currently not supported. You can define WMS themes with your GeoServer if it does not require authentication.1 person found this helpful
I have download Oracle Fusion Middleware MapViewer Version 11g ps6 (188.8.131.52.1) and have gotten the “Authentication with WMS Map Themes” in mapviewer_11p6_ug.pdf.
Using the “GetMap” without user and password can access to the WMS data after used the Map Builder tool to create a WMS theme with authentication information.
The “Authentication with WMS Map Themes” is not authentication?
Is WMS theme with authentication currently supported in Oracle Fusion Middleware MapViewer Version 11g ps6 (184.108.40.206.1)??
It does. It's been supported since 220.127.116.11.
Where is the Authentication? The following operates are done in 18.104.22.168.1. Is there any problem? Please talk more detail!
1.Create a WMS theme by Using the Map Builder tool. It's name is wms_theme130wps. The result is the following:
Record contents to be stored into USER_SDO_THEMES
<?xml version="1.0" standalone="yes"?>
<service_url> http://localhost:8080/mapviewer/wms? </service_url>
<user> wms </user>
<password> +wE1RbfVl94yXdaLJKtG09v64OPJtG40 </password>
<layers> COUNTIES_TERR </layers>
<version> 1.3.0 </version>
<srs> EPSG:4326 </srs>
<format> image/png </format>
<bgcolor> 0xA6CAF0 </bgcolor>
<transparent> true </transparent>
<exceptions> xml </exceptions>
<capabilities_url> http://localhost:8080/mapviewer/wms? </capabilities_url>
2. Request with the URL, http://localhost:8080/mapviewer/wms?REQUEST=GetMap&VERSION=1.3.0&LAYERS=wms_theme130wps&WIDTH=1500&HEIGHT=560&CRS=SDO:8307&BBOX=-180,-90,180,90&FORMAT=image/png.
This request is without any Authentication message!
3.Request returns a PNG Image.
Here you're using mapviewer as a WMS server. It does not require authentication.
The original question is whether mapviewer (i.e. a WMS theme) can act as a WMS client and request a map from a WMS server that does require authentication.
When MapViewer is a WMS client (i.e. requesting a map from a WMS server) and the server (e.g. GeoServer in the above post/qs) requires authentication then it will use the supplied login info. That is usually included in the http request header.
Jsharma, you are very nice.
Good luck with you!