Hi All,
Here is the requirement:
Method : GET
Request Param: Products is an array
{
"id"
:
"123456678"
,
"companyaccountnumber"
:
"12335566"
,
"currency"
:
"EUR"
,
"language"
:
"de"
,
"products"
: [{ // Array
"lineid"
:
"ed621cd3-0519-4743-b9fd-9db12d0c77be"
,
"article"
:
"5sb121"
,
"quantity"
: 45,
"spa"
:
"55555"
}]
}
I need to call third party service with GET Params passed above.
Problem: I created Business Proxy and while creating REST Binding i gave XSD as request parameter (I had selected option of enforcing schema). By doing this OSB does not give me any error and warnings but when i try to test it through console and see sample URL generated i do not see products as an array. It seems OSB ignores array part. See below and attached screenshot:
/mock/api/priceservice/cart/?WebSsoId=9&CompanyAccountNumber=10&Currency=Currency11&Language=Language12&LineId=LineId13&Article=Article14&Quantity=15&Spa=16
How I Expect this to be: /mock/api/priceservice/cart?webssoid=3B58&companyaccountnumber=MAUDDEMO¤cy=EUR&language=de&products[0][lineid]=5&products[0][article]=5sb121&products[0][quantity]=1&products[0][spa]=55555