IBM Support

PI21871: Mapping multiple types to the same file results in only one type getting generated into the XSD file

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect (RSA), if you have a
    UML-to-XSD transformation configuration that maps multiple types
    to the same XSD file, only one of
    
    the types will get generated into the XSD file.
    
    The following steps recreate the problem:
    
    1. Create a UML project and model
    
    2. Apply the 'XSD Transformation' profile to the model
    
    3. Add a folder to the project
    
    4. Add some schemas, structural components, transfer objects,
    enumerations and classes to the model
    
    5. Add a UML-to-XSD transformation configuration (TC) to the
    project with the model as the 'Source' and the folder as the
    'Target'
    
    6. Configure the TC so that, in the 'Output Options' table,
    there is a mapping of 'UML elements' to 'Resource Locations' and
    multiple distinct types are
    
    mapped to the same XSD file.
    
    7. Run the TC and examine the XSD file in Step 6
    
    Expected Result: All the types are given in the resulting XSD
    file.
    
    Actual Result: Only one of the types is given in the resulting
    XSD file.
    
    The workaround is to manually update the XSD file to include all
    types.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In UML-to-XSD/WSDL transformation, user have the option to
    generate combined schema for multiple packages. User can
    create a map in the transformation configuration editor
    indicating which package content whould be generated where.
    In such a scenarion where multiple packages are mapped to
    the same destination file, transformation generates schema
    content only for the first package in the list and ignores
    the other packages. Thus the schema generation is incomplete
    and leads to multiple errors.
    

Problem conclusion

  • The transformation has been updated to generate a merged
    schema for all the packages content into the mapped file.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI21871

  • Reported component name

    SW ARCHITECT WI

  • Reported component ID

    5724I7001

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-11

  • Closed date

    2014-10-31

  • Last modified date

    2014-10-31

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    SW ARCHITECT WI

  • Fixed component ID

    5724I7001

Applicable component levels

  • R900 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYKBQ","label":"Rational Software Architect Designer for WebSphere Software"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021