enunciate

articulate your web api.

XML Module

The XML deployment module generates the consolidated WSDLs and schemas for the API..

The order of the XML deployment module is 0, as it doesn't depend on any artifacts exported by any other module.

Steps

generate

The only significant step in the XML deployment module is the "generate" step. This step generates the WSDLs and schemas for the API.

Configuration

The configuration for the XML deployment module is specified by the "xml" child element of the "modules" element of the enunciate configuration file. It supports the following attributes:

  • The "prettyPrint" attribute specifies that the generated XML files should be pretty printed. Default is "true".

The "schema" element(s)

The "xml" element supports an arbitrary number of "schema" child elements that are used to configure the schema for a specified namespace. It supports the following attributes:

  • The "namespace" attribute specifies the namespace of the schema that is to be configured.
  • The "file" attribute specifies name of the schema file. The default is the prefix appended with ".xsd".
  • The "location" attribute specifies name of the schema location (i.e. how the schema is to be located by other schemas). The default is the name of the file.

The "wsdl" element(s)

The "xml" element supports an arbitrary number of "wsdl" child elements that are used to configure the wsdl for a specified namespace. It supports the following attributes:

  • The "namespace" attribute specifies the namespace of the wsdl that is to be configured.
  • The "file" attribute specifies name of the wsdl file. The default is the prefix appended with ".wsdl".

Artifacts

The XML deployment module exports artifacts for each WSDL and schema produced. The id of the artifact is the name of the prefix for the namespace of hte file appended with ".wsdl" (for wsdls) and ".xsd" (for schemas).