IBM Support

PI43458: EXCEPTION IN GENERATED SOAP ADAPTER IF USING EMPTY COMPLEXTYPE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A "Cannot read property 'children' from undefined" error is
    thrown at runtime for the empty complex type that exists in the
    generated SOAP adapter.
    

Local fix

  • -
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * MobileFirst Platform Foundation developers using SOAP        *
    * adapters                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The current SOAP adapter generator expects child             *
    * elements/attributes to be defined for all complex types      *
    * defined by the WSDL.  If the child elements/attributes are   *
    * not defined for the complex type the adapter generator does  *
    * not set a type or create a children array for the complex    *
    * type.  As a result, a "Cannot read property "children" from  *
    * undefined" error will be thrown for the complex type at      *
    * runtime.                                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • A complex type with no children is a valid declaration in
    XSD/WSDL so the adapter generator should be able to handle this.
    The code was modified so that a type is set and an empty
    children array is created for complex types with no child
    attributes/elements.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI43458

  • Reported component name

    MFPF/WORKLIGHT

  • Reported component ID

    5725I4301

  • Reported release

    630

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-21

  • Closed date

    2015-08-24

  • Last modified date

    2015-08-24

  • 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

    MFPF/WORKLIGHT

  • Fixed component ID

    5725I4301

Applicable component levels

  • R630 PSY

       UP

  • R700 PSY

       UP

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"630","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 October 2021