Building the Custom WSDL Application
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
This topic describes how to create the custom WSDL generator. The sample custom WSDL generator is included in the Microsoft .NET Framework class library DLL, CustomWSDL.dll.
This assembly is made up of one class that is named CustomWSDL. This class provides a sample template for the sequence of actions that is required to generate a custom WSDL response. The design of this class demonstrates generating custom WSDL responses for Web service clients that have been written by using the following developmental environments:
Visual Studio 2003
Borland JBuilder 9.0
webMethods Glue 5.0.1
However, the same class and design principles can be used and modified to support other environments.
SQL Server installs the .NET Framework 2.0 as part of its installation process. The following compilation instructions require that you use this version of the .NET Framework. You can find the version number in the %windir%\Microsoft.NET\Framework folder.
Create a folder for this sample project, such as C:\temp.
Start Notepad and copy to it the source code in C# Code Listing for the Custom WSDL Application.
To the folder you created in step 1, save the file as CustomWSDL.cs.
At the command prompt, change directory to the folder where the project is saved.
Compile the code and build the .dll file. For example, if the name of the C# code file is CustomWSDL.cs, the command line would be as follows:
%windir%\Microsoft.NET\Framework\v2.0.xxxxx\csc.exe /t:library /r:sqlaccess.dll /r:System.dll /r:System.Data.dll /r:System.Xml.dll CustomWSDL.cs
xxxxx is the folder number corresponding to the version of the .NET Framework. Generally, use the highest xxxxx numbered folder.
This creates the CustomWSDL.dll executable in the current sample folder.