Hi Martin,
I could able to create a JSON having parameter as Array lists. I did test using POSTMAN and it worked fine too.
code snippet:
[
AifCollectionType('_salesOrderIds', Types::String),
AifCollectionType('_holdcodes', Types::String)
]
public void onHold(List _salesOrderIds, List _holdcodes)
{
//Code to put on hold
}
POSTMAN input Body:
{
"_salesOrderIds": ["SO1","SO2"],
"_holdcodes": ["weather","credit"]
}
If my service needs to accept below JSON format as input, should I need to manage by writing data contract class or is there any other way we can achieve ?
[
{
"_SalesOrderIds: "SO1",
"_holdcodes":"Weather"
}
{
"_SalesOrderIds: "SO1",
"_holdcodes":"Credit"
}
]
Thank you !!