Dear,
Even i have tried this also and not working.Its because of JSON format issue.
Basically we need to prepare the JSON object as like below by using from above input Map<String,Object> object.
{
“variables” : {
“regime”: {“value” :“import”},
“declarationType”:{“value”: “import”},
“partyType”: {“value”:“commercial”},
“declarationLines”:{“value”: [
{
“hscode”:“10101010”,
“description”:“test1”,
“hscodeCOO” :“UAE”
},
{
“hscode”:“20202020”,
“description”:“test2”,
“hscodeCOO” :“IND”
}
]},
“declarationInvoiceDocuments”:{“value”: [
{
“invoiceNumber”:“12345”,
“invoiceType”:“CIP”
},
{
“invoiceNumber”:“123456”,
“invoiceType”:“CIF”
}
]}
}
}
Can you help to provide the sample java client to prepare the Above format JSON?
Thanks
Vemula