on 01-08-2016 5:40 PM
Hi Team,
We are working on REST-RFC sync interface and we are having issues with response structure multiple occurences , I would like to know whether JSON response supports JSON arrays?Like the case of XML 0 to unbound.
Thanks,
PT
Hi PT,
Yes, arrays are supported in JSON - REST adapter can process them both in request and in response. Do you have any specific issue /error during array processing in JSON by REST adapter, or is it more a question about technical feasibility?
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Thanks for you response , I am working on sync interface and in Response i have 0..unbound structure.
Response working fine with JSON if i am passing only one record and it is failing with application error if i pass multiple records or multi levels strctures.
E.g:
Order:
Response
RequestNo
Message
working fine
-----
Order:
Response1 :
RequestNO1
Message1
Response2
RequestNo2
Message2
Error:
Message
Not working
Please let me know do i need to change anything in Channel or structure level to make it work.
Thanks,
PT
PT,
By default, you don't have to change anything in a communication channel to make this working.
I would suggest to start from checking definition of a message type used for response messages - does it have correct occurrences for elements that should appear multiple times and form an array content?
If functional enhancement described in SAP Note 2175218 has been applied, please also check that there is no specific XML/JSON conversion rule created for affected payload element - e.g. the one prescribing processing of an element as a non-array element (by default, it is not enabled, but it is worth checking if any specific customizing was performed in a communication channel).
If this has already been checked, but the error remains, please post error details here.
Regards,
Vadim
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.