I've been trying, with limited success, to connect through to a WMS service which requires authentication (User_Id and Password).
The connection works fine..... a .Tab file and an .xml file are generated;
but each time that I try and subsequently load that data I have to go through the authentication process again.
This is fine, if a little frustrating , for myself, as a developer / data custodian within the business, but I
can't/ won't issue the login credentials to all of our staff.
What we need to have developed is a method for handling access to secure servers much as in the same way I could connect to an
Oracle database.
e.g. enable the user_name and password to be held within the
.Tab file, such as
!table
!version 500
!charset WindowsLatin1
Definition Table
Type ODBC
begin_metadata
"\IsReadOnly" = "FALSE"
"\DATALINK" = ""
"\DATALINK\Query" = "select * from ""ccw_user"".""oracle_table"""
"\DATALINK\ConnectionString" = "SRVR=ccw_spatial;UID=xxxxxx"
"\DATALINK\ToolKit" = "ORAINET"
"\CACHE" = "ON"
"\MBRSEARCH" = "ON"
end_metadata
Currently all we have with the wms .Tab file is:
!table
!version 750
!charset WindowsLatin1
Definition Table
File "boundary-line.xml"
Type "WMS"
CoordSys Earth Projection 8, 79, "m", -2, 49, 0.9996012717, 400000, -100000
and the .xml
<MI_WMS_MapDefinition version="1.0" wms_version="1.3.0"><HTTP GetCapabilities="https://username:password@url/wms/MAP.do?" GetMap="https://username:password@url/wms/MAP.do?"/><Exception format="XML"/><SRS>EPSG:27700</SRS><Image bgcolor="16777215" transparent="true" format="image/png"/><Layer><Name>BL</Name><Style></Style><LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/><BoundingBox SRS="EPSG:27700" minx="0" miny="0" maxx="700000" maxy="1300000"/></Layer></MI_WMS_MapDefinition>
Note: I have included the user_name and password in the GetCapabilities and GetMap statements (as advised by the hosts) but this has no effect.......
(I have successfully managed to link to this service using an Open Source GIS without any problems at all ....)
Secure servers will become much more commonplace as more and more business share services through WMS and WFS, as in our case across a distributed network, or with other government agencies.