您好,欢迎访问成都祈钰瑶科技有限公司!

全国咨询热线

18982081108
✕

成都网站建设公司,成都网站UI设计,成都网站安全维护,成都网站内容优化服务

如何启用MasterDataServices的Web服务

启用的条件:

  • 本地计算机上必须安装了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。该文件的代码如下:
 
 
 
  1. <system.serviceModel>     
  2.  
  3. <behaviors>     
  4.  
  5. <serviceBehaviors>     
  6.  
  7. <behavior name="mdsWsHttpBehavior">     
  8.  
  9. <!-- Enable to allow clients to retrieve metadata (WSDL) about the service endpoints. -->     
  10.  
  11. <!-- If not using SSL (httpGetEnabled="true" httpsGetEnabled="false") to expose service metadata.—>      
  12.  
  13. <!-- If SSL is being used (httpGetEnabled="false" httpsGetEnabled="true") to expose service metadata.-->     
  14.  
  15. <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />     
  16.  
  17. <!-- Enable to allow clients to see service exception details -->     
  18.  
  19. <serviceDebug includeExceptionDetailInFaults="true" />     
  20.  
  21. <serviceThrottling maxConcurrentSessions="400"/>     
  22.  
  23. <dataContractSerializer maxItemsInObjectGraph="999999999"/>     
  24.  
  25. </behavior>     
  26.  
  27. </serviceBehaviors>     
  28.  
  29. </behaviors>     
  30.  
  31. …     
  32.  
  33. </system.serviceModel>  

 关于Master Data Services的Web服务的启用就介绍到这里了,希望本次的介绍能够给您带来一些收获吧,同时谢谢各位的浏览!