Import Web Service References in .NET
Note (2025): This post refers to .NET Framework 2.0 era tools such as wsdl.exe. Modern .NET projects generally use Connected Services in Visual Studio or dotnet svcutil. The example is preserved for historical reference. You may need to consume Web services from client applications. Visual Studio provides tools for generating proxy classes, which in some cases may be insufficient. In those cases, the wsdl.exe tool is an alternative. The wsdl.exe tool You can use the command prompt tool wsdl.exe, included within the .NET Framework 2.0 SDK. This tool accepts the path to a WSDL file and generates the proxy class automatically. ...