Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing Array in GET Request as query Parameter

3236214Jun 13 2016 — edited Jun 13 2016

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&currency=EUR&language=de&products[0][lineid]=5&products[0][article]=5sb121&products[0][quantity]=1&products[0][spa]=55555

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2016
Added on Jun 13 2016
0 comments
571 views