WSDL to SOAP

Name

wsdl2soap - generates a new WSDL document with a SOAP binding from an existing WSDL document containing a portType element.

Synopsis

wsdl2soap [[-?] |  [-help] |  [-h]] [-i <port-type-name>] [-b <binding-name>] [-soap12] [-d <output-directory>] [-o <output-file>]
[-n <soap-body-namespace>] [-style (document/rpc)] [-use (literal/encoded)] [-v] [[-verbose] | [-quiet]] wsdlurl

Description

wsdl2soap will generate a new WSDL document with a SOAP binding from an existing WSDL document containing a portType element.

Options

The options used to validate WSDL file are reviewed in the following table.

Option

Interpretation

-?,-h,-help

Displays the online help for this utility and exits.

-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.

Example

wsdl2soap -i GreetPortType -n http://apache.org/hello_world_doc_lit -o Greeting.wsdl -style rpc -use literal TestGreeting.wsdl

See Also

idl2wsdl, java2js, java2ws, wsdl2corba, wsdl2java, wsdl2js, wsdl2service, wsdl2xml, wsdlvalidator and xsd2wsdl.