Fixes are available
Rational Software Architect Fix Pack 1 (8.5.5.1) for 8.5.5
Rational Software Architect for WebSphere Software Fix Pack 1 (8.5.5.1) for 8.5.5
Rational Software Architect 9.1
Rational Software Architect for WebSphere Software 9.1
Rational Software Architect Fix Pack 2 (8.5.5.2) for 8.5.5
Rational Software Architect for WebSphere Software Fix Pack 2 (8.5.5.2) for 8.5.5
Rational Software Architect 9.1.1
Rational Software Architect for WebSphere Software 9.1.1
Rational Software Architect Fix Pack 3 (8.5.5.3) for 8.5.5
Rational Software Architect for WebSphere Software Fix Pack 3 (8.5.5.3) for 8.5.5
Rational Software Architect for WebSphere Software 9.1.2
Rational Software Architect 9.1.2
Rational Software Architect Fix Pack 4 (8.5.5.4) for 8.5.5
Rational Software Architect for WebSphere Software Fix Pack 4 (8.5.5.4) for 8.5.5
Rational Software Architect for WebSphere Software Fix Pack 1 (9.1.2.1) for 9.1.2
Rational Software Architect Fix Pack 1 (9.1.2.1) for 9.1.2
Rational Software Architect Fix Pack 2 (9.1.2.2) for 9.1.2
Rational Software Architect Fix Pack 3 (9.1.2.3) for 9.1.2
Rational Software Architect for WebSphere Software Fix Pack 1 (9.1.2.3) for 9.1.2
APAR status
Closed as program error.
Error description
After a UML-to-XSD transformation in IBM Rational Software Architect (RSA), it is not possible to specify both 'fixed' and 'required' properties for an attribute in the XSD file. The following steps reproduce the problem: 1. Create a UML project and model 2. Apply the 'XSD Transformation', 'WSDL Transformation', and 'SoaML' transformation to the model 3. Add a package to the model and give it the '??schema??' stereotype 4. Add a class to the package and give it the '??complexType??' stereotype 5. Add an attribute to the class and give it the '??attribute??' stereotype 6. Add a literal string to the attribute and give it the value, for example, 'x' (without the quotation marks) 7. Set the attribute's Properties ? XSD Attribute ? Use value to 'required', in order to generate a required value 8. Set the attribute's Properties ? Advanced ? Is Read Only value to 'true', in order to generate a fixed value 9. Create a UML-to-XSD transformation configuration (.tc) with the model as the Source and the project as the Target 10. Run the .tc and examine the resulting XSD file Expected Result: Both the attribute's 'fixed = x' and 'use=required' properties are generated. Actual Result: Only the 'use=required' is generated. The 'fixed=x' does not appear in the XSD file. 11. Return to the model and set the Properties ? XSD Attribute ? Use value to 'optional' 12. Repeat Step 10. Result: The 'fixed=x' is generated, but not the 'use=required'. It should be possible to generate both 'fixed=x' and 'use=required' in the XSD file, but it is not. There is no workaround.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** If a user makes an XSD attribute as 'required' from the XSD properties page and also makes the attribute 'fixed' by making it Read-Only, it is not possible to generate both "fixed" and "required" properties for an attribute in the XSD file after a UML-to-XSD transformation in IBM Rational Software Architect.
Problem conclusion
Modified the UML-to-XSD transformation in IBM Rational Software Architect so that both "fixed" and "required" gets generated in the XSD file as specified in the model.
Temporary fix
Comments
APAR Information
APAR number
PI12068
Reported component name
RATL SW ARCHITE
Reported component ID
5725A3000
Reported release
851
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2014-02-19
Closed date
2014-03-31
Last modified date
2014-03-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
RATL SW ARCHITE
Fixed component ID
5725A3000
Applicable component levels
R851 PSN
UP
Document Information
Modified date:
31 March 2014