| Apache CXF Documentation > Index > Tools > WSDL to XML |
wsdl2xml [[-?] | [-help] | [-h]] [-i <port-type-name>] [-b <binding-name>] [-d <output-directory>] [-o <output-file>]
[-a <address>] [-e <service-name>] [-p <port-name>] [-v] [[-verbose] | [-quiet]] wsdlurl
wsdl2xml will generate a new WSDL document with a XML binding from an existing WSDL document containing a portType element.
wsdl2xml -i GreetPortType -a address TestGreeting.wsdl
The arguments used to manage the WSDL file generation are reviewed in the following table.
| Option | Interpretation |
|---|---|
| -? | Displays the online help for this utility. |
| -help | |
| -h | |
| -i | Specifies the portType element for which a binding should be generated. |
| -b | Specifies the name of the generated XML binding. |
| -d | Specifies the directory to place generated WSDL file. |
| -o | Specifies the name of the generated WSDL file. |
| -p | Specifies the value of the name attribute of the generated port element, sperate by space. |
| -s | Specifies the name of the generated service. |
| -a | Specifies the value used in the address element of the port, sperate by space |
| -v | Displays the version number for the tool. |
| -verbose | Displays comments during the code generation process. |
| -quiet | Suppresses comments during the code generation process. |
| wsdlurl | The path and name of the WSDL file containing the portType element definition. |
The -i port-type-name and wsdlurl arguments are required.All other arguments are optional and may be listed in any order.