Rational Developer for System z

WSDL2ELSSpec

Use this element of the ServiceSpecification.xml document to specify options for generating the artifacts that implement a service description in a top-down scenario.

Contained by

ServiceImplementationSpec

Contains

None

Attributes

Table 1 shows the attributes for WSDL2ELSSpec.

Table 1. Attribute specifications for WSDL2ELSSpec
Fields Description

Attribute: defaultCharMaxLength
Valid values: n where 1 <= n <= (215 – 1)
Required?: No
Default value: n = 256

Specifies a value that is applied when elementary language structure members are generated for XSD element and attribute declarations of the following types:
  • xsd:string
  • xsd:simpleType having xsd:string as its base type but omitting the length or maxLength constraining facets.

Attribute: defaultBase64BinaryLength
Valid values: See description
Required?: No
Default value: n = 256

Specifies a value that is applied when elementary language structure members are generated for XSD element and attribute declarations of the following types:
  • * xsd:base64Binary
  • * xsd:simpleType having xsd:base64Binary as its base type but omitting the length or maxLength constraining facets.

Attribute: defaultTotalDigits
Valid values: n where 1 <= n <= 31
Required?: No
Default value: n=31

Specifies a value that is applied when elementary language structure members are generated for XSD element and attribute declarations of the following types:
  • xsd:decimal
  • xsd:integer
  • xsd:simpleType having either xsd:decimal or xsd:integer as its base type but omitting the totalDigits constraining facet.

Attribute: defaultFractionDigits
Valid values: n where 0 <= n <= 31
Required?: No
Default value: n = 6

Specifies a value that is applied when elementary language structure members are generated for XSD element and attribute declarations of the following types:
  • xsd:decimal
  • xsd:simpleType having xsd:string as its base type but omitting the fractionDigits constraining facet.

Attribute:  defaultDateTimeLength
Valid values: n where 1 <= n <= (215 – 1)
Required?: No
Default value: n = 64

Specifies a value that is applied when elementary language structure members are generated for XSD element and attribute declarations of the following types:
  • xsd:date, xsd:dateTime, xsd:duration, xsd:gDay, xsd:gMonth, xsd:gMonthDay, xsd:gYear, xsd:gYearMonth, and xsd:time.
  • xsd:simpleType having one of the preceding types as its base type but omitting the length or maxLength constraining facets.

Attribute:  fileContainer
Valid values: See Description.
Required?: Yes
Default value: None

Specifies the relative path of the file container that contains the generated files. This path is relative to the project that is specified in EISProject/@name. For example, the fileContainer "generated", as used in the example below, specifies a directory at the top level of the project specified in EISProject/@name.

If the directory does not exist it is created. If the directory exists its contents are overwritten.

Attribute: inlineMaxOccursLimit
Valid values: n where 1 <= n <= (231 – 1)
Required?: No
Default value: n=20

Specifies a value that is applied when language structure members are generated for XSD element declarations that specify the minOccurs and maxOccurs facets.

If an XML element specifies a minOccurs or maxOccurs facet value that is greater than the value of this attribute, then the generated PL/I code uses arrays whose limits are determined at execution time (for example, by using the REFER clause in PL/I).

Attribute: languageFileName
Valid values: See Description.
Required?: Yes
Default value: None

Specifies the file name of the generated file into which language structures are written.

If the file does not exist it is created. If the file exists it is overwritten.

Attribute: languageNameLimit
Valid values: n where 1 <= n <= 100
Required?: No
Default value: n=100

Specifies a value that is applied when names are derived for language structures and language structure members from the names of corresponding XSD element and attribute declarations.

For PL/I, if the value of this attribute is greater than 31 then generated language structures must be compiled with the option “LIMITS(NAME(n))”, where 31 < n <= 100.

Attribute: logFileName
Valid values:  See Description.
Required?: Yes
Default value: None

Specifies the file name of the file into which log information is written.

If the file does not exist it is created. If the file exists it is overwritten.

Attribute: mappingDirectory
Valid values: See Description.
Required?: Yes
Default value: None

Specifies the relative path of the directory in which the metadata file is created. This path is relative to the path that is specified in @fileContainer.

If the directory does not exist it is created. If the directory exists its contents are overwritten.

Attribute: metadataFileName
Valid values: See Description.
Required?: Yes
Default value: None

Specifies the file name of the file into which WSDL2ELS metadata is written.

If the file does not exist it is created. If the file exists it is overwritten.

Example

<WSDL2ELSSpec 
    defaultCharMaxLength="256"
    defaultBase64BinaryLength="256"
    defaultTotalDigits="31" 
    defaultFractionDigits="6"
    defaultDateTimeLength="64"
    inlineMaxOccursLimit="20"
    languageNameLimit="31"
    fileContainer="/generated"
    languageFileName="MYAPP.inc"
    logFileName="MYAPP.log"
    mappingDirectory="metadata/mapping"
    metadataFileName="MYAPP_metadata.xml" />


Feedback