DicsoTask Class

Summary

Discovers the URLs of XML web services on a web server and saves documents related to them to the local disk. The resulting .discomap, .wsdl, and .xsd files can be used with the NAnt.Contrib.Tasks.WsdlTask to produce web service clients and and abstract web service servers using ASP.NET.
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks
Base Types
  • ExternalProgramBase
graph BT Type-->Base0["ExternalProgramBase"] Type["DicsoTask"] class Type type-node

Syntax

[TaskName("disco")]
[ProgramLocation(LocationType.FrameworkSdkDir)]
public class DicsoTask : ExternalProgramBase

Examples

Generate a proxy class for a web service.

    <disco 
    path="http://www.somewhere.com/myservice.wsdl"
    language="CS" 
    namespace="MyCompany.MyService" 
    outfile="MyService.cs" 
/>

Attributes

Type Description
TaskName
ProgramLocation

Properties

Name Value Summary
Domain string
Domain of an account with credentials to access a server that requires authentication.
NoLogo bool
Suppresses the banner.
NoSave bool
Do not save the discovered documents to the local disk.
OutputDir string
The output directory to save discovered documents in.
Password string
Password of an account with credentials to access a server that requires authentication.
Path string
The URL or Path to discover.
ProgramArguments string
Gets the command-line arguments for the external program.
Proxy string
URL of a proxy server to use for HTTP requests. The default is to use the system proxy setting.
ProxyDomain string
Domain of an account with credentials to access a proxy that requires authentication.
ProxyPassword string
Password of an account with credentials to access a proxy that requires authentication.
ProxyUsername string
Username of an account with credentials to access a proxy that requires authentication.
Username string
Username of an account with credentials to access a server that requires authentication.

Methods

Name Value Summary
ExecuteTask() void
Discover the details for the specified web service.