Hi,
one of our customers has upgrade their mapviewer from 11.1.1.7.3_b140717 to 12.2.1.3.0.
They get different results from the WMS GetCapabilities request.
DataSource and wms configuration are the same.
http://localhost/mapviewer/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
Response from MapViewer version 11:
...
<Layer>
<Title>Oracle WMS Layers by data source</Title>
<SRS>EPSG:4326</SRS>
<BoundingBox SRS="EPSG:4326" minx="-180." miny="-90." maxx="180." maxy="90." />
<Layer>
<Name>RAS</Name>
<Title>Datasource RAS</Title>
<Layer>
<Name>TEST_TL</Name>
<Title>Basemap B_TEST</Title>
<SRS>SDO:31467</SRS>
<LatLonBoundingBox minx="5.48417331490161" miny="46.9853953124346" maxx="15.4016714708542" maxy="54.0791177247376" />
<Layer queryable="1">
<Name>GT_TEST</Name>
<Title>GT_TEST</Title>
<SRS>SDO:31467</SRS>
<BoundingBox SRS="SDO:31467" minx="3270000.0" miny="5220000.0" maxx="3920000.0" maxy="6000000.0" resx="5.0E-4" resy="5.0E-4" />
<ScaleHint max="2501.0" />
</Layer>
...
</Layer>
...
</Layer>
</Layer>
...
Response from MapViewer version 12:
...
<Layer>
<Title>Oracle WMS Layers by data source</Title>
<SRS>EPSG:4326</SRS>
<BoundingBox SRS="EPSG:4326" minx="-180." miny="-90." maxx="180." maxy="90." />
<Layer>
<Title>Datasource RAS</Title>
<Layer>
<Name>TEST_TL</Name>
<Title>Basemap B_TEST</Title>
<SRS>SDO:31467</SRS>
<LatLonBoundingBox minx="5.48417331490161" miny="46.9853953124346" maxx="15.4016714708542" maxy="54.0791177247376" />
<Layer queryable="1">
<Name>GT_TEST</Name>
<Title>GT_TEST</Title>
<SRS>SDO:31467</SRS>
<BoundingBox SRS="SDO:31467" minx="3270000.0" miny="5220000.0" maxx="3920000.0" maxy="6000000.0" resx="5.0E-4" resy="5.0E-4" />
<ScaleHint max="2501.0" />
</Layer>
...
</Layer>
...
</Layer>
</Layer>
...
At first sight, the response seems to be identical.
On the same level as "<Title>Datasource RAS</Title>" is the <Name> element missing.
The example from the mapviewer 12c documentation contains the <Name> element.
https://docs.oracle.com/middleware/1213/core/JIMPV/vis_wms.htm#JIMPV9899
Our program needs the datasource of a layer and has interpreted it by the <Name> element.
Is it a bug or why the <Name> element is missing?
Is there another way to get the datasource name of a specific layer?
I also tested it with the 19c mapviewer and got the same result as the 12c mapviewer.