Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
JSON pass null value in XSLT

Hi
I use JDeveloper 12.2.1.0, i have rest web service JSON POST and XSLT, and i have VARCHAR2 in datebase, i need to pass null value to that field in database but no luck, i try below:
"note" : null
"note" : ""
Any suggestion?
Answers
-
Any suggestion?
-
Hi,
Could you please show us how you configured it (REST adapter and BPEL) and how your xslt looks like?
Kind regards,
Martien -
Thanks for replay,
Rest service:
XSLT:
-
Hmmm. In this case it should work. Because the element is always created, eventhough the elemnt in the source is empty or does not exist.
You could try to add an if construction on the xsi:nil, something like:
<xsl:if test="string-length(pmsRiskManagementSelected) =0">
<xsl:attribute name="xsi:nil">true</xsl:attribute>
</xsl:if>
(typed by heart, so check the namespaces etc.
Kind regards,
Martien -
Thanks for replay, i will try it.