How to Use WSDL

Source: Internet
Author: User
WSDL/out: myproxyclass. CS http: // hostserver/webserviceroot/webservicename. asmx? WSDL


The Web Service Description Language tool is generated from the WSDL protocol file, XSD architecture, and. discomap discovery documents for XML Web Services and XML Web Services clients.Code.

 
WSDL [Options] {URL | path}
Parameters Description

URL

Point to the URL of the WSDL protocol file (. WSDL), XSD Schema file (. XSD), or discovery document (. Disco. Note that you cannot specify the URL as A. discomap document.

Path

Path of the local WSDL protocol file (. WSDL), XSD Schema file (. XSD), or discovery document (. Disco or. discomap.

Option Description

/Appsettingurlkey: Key

Or

/Urlkey: Key

Specifies the configuration key used to read the default value of the URL attribute when code is generated. Use/ParametersThis value is<Appsettingurlkey>Element and contains a string.

/Appsettingbaseurl: Baseurl

Or

/Baseurl: Baseurl

Specify the base URL used to calculate the URL fragment. This tool usesBaseurlThe parameter is converted to the URL in the WSDL document to calculate the URL segment. You must use this option to specify/Appsettingurlkey. Use/ParametersThis value is<Appsettingbaseurl>Element and contains a string.

/D[Omain]:Domain

The domain name used to connect to the server that requires authentication. This value is<Domain>Element and contains a string.

/L[Anguage]:Language

Specifies the language used for the generated proxy class. You can specifyCS(C #; default ),VB(Visual Basic ),JS(Jscript) orVjs(Visual J #) as the language parameter. You can also specify the fully qualified name of the class that implements the system. codedom. compiler. codedomprovider class. This value is<Language>Element and contains a string.

/N[Amespace]:Namespace

Specify the namespace of the generated proxy or template. The default namespace is a global namespace. This value is<Namespace>Element and contains a string. This element must be in the parameter file.

/Nologo

Undisplay Microsoft startup title. This value is<Nologo>Element and containTrueOrFalse.

/Order

Generates an explicit sequence identifier on a particle member.

/O[UT]:Filename or directoryname

Specifies the file (or directory) used to save the generated proxy code ). You can also specify the directory in which the file is to be created. This tool exports the default file name from the XML Web Services Name. This tool saves the generated data set to different files. This value is<Out>Element and contains a string.

/Parameters

READ command line options from the specified XML file. With this option, many options can be passed to the wsdl.exe tool at one time. The abbreviation is "/PAR :". Optional elements are included in<WsdlparametersXmlns = "http://microsoft.com/webReference">Element. For more information, see the remarks section.

/Parsableerrors

Displays errors in an error report format similar to that used by the Language compiler. This value is<Parsableerrors>Element, andTrueOrFalse.

/P[Assword]:Password

Specifies the password used to connect to the server that requires authentication. This value is<Password>Element and contains a string.

/Protocol: Protocol

Specify the protocol to be implemented. You can specifySoap(Default ),Httpget,HttppostOr the custom protocol specified in the configuration file. This value is<Protocol>Element and contains a string.

/Proxy: URL

Specifies the URL of the proxy server used for HTTP requests. By default, system proxy settings are used. This value is<Proxy>Element and contains a string.

/Proxydomain: Domain

Or

/PD: Domain

Specifies the domain used to connect to the proxy server that requires authentication. This value is<Proxydomain>Element and contains a string.

/Proxypassword: Password

Or

/PP: Password

Specifies the password used to connect to the proxy server that requires authentication. This value is<Proxypassword>Element and contains a string.

/Proxyusername: Username

Or

/PU: Username

Specifies the username used to connect to the proxy server that requires authentication. This value is<Proxyusername>Element and contains a string.

/Server

Generate the abstract class of XML Web Services according to the agreement. The client proxy class is generated by default. Use/ParametersThis value is<Style>Element and contains "server ".

/Serverinterface

Is
The server side of ASP. NET Web Service implements the generation interface. Generates an interface for each binding in the WSDL document. Separate Implementation of WSDL in WSDL
Protocol (the class implementing the interface should not include one of the following attributes in the class method: Modify the Web service attribute or serialization attribute of the WSDL protocol ). The abbreviation is "/Si ". Use
/Parameters option, this value is<Style>It also contains "servicerinterface ".

/Sharetypes

Dozen
Enable type sharing. This function uses a type definition to create a code file for the same type shared by different services (the namespace, name, and connection signature must be the same ). Reference
The "http: //" url Service acts as a command line parameter or creates a discomap document for a local file. This value is<Sharetypes>Element, andTrueOrFalse.

/U[Sername]:Username

Specifies the username used to connect to the server that requires authentication. This value is<Username>Element and contains a string.

/?

Displays the command syntax and options of the tool.

 

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.