Synopsis
Description
wsdl2soap will generate a new WSDL document with a SOAP binding from an existing WSDL document containing a portType element.
Example
wsdl2soap -i GreetPortType -n http://apache.org/hello_world_doc_lit -o Greeting.wsdl -style rpc -use literal TestGreeting.wsdl
Arguments
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 SOAP binding. |
| -soap12 |
Specifies that the generated binding will use SOAP 1.2. |
| -d |
Specifies the directory to place generated WSDL file. |
| -o |
Specifies the name of the generated WSDL file. |
| -n |
Specifies the SOAP body namespace when the style is RPC. |
| -style (document/rpc) |
Specifies the encoding style (document or RPC) to use in the SOAP binding. The default is document. |
| -use (literal/encoded) |
Specifies the binding use (encoded or literal) to use in the SOAP binding. The default is literal. |
| -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. If the -style rpc argument is specified, the -nsoap-body-namspace argument is also required. All other arguments are optional and may be listed in any order.