--- title: "Create Master Data Manager Web Service Proxy Classes | Microsoft Docs" ms.custom: "" ms.date: "03/17/2017" ms.prod: "sql-server-2016" ms.reviewer: "" ms.suite: "" ms.technology: - "docset-sql-devref" ms.tgt_pltfrm: "" ms.topic: "reference" applies_to: - "SQL Server 2016 Preview" ms.assetid: 8bdab026-a0c0-41f3-9d36-f3919c23247f caps.latest.revision: 8 author: "sabotta" ms.author: "carlasab" manager: "jhubbard" --- # Create Master Data Manager Web Service Proxy Classes The [!INCLUDE[ssMDSmdm](../../includes/ssmdsmdm-md.md)] web service lets you make programmatic use of the features of [!INCLUDE[ssMDSshort](../../includes/ssmdsshort-md.md)] from any computer that can access your [!INCLUDE[ssMDSmdm](../../includes/ssmdsmdm-md.md)] web site. Before you can start writing code to access the web service, you must generate proxy classes. The main proxy class you use to perform web service operations is the class, which implements the interface. ## Enable Web Service Metadata Publishing Before you can generate proxy classes, you must enable web service metadata publishing. Follow these steps to do this: 1. Open the [!INCLUDE[ssMDSshort](../../includes/ssmdsshort-md.md)] Web.config file in a text editor. This file is in the WebApplication folder of the [!INCLUDE[ssMDSshort](../../includes/ssmdsshort-md.md)] installation path. 2. Find the **mdsWsHttpBehavior** section under **\**. For the **\** element, set **httpGetEnabled** to **true**. > [!NOTE] > If you want to enable Web services over Secure Sockets Layer (SSL), set **httpsGetEnabled** to **true** in the **mdsWsHttpBehavior** section of the web.config file. You also need to change **mdsWsHTTPBinding** so that it is configured for SSL, as well, and comment out the non-SSL section. 3. Save changes to the file. 4. Test metadata publishing by browsing to the service URL, for example: `http://yourserver/MDS/service/service.svc`. If metadata publishing is enabled, a page is displayed that begins with “You have created a service.” ## Creating Proxy Classes by Using Visual Studio If you have Visual Studio 2010 installed, the simplest way to generate proxy classes is to add a **Service Reference** to your project. The address of the service reference is the URL of the [!INCLUDE[ssMDSmdm](../../includes/ssmdsmdm-md.md)] web application, appended with /service/service.svc. For example: `http://yourserver/MDS/service/service.svc`. For more information, see [How to: Add, Update, or Remove a Service Reference](http://go.microsoft.com/fwlink/?LinkId=221167). ## Creating Proxy Classes by Using Svcutil.exe You must have either [!INCLUDE[msCoName](../../includes/msconame-md.md)] [!INCLUDE[vsprvs](../../includes/vsprvs-md.md)] or the [!INCLUDE[msCoName](../../includes/msconame-md.md)] Windows SDK installed in order to have Svcutil.exe on your computer. If you use [!INCLUDE[vsprvs](../../includes/vsprvs-md.md)], you must use the [!INCLUDE[vsprvs](../../includes/vsprvs-md.md)] command prompt to run the command. For more information, see [ServiceModel Metadata Utility Tool (Svcutil.exe)](http://go.microsoft.com/fwlink/?LinkId=165027) and [Generating a WCF Client from Service Metadata](http://go.microsoft.com/fwlink/?LinkId=164821). To create a set of C# proxy classes by using Svcutil.exe, use a command such as the following: ``` svcutil.exe http:////Service/Service.svc /out:.cs /messageContract /tcv:Version35 /noconfig /ct:System.Collections.ObjectModel.Collection`1 /namespace:*,Microsoft.MasterDataServices ``` Where: - *servername*:*port* are the computer name and port number of the computer that hosts [!INCLUDE[ssMDSmdm](../../includes/ssmdsmdm-md.md)]. - *virtual_path* is the virtual path of [!INCLUDE[ssMDSmdm](../../includes/ssmdsmdm-md.md)] in Internet Information Services (IIS). - *proxy_name* is the name for the generated proxy file. ## See Also [Categorized Web Service Operations (Master Data Services)](../../master-data-services/develop/categorized-web-service-operations-master-data-services.md)