Forum Stats

  • 3,824,747 Users
  • 2,260,414 Discussions
  • 7,896,301 Comments

Discussions

How to Remove All Empty Nodes from XML Payload

User_6LOBK
User_6LOBK Member Posts: 12 Red Ribbon

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,

Tagged: