<?xml version="1.0" encoding="utf-8"?>
<!-- This file is intended as a sample file.  To use this file successfully, you must modify it with entries appropriate for your WMS Server implementation. The MapXtreme 2005 Developer's Guide WMS and WFS chapter contains instructions to assist you with this task. We have added the words MYDATABASE, MYPATH, and MYSERVER etc. in this file to highlight some of the entries that require change. -->
<WmsConfig xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mxp-wms="http://www.mapinfo.com/mxp/wms" version="MXP_WMSConfig_1_0" disableFeatureInfo="false" xmlns="http://www.mapinfo.com/mxp/wms" xmlns:mxp="http://www.mapinfo.com/mxp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mapinfo.com/mxp/wms MXP_WMS_Configuration_1_0.xsd">
  <mxp-wms:Service>
    <mxp-wms:Name>Sample WMS Server</mxp-wms:Name>
    <mxp-wms:Title>Sample WMS Server</mxp-wms:Title>
    <mxp-wms:Abstract>This is a sample WMS server</mxp-wms:Abstract>
    <mxp-wms:KeywordList/>
    <!-- The following is the URL of your WMS server, here assume it is localhost -->
    <mxp-wms:OnlineResource>http://localhost/WMS/GetMap.ashx</mxp-wms:OnlineResource>
    <mxp-wms:Fees>$10</mxp-wms:Fees>
    <mxp-wms:AccessConstraints>none</mxp-wms:AccessConstraints>
  </mxp-wms:Service>
  <!-- The following MIME types will not be used by the server -->
  <mxp-wms:WmsRasterFormatExcludeSet>
    <mxp-wms:Format>image/jpeg2000</mxp-wms:Format>
    <mxp-wms:Format>image/photoshop</mxp-wms:Format>
    <mxp-wms:Format>image/jp2</mxp-wms:Format>
  </mxp-wms:WmsRasterFormatExcludeSet>
  <!-- The following connection is referenced by one of the data sources, you need to modify the connection
		 information based on your database connection.-->

  <ConnectionSet xmlns="http://www.mapinfo.com/mxp">
  </ConnectionSet>
  <DataSourceDefinitionSet xmlns="http://www.mapinfo.com/mxp/wms">
    <DBDataSourceDefinition id="id1" readOnly="false" xmlns="http://www.mapinfo.com/mxp">
      <DataSourceName>SDO_MO_ADM</DataSourceName>
      <ConnectionMember>
        <InlineDBConnection>
          <OCIConnectionString>SRVR=srv;UID=***;pwd=***;</OCIConnectionString>
        </InlineDBConnection>
      </ConnectionMember>
      <DBQuery>
        <Query>select * from "RGIS_MO"."SDO_MO_ADM"</Query>
      </DBQuery>
      <DBDataSourceMetadata>
        <KeyAttributes />
      </DBDataSourceMetadata>
      <DBDataSourceCache useCache="true" cacheAll="false" cacheType="memory" />
    </DBDataSourceDefinition>
  </DataSourceDefinitionSet>

  <mxp-wms:WmsLayer queryable="false">
    <mxp-wms:Name>World</mxp-wms:Name>
    <mxp-wms:Title>The World</mxp-wms:Title>
    <mxp-wms:Abstract>This is a root layer that represents the whole world.</mxp-wms:Abstract>
    <mxp-wms:SRSNameSet>
      <mxp:SRSName>EPSG:9987</mxp:SRSName>
    </mxp-wms:SRSNameSet>
    <mxp-wms:WmsStyleSet/>
    <mxp-wms:WmsLayerList>

      <mxp-wms:WmsLayer>
        <mxp-wms:Name>d_adm</mxp-wms:Name>
        <mxp-wms:Title>d_adm</mxp-wms:Title>
        <mxp-wms:Abstract>d_adm</mxp-wms:Abstract>
        <mxp-wms:SRSNameSet/>
        <mxp-wms:WmsStyleSet>
          <mxp-wms:WmsStyle>
            <mxp-wms:Name>RedLine</mxp-wms:Name>
            <mxp-wms:Title>Blue Fill</mxp-wms:Title>
            <mxp-wms:Abstract>This is a blue area fill with a red border.</mxp-wms:Abstract>
            <AreaStyle xmlns="http://www.mapinfo.com/mxp">
              <!-- The following defines the red border -->
              <LineStyle stroke="red" width="1" width-unit="mapinfo:imagesize pixel">
                <Pen>mapinfo:pen 2</Pen>
              </LineStyle>
            </AreaStyle>
          </mxp-wms:WmsStyle>
        </mxp-wms:WmsStyleSet>
        <mxp:FeatureLayer id="id12" name="d_adm" alias="d_adm" volatile="unknown" xmlns="http://www.mapinfo.com/mxp">
          <mxp:DataSourceRef ref="id1"/>
        </mxp:FeatureLayer>
      </mxp-wms:WmsLayer>

    </mxp-wms:WmsLayerList>
  </mxp-wms:WmsLayer>
</WmsConfig>
