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 documentation| Modifier and Type | Class and Description |
|---|---|
static class |
WsdlToDotnet.Compiler
The enumerated values for our compiler
|
static class |
WsdlToDotnet.Schema
nested schema class
Only supported on NET until mono add multi-URL handling on the command line
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_DEST_FILE_IS_DIR
error message: dest file is a directory
|
static java.lang.String |
ERROR_NO_DEST_FILE
error message: no dest file
|
protected java.lang.String |
extraOptions
any extra command options?
|
description, location, project| Constructor and Description |
|---|
WsdlToDotnet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSchema(WsdlToDotnet.Schema source)
add a new source schema to the compilation
|
void |
execute()
do the work by building the command line and then calling it
|
void |
setCompiler(WsdlToDotnet.Compiler compiler)
identify the compiler
|
void |
setDestFile(java.io.File destFile)
Name of the file to generate.
|
void |
setExtraOptions(java.lang.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 |
setIdeErrors(boolean ideErrors)
Defines wether errors are machine parseable.
|
void |
setLanguage(java.lang.String language)
set the language; one of "CS", "JS", or "VB"
optional, default is CS for C# source
|
void |
setMakeURL(boolean b)
flag to trigger turning a filename into a file:url
ignored for the mono compiler.
|
void |
setNamespace(java.lang.String namespace)
namespace to place the source in.
|
void |
setProtocol(java.lang.String protocol)
what protocol to use.
|
void |
setServer(boolean server)
flag to enable server side code generation;
optional, default=false
|
void |
setSrcFile(java.io.File srcFile)
The local WSDL file to parse; either url or srcFile is required.
|
void |
setUrl(java.lang.String url)
Sets the URL to fetch.
|
protected void |
validate()
validation code
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectprotected java.lang.String extraOptions
public static final java.lang.String ERROR_DEST_FILE_IS_DIR
public static final java.lang.String ERROR_NO_DEST_FILE
public void setDestFile(java.io.File destFile)
destFile - filenamepublic void setUrl(java.lang.String url)
url - url to savepublic void setSrcFile(java.io.File srcFile)
srcFile - WSDL filepublic void setLanguage(java.lang.String language)
language - language to generatepublic void setServer(boolean server)
server - server-side flagpublic void setNamespace(java.lang.String namespace)
namespace - new namespacepublic void setFailOnError(boolean failOnError)
true.failOnError - new failure optionpublic void setExtraOptions(java.lang.String extraOptions)
extraOptions - The new ExtraOptions valuepublic void setIdeErrors(boolean ideErrors)
ideErrors - a boolean value.public void setProtocol(java.lang.String protocol)
protocol - the protocol to use.public void addSchema(WsdlToDotnet.Schema source)
source - a nested schema element.public void setMakeURL(boolean b)
b - a boolean value.public void setCompiler(WsdlToDotnet.Compiler compiler)
compiler - the enumerated value.protected void validate()
throws BuildException
BuildException - if validation failedpublic void execute()
throws BuildException
execute in class TaskBuildException - if validation or execution failed