You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to send null to Mapper Target

Accepted answer

OIC Version: 21.4.3

Hi Integration Community

I have a simple requirement in OIC where a REST web service returning JSON returns an attribute which is a string but may be null i.e.

 "TaxCode": "STANDARD"


 "TaxCode": null

We need to map this to a target REST web service expecting a JSON payload where the value can also be a string or null.

We wire up the source and target attributes using the Mapper and whilst this works fine when the value is populated, if it is null, OIC is sending an empty double-quoted string "". 

  "TaxClassification": ""

The target web service is then failing because this is not a valid value. We have verified this with the receiving web service provider.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!