SoFunction
Updated on 2025-03-07

Detailed explanation of the analysis and utilization of the generated webservice proxy class

Generate webservice proxy class
Generate webservice proxy class based on the provided wsdl
1. Start->Program->Visual Studio 2005 Command Prompt
2. Enter the following red marking section
D:/Program Files/Microsoft Visual Studio 8/VC>wsdl /language:c# /n:TestDemo /out:d:/Temp/ D:/Temp/
A file will be generated under d:/Temp
Notice:D:/Temp/ is a wsdl path, which can be a url path: http://localhost/Temp/?wsdl

WSDL parameter description:
<Options> <URL or Path> <URL or Path> ...
- Options -
<URL or Path> -
URL or path to a WSDL contract, XSD schema, or .discomap document.
/nologo
Cancel display of the copyright logo.
/language:<language>
The language used for the generated proxy class. Please go from "CS", "VB", "JS", "VJS",
Selected in "CPP", or for implementation
The class provides a fully qualified name. The default language is "CSharp".
The abbreviation is "/l:".

/sharetypes
Turn on the type sharing function. This feature is shared among different services
The same type of    (namespace, name and network signature must be the same)
Create a code file with a single type definition.
Please use http:// URLs as command line argument to reference
Service, or create a discomap document for local files.

/verbose
Additional information is displayed when specifying the /sharetypes switch.
The abbreviation is "/v".

/fields
Generate fields instead of attributes. The abbreviation is "/f".

/order
Generate explicit sequential identifiers for particle members.

/enableDataBinding
Implement the INotifyPropertyChanged interface on all generated types,
to enable data binding. The abbreviation is "/edb".

/namespace:<namespace>
The namespace of the generated proxy or template. Default namespace
Namespace for the global namespace. The abbreviation is "/n:".

/out:<fileName|directoryPath>
The file name or directory path of the generated proxy code. The default file name is from
Derived from service name. The abbreviation is "/o:".

/protocol:<protocol>
Rewrite the default protocol to implement. Please go from "SOAP", "SOAP12",
Select from "HttpGet" and "HttpPost".

/username:<username>
/password:<password>
/domain:<domain>
The credentials used when connecting to the server that requires authentication.
The abbreviation is "/u:", "/p:" and "/d:".

/proxy:<url>
The URL of the proxy server used to handle HTTP requests.
The default is to use the system proxy server settings.

/proxyusername:<username>
/proxypassword:<password>
/proxydomain:<domain>
The credentials used when connecting to the proxy server that requires authentication.
The abbreviations are "/pu:", "/pp:" and "/pd:".

/appsettingurlkey:<key>
Used to read URL attributes in code generation
Configuration items for default values. Default is not configured from
Read in the file. The abbreviation is "/urlkey:".

/appsettingbaseurl:<baseurl>
The base URL used when calculating the URL segment.
The appsettingurlkey option must also be specified. The URL segment is
Calculate from appsettingbaseurl
Result of the relative URL of the URL in the WSDL document. The abbreviation is "/baseurl:".

/parsableerrors
Output error, its format is similar to that reported by the compiler.

- Advanced -

/server
The server switch has been rejected. Please use /serverInterface instead.
Implementation for Xml Web Services using a contract-based
Generate abstract classes. By default, a client proxy is generated
kind.

/serverInterface
Generate for the server-side implementation of web services
Interface. Will be generated for each binding in the wsdl document
An interface. wsdl implements the wsdl contract separately (implementation)
The class of an interface should not include any of the following in class methods:
Change the web service attributes or serialization of the wsdl contract
Attribute). The abbreviation is "/si".

/parameters:<file>
Read command line options from the specified xml file. This is OK
Specify options that cannot be used in the command line, such as selecting
The type of generated asynchronous programming model. For more information,
Please refer to the tool documentation. The abbreviation is "/par:".