Introduction to .NET Framework Tools
page 16 of 15
by Suresh Kumar Goudampally
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 68734/ 121

Wsdl.exe - An Insight

The Wsdl.exe is Web Services Description Language tool which generates code for xml web services, and xml web service clients from Wsdl contract Files, xsd schemas, and discovery documents.

The syntax for using this tool is:

wsdl [options] {URL | path}

The url is used to mention path to the .wsdl file, .xsd file or discovery document.

The Path is used to mention path to the .wsdl file, .xsd file or discovery document.

These are some of the options of the Wsdl tool with description.

 

 

             Option

            Description

   /urlkey:key

Specifies the configuration key to use in order to use the default value for the url property when generating code.

  /d: domain

Specifies the domain name to use when connecting to a server that requires authentication.

 /l:language

Specifies the language in which the code should be generated.

Eg: C# , Vb .

 

 /n: namespace

Specifies the namespace of the proxy class to be generated.

 /o: FileName or Directory Name

Specifies the file (or directory) to save the generated proxy code to.

 /parameters

Read command-line options from the specified xml file. Use this option to pass the Wsdl.exe tool a large number of options atone time.

/protocol: protocol name

Specifies the protocol to implement. You can specify SOAP (default), HttpGet, HttpPost, or a custom protocol specified in the configuration file.

/server

 

Generates an abstract class for an XML Web service based on the contracts.

/u: userName

Specifies the user name to use when connecting to a server that requires authentication.

/?

Displays all the options available with wsdl.exe tool

/proxy:URL

Specifies the URL of the proxy server to use for HTTP requests.

Example 1: 

To create a proxy class:

wsdl 

http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL

A class by name myProxyClass.cs is generated.

Example 2: 

To generate a class in VB:

wsdl /language:VB /out:myProxyClass.vb 

http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 7:56:25 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search