概述
- 本地计算机上必须安装了 Master Data Services 配置管理器。
- 本地主数据管理器 Web 应用程序必须存在。
- 本地或远程 Master Data Services 数据库必须存在。
启用 Web 服务
- 打开 Master Data Services 配置管理器。
- 在左窗格中单击“Web 配置”。
- 在“Web 配置”页的“Web 应用程序”下,从“网站”列表中选择包含您的主数据管理器 Web 应用程序的网站。
- 在“Web 应用程序”框中,选择承载主数据管理器的 Web 应用程序。
- 在“Web 服务”下,选择“为此 Web 应用程序启用 Web 服务”,然后单击“应用”。
- 在文本编辑器中打开 Master Data Services Web.config 文件。此文件位于 Master Data Services 安装路径的 WebApplication 文件夹中。
- 找到 <serviceBehaviors> 下的 mdsWsHttpBehavior 部分。对于 <serviceMetadata> 元素,将 httpGetEnabled 设置为 true。
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="mdsWsHttpBehavior">
<!-- Enable to allow clients to retrieve metadata (WSDL) about the service endpoints. -->
<!-- If not using SSL (httpGetEnabled="true" httpsGetEnabled="false") to expose service metadata.—>
<!-- If SSL is being used (httpGetEnabled="false" httpsGetEnabled="true") to expose service metadata.-->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
<!-- Enable to allow clients to see service exception details -->
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceThrottling maxConcurrentSessions="400"/>
<dataContractSerializer maxItemsInObjectGraph="999999999"/>
</behavior>
</serviceBehaviors>
</behaviors>
…
</system.serviceModel>