Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

DUPLICATE: Mapper Not Wrapping Array Content in Separate Objects

edited Jan 13, 2022 5:53PM in Integration

Duplicate of Mapper Not Wrapping Array Content in Separate Objects — oracle-ccc

Unable to delete. Please ignore

-------------------



Oracle Integration Classic (Version 20.1.3)

Hi Community

We are using OIC Classic with the REST Adapter. The REST web service requires a POST and expects the following payload structure:

{
    "name": "A string",
    "parameters": [
        {
            "InvoiceNumber": "A string"
        },
        {
            "BusinessUnit": "A string"
        },
        {
            "SupplierName": "A string"
        }
    ]
}

When we wire this up via the mapper, the result is that OIC sends the request payload without the values enclosed in a single object rather than each value in a separate object:

{
    "name": "ValidateInvoice",
    "parameters": [
       {
         "InvoiceNumber": "ABCD-1234"
         "BusinessUnit": "My Business Unit"
         "SupplierName": "ABC Limited"
       }
     ]
}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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