org.apache.tools.ant.taskdefs.optional.dotnet
public class WsdlToDotnet extends Task
usetimestamp="true"
) then
you only rebuild stuff when the WSDL file is changed. Of course,
if the server generates a new timestamp every time you ask for the WSDL,
this is not enough...use the <filesmatch> <condition> to
to byte for byte comparison against a cached WSDL file then make
the target conditional on that test failing.
See "Creating an XML Web Service Proxy", "wsdl.exe" docs in
the framework SDK documentationSince: Ant 1.5
Version: 0.5
UNKNOWN: category="dotnet"
Field Summary | |
---|---|
protected String | extraOptions
any extra command options? |
Method Summary | |
---|---|
void | execute()
do the work by building the command line and then calling it
|
void | setDestFile(File destFile)
Name of the file to generate. |
void | setExtraOptions(String extraOptions)
Any extra WSDL.EXE options which aren't explicitly
supported by the ant wrapper task; optional
|
void | setFailOnError(boolean failOnError)
Whether or not a failure should halt the build.
|
void | setLanguage(String language)
set the language; one of "CS", "JS", or "VB"
optional, default is CS for C# source |
void | setNamespace(String namespace)
namespace to place the source in.
optional; default "" |
void | setServer(boolean server)
flag to enable server side code generation;
optional, default=false |
void | setSrcFile(File srcFile)
The local WSDL file to parse; either url or srcFile is required. |
void | setUrl(String url)
Sets the URL to fetch. |
protected void | validate()
validation code |
Throws: BuildException if validation or execution failed
Parameters: destFile filename
Parameters: extraOptions The new ExtraOptions value
true
.Parameters: failOnError new failure option
Parameters: language language to generate
Parameters: namespace new namespace
Parameters: server server-side flag
Parameters: srcFile name of WSDL file
Parameters: url url to save
Throws: BuildException if validation failed