CXF Web service client Ant task properties file reference

The cxf_client.properties file is used to pass data to the Web services Ant tasks when creating a CXF Web service client. This file shows the available options.

Parameters

ScenarioType
Options: client
This is a required element that tells the Ant task if it is creating a Web service or a Web service client.
InitialSelection
Enter URI to the WSDL file. This URI may be a workspace relative URI or point to a remote URI. For example /dynamicWebProjectName/WebContent/myService.wsdl or http://localhost:8080/dynamicWebProjectName/services/MyServicePort?wsdl
ListRuntimes
Options: true false
If true is selected, the list of valid runtime options will be provided when the Ant task is run.
ListServers
Options: true false
If true is selected, the list of valid server options will be provided when the Ant task is run.
Client.RuntimeId
This is the ID of the CXF Web service runtime. This parameter should not modified.
Client.ServerId
Options:
  • org.eclipse.jst.server.tomcat.x (where x is 60 or 70)
  • org.eclipse.jst.server.generic.jbossx (where x is 42 or 5)
This is the ID of the target server. Delete or comment out this parameter to have the Ant task select the correct value based on the server settings of the Dynamic Web project.
ClientProjectName
By default the client project is given the name of the WSDL file from which it is created. Use this parameter to create the service project with a different name.
ClientEarProjectName
By default the client EAR project is given the name of the WSDL file from which it is created. Use this parameter to create the service EAR project with a different name.
ClientComponentType

Options: template.jst.web template.cxf.core

Use this parameter to select the type of client project.

Mappings
Enter the workspace relative URI to a property file containing mappings.
Mappings are used to override the WSDL namespace to package name mapping of the generated Java classes. The content of the properties file must be of the format wsdl-namespace=package. You will need to escape some special characters in the properties files. For example http://someNamespace=somePackage should be http\://someNamespace=somePackage. Otherwise, the colon (:) would be treated as delimiter resulting in trying to map http to //someNamespace=somePackage.
XJC Args: Specify the arguments to be passed directly to the XJC
xjc_dv
Options: true false
If true fields will be initialised with their default values.
xjc_ts
Options: true false
If true a toString() method will be added to generated classes.
xjc_ts_multi
Options: true false
If true the toString() method will produce multi line output.
xjc_ts_simple
Options: true false
If true the toString() method will produce single line terse output.
xjc_locator
Options: true false
If true the source location support for generated code will be enabled.
xjc_sync_methods
Options: true false
If true accessor methods will be generated with the 'synchronized' keyword.
xjc_mark_generated
Options: true false
If true @Generated annotations will be added to the generated code.
Bindings
Binding Files. Comma delimited string of absolute paths in the local file system of JAXWS or JAXB binding files.