PM70975: JAX-WS option 'Manage generated code for multiple schema versions' generates zero length packageversions.xml file

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts at using the new Rational Application Developer v8.0.4
    feature for JAX-WS Code Generation to 'Manage generated code for
    multiple schema versions' results in a zero length
    packageversions.xml file generated in the project source folder.
    
    Problem:
    
    In version 8.0.4 a new enhancement was  implemented to handle
    multiple WebService WSDL/schema versions.  It can be enabled in
    the workspace preferences:
    Window ? Preferences ? Web Services ? WebSphere ? JAX-WS Code
    Generation:
    [x]  Manage generated code for multiple schema versions.
    This is used for Top-Down and Client JAX-WS generation from a
    WSDL.
    
    This option was selected in the user scenario for generating a
    JAX-WS web service from a WSDL using the web service creation
    wizard. When the elements used by WSDL operation input and
    output messages are moved from the XML schema into the WSDL
    types/schema section, the resulting packageversions.xml file,
    which records versions, is generated as a zero length file in
    the
    project source folder.  The Java stub packages are still
    generated correctly.
    
    Local fix:
    
    This works correctly with the XML schema elements referenced by
    the WSDL messages in a separate schema.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If the JAX-WS Code Generation option to 'Manage generated
    code for multiple schema versions' is turned on, and the
    WSDL contains an inline schema (with types and/or elements
    defined, and not just imports), then the packageversions.xml
    file to track the mapping between the package and the
    version will be empty.
    

Problem conclusion

  • When generating the packageversions.xml file, guard against
    null versions of the inline schema (NPE).  The file will
    then properly serialize.  The fix for this APAR is included
    in Rational Application Developer v8.0.4.2.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM70975

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    803

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-15

  • Closed date

    2012-12-15

  • Last modified date

    2012-12-15

  • 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 APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R803 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.0.3

Reference #:

PM70975

Modified date:

2012-12-15

Translate my page

Machine Translation

Content navigation