How to omit empty values in SOAP request

Posted by Piotr Ryszkiewicz on 24-Oct-2018 09:36

Hello,

I'd like to ask what are the options to omit empty values in SOAP request when calling 3rd party WS from ABL with dataset as the input. These are not mandatory, but the service requires to omit empty tags completely, so that means if the value of Field is empty (or null) neither

<Field xsi:nil="true"/>

nor

<Field/>

are allowed.

I know I can set XML-NODE-TYPE to "HIDDEN", but it can be used only if Field is empty in all cases. But what if it's not? I can also generate XML manually and pass it to WS as longchar, but I was hoping there is also easier way.

Any ideas ?

Thank you,

Piotr

All Replies

This thread is closed