| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
WsdlToDotnet | public class WsdlToDotnet extends Task (Code) | | Converts a WSDL file or URL resource into a .NET language.
Why add a wrapper to the MS WSDL tool?
So that you can verify that your web services, be they written with Axis or
anyone else's SOAP toolkit, work with .NET clients.
This task is dependency aware when using a file as a source and destination;
so if you <get> the file (with 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
version: 0.5 since: Ant 1.5 |
Inner Class :public static class Schema | |
ERROR_DEST_FILE_IS_DIR | final public static String ERROR_DEST_FILE_IS_DIR(Code) | | error message: dest file is a directory
|
ERROR_NO_DEST_FILE | final public static String ERROR_NO_DEST_FILE(Code) | | error message: no dest file
|
extraOptions | protected String extraOptions(Code) | | any extra command options?
|
addSchema | public void addSchema(Schema source)(Code) | | add a new source schema to the compilation
since: Ant 1.7 Parameters: source - a nested schema element. |
execute | public void execute() throws BuildException(Code) | | do the work by building the command line and then calling it
throws: BuildException - if validation or execution failed |
setCompiler | public void setCompiler(Compiler compiler)(Code) | | identify the compiler
since: Ant 1.7 Parameters: compiler - the enumerated value. |
setDestFile | public void setDestFile(File destFile)(Code) | | Name of the file to generate. Required
Parameters: destFile - filename |
setExtraOptions | public void setExtraOptions(String extraOptions)(Code) | | Any extra WSDL.EXE options which aren't explicitly
supported by the ant wrapper task; optional
Parameters: extraOptions - The new ExtraOptions value |
setFailOnError | public void setFailOnError(boolean failOnError)(Code) | | Whether or not a failure should halt the build.
Optional - default is true .
Parameters: failOnError - new failure option |
setIdeErrors | public void setIdeErrors(boolean ideErrors)(Code) | | Defines wether errors are machine parseable.
Optional, default=true
since: Ant 1.7 Parameters: ideErrors - a boolean value. |
setLanguage | public void setLanguage(String language)(Code) | | set the language; one of "CS", "JS", or "VB"
optional, default is CS for C# source
Parameters: language - language to generate |
setMakeURL | public void setMakeURL(boolean b)(Code) | | flag to trigger turning a filename into a file:url
ignored for the mono compiler.
Parameters: b - a boolean value. |
setNamespace | public void setNamespace(String namespace)(Code) | | namespace to place the source in.
optional; default ""
Parameters: namespace - new namespace |
setProtocol | public void setProtocol(String protocol)(Code) | | what protocol to use. SOAP, SOAP1.2, HttpPost and HttpGet
are the base options. Different version and implementations may.
offer different options.
since: Ant 1.7 Parameters: protocol - the protocol to use. |
setServer | public void setServer(boolean server)(Code) | | flag to enable server side code generation;
optional, default=false
Parameters: server - server-side flag |
setSrcFile | public void setSrcFile(File srcFile)(Code) | | The local WSDL file to parse; either url or srcFile is required.
Parameters: srcFile - WSDL file |
setUrl | public void setUrl(String url)(Code) | | Sets the URL to fetch. Fetching is by wsdl.exe; Ant proxy settings
are ignored; either url or srcFile is required.
Parameters: url - url to save |
|
|