Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Remove All Empty Nodes from XML Payload

User_6LOBKDec 29 2020

Hi All,
We are using Oracle SOASuite 12c.
The SOA composite is making a web service call to Oracle Fusion system but Oracle Fusion doesn't like the empty nodes sent in the request.
Below is our webservice request,
<reportRequest>
<XDOPropertyList/>
<attributeCalendar/>
<attributeFormat>TEXT</attributeFormat>
<attributeLocale/>
<attributeTemplate/>
<attributeTimezone/>
<byPassCache/>
<dynamicDataSource/>
<flattenXML/>
</reportRequest>

Fusion webservcie will only work if the web service request is without the empty nodes as described below

<reportRequest>
<attributeFormat>TEXT</attributeFormat>
</reportRequest>

But SOA suite by default populated all empty nodes. Is there any solution in SOA Suite 12c to suppress the empty nodes?
I can this issue has been discussed under the link http://soa-howto.blogspot.com/2009/09/how-to-remove-empty-nodes-from-xml.html?sm_au=iHVRD0TN72qZt2DPCHt3vKHNRH6vc
But, I am wondering if there is any better solution available in 12c to deal with this situation?

Thanks,

Comments

Post Details

Added on Dec 29 2020
0 comments
208 views