Exposing the Web Service in Visual Studio .NET

Encoder QR Code 2d barcode in Visual Studio .NET Exposing the Web Service

Exposing the Web Service
Encoding QR Code In VS .NET
Using Barcode drawer for .NET framework Control to generate, create QR Code JIS X 0510 image in VS .NET applications.
Recognizing QR Code JIS X 0510 In .NET
Using Barcode decoder for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications.
For security purposes, MDS does not publicly implement the web service when you first install MDS If you are using MDS with prebuilt applications, then exposing the web service publicly from MDS Configuration Manager is the only step required If you are going to build your own solutions or use the samples listed in this book, then you must also expose the Web Services Description Language (WSDL) in order to compile against the service interface
Print Bar Code In .NET Framework
Using Barcode generator for .NET Control to generate, create bar code image in Visual Studio .NET applications.
Barcode Recognizer In Visual Studio .NET
Using Barcode scanner for .NET framework Control to read, scan read, scan image in .NET framework applications.
Procedure: How to Enable the Web Service
Painting QR Code In Visual C#
Using Barcode generation for .NET framework Control to generate, create QR Code image in Visual Studio .NET applications.
Print QR-Code In .NET Framework
Using Barcode drawer for ASP.NET Control to generate, create QR-Code image in ASP.NET applications.
To enable the web service, complete the following steps:
Print QR Code ISO/IEC18004 In Visual Basic .NET
Using Barcode creator for .NET framework Control to generate, create Denso QR Bar Code image in .NET applications.
1D Printer In Visual Studio .NET
Using Barcode generation for .NET Control to generate, create 1D Barcode image in Visual Studio .NET applications.
1 2 3 4
Barcode Printer In .NET Framework
Using Barcode drawer for .NET framework Control to generate, create bar code image in Visual Studio .NET applications.
Barcode Printer In VS .NET
Using Barcode generator for VS .NET Control to generate, create bar code image in .NET framework applications.
Click Start | Programs | Microsoft SQL Server 2008 R2 | Master Data Services | Configuration Manager In the left pane, click Web Configuration Select the web site and web application In the Web Services section, select the Enable Web services for this Web application check box
Code 39 Generator In .NET Framework
Using Barcode maker for .NET Control to generate, create Code39 image in .NET applications.
Drawing Code 93 Extended In VS .NET
Using Barcode generator for Visual Studio .NET Control to generate, create USS Code 93 image in VS .NET applications.
13: Ex tending MDS with Web S er vices
Generate Matrix Barcode In VB.NET
Using Barcode creator for Visual Studio .NET Control to generate, create Matrix 2D Barcode image in .NET framework applications.
Paint GS1 - 13 In C#.NET
Using Barcode printer for VS .NET Control to generate, create EAN 13 image in .NET applications.
Click to enable the web service
Painting Barcode In .NET
Using Barcode maker for Reporting Service Control to generate, create bar code image in Reporting Service applications.
1D Barcode Drawer In C#.NET
Using Barcode drawer for .NET Control to generate, create 1D Barcode image in Visual Studio .NET applications.
Click Apply
Code 3/9 Drawer In None
Using Barcode encoder for Software Control to generate, create Code 3/9 image in Software applications.
European Article Number 13 Maker In Java
Using Barcode maker for BIRT Control to generate, create UPC - 13 image in Eclipse BIRT applications.
Exposing the WSDL
DataMatrix Maker In None
Using Barcode creator for Office Word Control to generate, create Data Matrix 2d barcode image in Microsoft Word applications.
Data Matrix ECC200 Encoder In Java
Using Barcode encoder for Java Control to generate, create Data Matrix 2d barcode image in Java applications.
To expose the WSDL, you must modify the webconfig file directly This file is in the WebApplication directory where MDS is installed If you installed MDS in the default location, the full path is C:\Program Files\Microsoft SQL Server\Master Data Services\WebApplication\webconfig
Microsoft SQL Server 2008 R2 Master Data Services
Procedure: How to Enable the WSDL
Open the webconfig file with either Notepad or Visual Studio 2008 Find the following section:
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false"/> <!-- Enable to allow clients to see service exception details --> <serviceDebug includeExceptionDetailInFaults="false"/>
Change the setting for httpGetEnabled and includeExceptionDetailInFaults to true Then save the file This enables the web service to expose the WSDL If you have configured SSL, as described in 2, you should change httpsGetEnabled to true If you receive an Access is denied error when you save, check the security on the file When you install MDS, permissions are set on this file so that only the users in the local Administrators group have full control You may also have User Account Control (UAC) running You can disable UAC temporarily; unfortunately, you will have to restart your computer when you do this To disable UAC, open Control Panel and click System and Security Under Action Center, click Change User Account Control settings In the User Account Control Settings dialog box, slide the bar to the bottom so that you are never notified Click OK to save In the confirmation dialog box, click Yes Restart your computer, and you should be able to edit the webconfig file
Creating an MDS Project in Visual Studio
Now that the web service is exposed, you can create your first project in Visual Studio All of the code examples in this book use Visual Studio 2008
Procedure: How to Create an MDS Web Service Application
To create an application that uses the MDS web service, you must first create a project and then add the web service as a reference in the project Depending on your needs, you can create any type of application you choose In this book, we ve created wrapper classes that can be used in any type of application
13: Ex tending MDS with Web S er vices
Create a Project
To create a project in Visual Studio, complete the following steps:
1 2 3 4 5
Open Microsoft Visual Studio Click File | New | Project In the New Project dialog box, in the Project types section, under Visual C#, click Windows In the Templates section, choose the application type In this example, we chose Class Library In the Name box, type a name for your application
Click OK
Microsoft SQL Server 2008 R2 Master Data Services
Add a Service Reference
To add a service reference to the project, complete the following steps:
1 2
In Visual Studio, with your project open, click View | Solution Explorer In the Solution Explorer pane, right-click References and click Add Service Reference
The Add Service Reference dialog box is displayed In the Address box, type the URL for the MDS service This is usually your URL followed by /service/service svc For example: http://MDSSERVER/MDS/service/servicesvc Click Go The service is displayed in the Services section
Copyright © OnBarcode.com . All rights reserved.