Introduction to the WSDL parameter of the client proxy tool generated by WebService

Source: Internet
Author: User

Wsdl.exe
ASP. NET is used to discover documents based on the WSDL protocol file, XSD architecture, and. disc. It is a practical tool for the XML Web Services Client and XML Web ser code. This tool can be used with disco.exe.

Wsdl.exe <option> <URL or path>

Option

<URL or path>-
The URL or/nologo pointing to the WSDL protocol, XSD architecture, or. discomap document undisplays the copyright logo.

/Language: <language>
The language used to generate the proxy class. Select from "CS", "VB", "JS", and "CPP", or provide a fully qualified name for the class implementing system. codedom. compiler. The default language is "CS" (cshar) in the format of "/L :".

/Sharetypes
Enable the type sharing function. This function creates a code file with a single type definition for the same type (namespace, name, and network signature must be the same) shared by different services. Use http: // URLs as a command line parameter to reference the service, or create a discomap document for a local file.

/Verbose

Additional information is displayed when/sharetypes is enabled. The abbreviation is "/V ".

/Fields
Generate fields rather than attributes. The abbreviation is "/F ".

/Order
Generates an explicit sequence identifier for a particle member.

/Enabledatabinding
Implement the inotifypropertychanged interface on all generated types to enable data binding. The abbreviation is "/EDB ".

/Namespace: <namespace>
The generated proxy or template namespace. The default namespace is the global namespace. The abbreviation is "/N :".

/Out: <FILENAME | directorypath>
The name or directory path of the generated proxy code. The default file name is derived from the service name. The abbreviation is "/O :".

/Protocol: <protocol>
Rewrite the default protocol to be implemented. Select from "Soap", "soap12", "httpget", and "httppost.

/Username: <username>

/Password: <password>

/Domain: <domain>
The Credential used to connect to the server that requires authentication. The abbreviations are "/u:", "/P:", and "/D :".

/Proxy: <URL>
The URL of the proxy server used to process HTTP requests. The default setting is to use the system proxy server.

/Proxyusername: <username>

/Proxypassword: <password>

/Proxydomain: <domain>
The Credential used to connect to the proxy server that requires authentication. The abbreviations are "/PU:", "/PP:", and "/PD :".

/Appsettingurlkey: <key>
The default configuration item used to read the URL attribute in code generation. By default, it is not read from the configuration file. The abbreviation is "/urlkey :".

/Appsettingbaseurl: <baseurl>
The base URL used to calculate the URL segment. You must also specify the deleettingurlkey option. The URL segment is the result of calculating the relative URL of the URL in the WSDL document from the appsettingbaseurl.

/Parsableerrors
Output Error. The format is similar to that reported by the compiler.

Advanced

/Server
The server switch has been rejected. Use/serverinterface instead. Generate abstract classes for XML Web Services using protocol-based ASP. NET. By default, the client proxy class is generated.

/Serverinterface
Generate interfaces for servers of ASP. NET web services. An interface is generated for each binding in the WSDL document. WSDL implements the WSDL protocol separately (the class that implements the interface should not include any of the following in the class method: Modify the Web service attribute or serialization attribute of the WSDL protocol ). The abbreviation is "/Si ".

/Parameters: <File>
READ command line options from the specified XML file. In this way, you can specify options that cannot be used in the command line, such as selecting the generated asynchronous programming model type. For more information, see the tool documentation. The abbreviation is "/PAR :".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.