SOAPClient generates empty elements in outgoing SOAP message for not-required fields

Solution Unverified - Updated -

Issue

  • There is a strange behaviour with the SOAPClient that generates empty xml objects for non required fields. Precisely speaking, it is observed that if a complex type of message (element in SOAP message) contains a null then SOAPClient sends an empty element (as well as an empty child element). To some users it shouldn't be a desired behaviour and ESB should rather omit the entire parent-child elements altogether, as it might cause unnecessary NullPointerException to user's code consuming the SOAP messages.
    Is there a way to fix this problem so that SOAPClient generates the SOAP messages following the pattern mentioned above?

Environment

  • Red Hat JBoss SOA Platform (SOA-P)
    • 5.3.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content