Apache CXF Stubs

Applies to ReadyAPI 3.5, last modified on December 29, 2020

The Apache CXF tool takes a WSDL document and generates fully annotated Java code from which to implement a service. The WSDL document must have a valid portType element, but it does not need to contain a binding element or a service element. For details, see http://cxf.apache.org/docs/wsdl-to-java.html.

You can get the latest version from the Apache CXF website.

Basic Tab

On the Basic tab, you configure the export parameters.

The Basic tab

Click the image to enlarge it.

Option Description

WSDL

The path to the definition file to use.

Use cached WSDL

Select to use the WSDL definition cached in ReadyAPI.

Output Directory

The path to the output folder containing the generated files.

Package

The generated package name.

Output Package

Maps WSDL namespaces to the generated Java packages.

Client

Select to generate starting point code for a client mainline.

Server

Select to generate starting point code for a server mainline.

Implementation

Select to generate starting point code for an implementation object.

build.xml

Select to generate the Ant build.xml file.

All Code

Select to generate all starting point code types: service proxy, service interface, server mainline, client mainline, implementation object, and the Ant build.xml file.

Advanced Tab

On the Advanced tab, you can configure the parameters of the generated service.

The Advanced tab

Click the image to enlarge it.

Option Description

Bindings

A space-separated list of JAXWS or JAXB binding files.

Compile

Select to compile the generated Java files.

Class Folder

The folder to save the generated files to.

Catalog

The full path to the catalog file used for wsdl/schema mapping.

Exclude Namespaces

Map WSDL namespaces to the generated Java packages.

EXSH

Select to enable extended SOAP header message binding.

DNS

Select to enable loading of the default namespace mapping.

DEX

Select to enable loading of the default excludes namespace mapping.

Validate WSDL

Select to validate WSDL before generating service code.

Custom Args Tab

On the Custom Args tab, you can specify tool arguments you cannot configure using the dialog options. Use the Java Args edit box to specify command-line arguments for the Java VM, and the Tool Args edit box to specify command-line arguments for the tool.

The Custom Arguments tab

Click the image to enlarge it.

See Also

Code Generation in ReadyAPI
Running SOAP Code Generation Tools

Highlight search results