Skip to content
Ryan Heaton edited this page Sep 17, 2015 · 1 revision

PHP XML Client Module

The PHP XML client module generates the client-side libraries that will access the XML aspects of the Web service API.

Configuration

The PHP XML client module is configured by the php-xml-client element under the modules element of the enunciate configuration file. It supports the following attributes:

attribute description
slug The "slug" attribute is used to determine the name of the client-side artifact files. The default is the Enunciate project slug.
singleFilePerClass The "singleFilePerClass" attribute is used to direct Enunciate to generate a single file for each model class. Default: false.

Elements

The php-xml-client element supports the following child elements:

package-conversions

The "package-conversions" subelement of the "php-xml-client" element is used to map packages from the original API packages to different package names. This element supports an arbitrary number of "convert" child elements that are used to specify the conversions. These "convert" elements support the following attributes:

  • The "from" attribute specifies the package that is to be converted. This package will match all classes in the package as well as any subpackages of the package. This means that if "org.enunciate" were specified, it would match "org.enunciate", "org.enunciate.api", and "org.enunciate.api.impl".
  • The "to" attribute specifies what the package is to be converted to. Only the part of the package that matches the "from" attribute will be converted.

facets

Facet configuration for the module. See Facets.

Clone this wiki locally