| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

WSDL

Page history last edited by Corey Alix 15 years ago

Web Service Description Language 

 

Quick Reference

Element Defines
<portType> The operations performed by the web service (like a class)
<message> The messages used by the web service (like method parameters)
<types> The data types used by the web service
<binding> The communication protocols used by the web service

 

WSDL.EXE

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.312]

Copyright (C) Microsoft Corporation. All rights reserved.

 

wsdl.exe -

    Utility to generate code for xml web service clients and xml web services

    using ASP.NET from WSDL contract files, XSD schemas and .discomap

    discovery documents. This tool can be used in conjunction with disco.exe.

 

wsdl.exe <options> <url or path> <url or path> ...

 

     - OPTIONS -

 

<url or path> -

    A url or path to a WSDL contract, an XSD schema or .discomap document.

 

/nologo

    Suppresses the banner.

 

/language:<language>

    The language to use for the generated proxy class.  Choose from 'CS',

    'VB', 'JS', 'VJS', 'CPP' or provide a fully-qualified name for a class

    implementing System.CodeDom.Compiler.CodeDomProvider.  The default

    language is 'CS' (CSharp).  Short form is '/l:'.

 

/sharetypes

    Turns on type sharing feature. This feature creates one code file with

    a single type definition for identical types shared between different

    services (namespace, name and wire signature must be identical).

    Reference the services with http:// URLs as command-line parameters

    or create a discomap document for local files.

 

/verbose

    Displays extra information when the /sharetypes switch is specified.

    Short form is '/v'.

 

/fields

    Generate fields instead of properties. Short form is '/f'.

 

/order

    Generate explicit order identifiers on particle members.

 

/enableDataBinding

    Implement INotifyPropertyChanged interface on all generated types

    to enable data binding. Short form is '/edb'.

 

/namespace:<namespace>

    The namespace for the generated proxy or template.  The default namespace

    is the global namespace. Short form is '/n:'.

 

/out:<fileName|directoryPath>

    The filename or directory path for the generated proxy code. The default

    filename is derived from the service name. Short form is '/o:'.

 

/protocol:<protocol>

    Override the default protocol to implement.  Choose from 'SOAP',

    'SOAP12', 'HttpGet', 'HttpPost'.

 

/username:<username>

/password:<password>

/domain:<domain>

    The credentials to use when connecting to a server that

    requires authentication. Short forms are '/u:', '/p:' and '/d:'.

 

/proxy:<url>

    The url of the proxy server to use for http requests.

    The default is to use the system proxy setting.

 

/proxyusername:<username>

/proxypassword:<password>

/proxydomain:<domain>

    The credentials to use when the connecting to a proxy server that

    requires authentication. Short forms are '/pu:', '/pp:' and '/pd:'.

 

/appsettingurlkey:<key>

    The configuration key to use in the code generation to read the default

    value for the Url property. The default is to not read from the config

    file. Short form is '/urlkey:'.

 

/appsettingbaseurl:<baseurl>

    The base url to use when calculating the url fragment. The

    appsettingurlkey option must also be specified. The url fragment is

    the result of calculating the relative url from the appsettingbaseurl

    to the url in the WSDL document. Short form is '/baseurl:'.

 

/parsableerrors

    Print errors in a format similar to those reported by compilers.

 

     - ADVANCED -

 

/server

    Server switch has been deprecated. Please use /serverInterface instead.

    Generate an abstract class for an xml web service implementation using

    ASP.NET based on the contracts. The default is to generate client proxy

    classes.

 

/serverInterface

    Generates interfaces for server-side implementation of an ASP.Net 

    Web Service. An interface is generated for each binding in the wsdl 

    document(s). The wsdl alone implements the wsdl contract (classes 

    that implement the interface should not include either of the following

    on the class methods: Web Service attributes or Serialization 

    attributes that change the wsdl contract). Short form is '/si'.

 

/parameters:<file>

    Read command-line options from the specified xml file. This allows you

    to specify options not available from command line such as choosing

    which type of asynchronous programming model is generated. For details,

    please see the tool documentation. Short form is '/par:'.

 

XSD.EXE

Microsoft (R) Xml Schemas/DataTypes support utility

[Microsoft (R) .NET Framework, Version 2.0.50727.312]

Copyright (C) Microsoft Corporation. All rights reserved.

 

xsd.exe -

    Utility to generate schema or class files from given source.

 

xsd.exe <schema>.xsd /classes|dataset [/e:] [/l:] [/n:] [/o:] [/s] [/uri:]

xsd.exe <assembly>.dll|.exe [/outputdir:] [/type: [...]]

xsd.exe <instance>.xml [/outputdir:]

xsd.exe <schema>.xdr [/outputdir:]

 

     - OPTIONS -

 

/classes

    Generate classes for this schema. Short form is '/c'.

 

/dataset

    Generate sub-classed DataSet for this schema. Short form is '/d'.

 

/element:<element>

    Element from schema to process. Short form is '/e:'.

 

/fields

    Generate fields instead of properties. Short form is '/f'.

 

/order

    Generate explicit order identifiers on all particle members.

 

/enableDataBinding

    Implement INotifyPropertyChanged interface on all generated types

    to enable data binding. Short form is '/edb'.

 

/language:<language>

    The language to use for the generated code. Choose from 'CS', 'VB', 'JS',

    'VJS', 'CPP' or provide a fully-qualified name for a class implementing

    System.CodeDom.Compiler.CodeDomProvider. The default language

    is 'CS' (CSharp). Short form is '/l:'.

 

/namespace:<namespace>

    The namespace for generated class files. The default namespace

    is the global namespace. Short form is '/n:'.

 

/nologo

    Suppresses the banner.

 

/out:<directoryName>

    The output directory to create files in. The default

    is the current directory. Short form is '/o:'.

 

/type:<type>

    Type from assembly to generate schema for. Multiple types may be provided.

    If no types are provided, then schemas for all types in an assembly

    are generated. Short form is '/t:'.

 

/uri:<uri>

    Uri of elements from schema to process. Short form is '/u:'.

 

     - ADVANCED -

 

/parameters:<file>

    Read command-line options from the specified xml file. Short form is '/p:'.

 

     - ARGUMENTS -

<schema>.xsd       Name of a schema containing elements to import.

<assembly>.dll|exe Name of an assembly containing types to generate schema for.

<instance>.xml     Name of an xml file to infer xsd schema from.

<schema>.xdr       Name of an xdr schema to convert to xsd.

Multiple file arguments of the same type may be provided.

 

Links

http://www.w3schools.com/WSDL

Annotated WSDL Examples 

Comments (1)

Corey Alix said

at 12:21 pm on Mar 4, 2009

Another example: http://wusgvl-gisthree/arcgis/services/greensboro/MapServer?WSDL

You don't have permission to comment on this page.