Book Image

Microsoft SQL Server 2008 R2 Master Data Services

Book Image

Microsoft SQL Server 2008 R2 Master Data Services

Overview of this book

Table of Contents (18 chapters)
Microsoft SQL Server 2008 R2 Master Data Services
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with the Web Services API


Prior to using the methods and logic available in MDS, we must configure the MDS WCF service to allow us to generate a proxy class. In order to do this we need to expose the WSDL by making a change to the web.config of the MDS Web Application. Please note that making this change will recycle the IIS application cache.

  1. Open the Web.config usually found in C:\Program Files\Microsoft SQL Server\Master Data Services\WebApplication\web.config.

  2. Find the <ServiceMetaData> section.

  3. Change httpGetEnabled to True. If you have MDS set up using SSL, set httpsGetEnabled to True instead.

Now we have configured MDS we can get started with the MDS WCF Service. We will begin by creating a new console application in Visual Studio by adding the WCF service API reference to our project.

MDS WCF Service Endpoint: http ://<MDSSERVER>/Service/Service.svc.

This service endpoint can be checked by simply entering the URL into a browser window and ensuring that...