on 2017 Aug 03 10:37 AM
Hi
I have a ECC - PI - Webservices synchronous interface. I am using REST receiver webservice. I am using Java Mapping to convert xml to JSON and I am not using the conversion option in the REST adapter. The reason I am using Java Mapping is because I have two force array in a particular table. The materialMaster is a table. It comes as object in the payload if there is only one set of value and as an array if there are multiple sets of values. So I am using Java mapping to force array.
In the REST Receiver communication channel, under the Data Format tab, I have clicked the check box next to "Strip Operation from Mesage (Outer Element)" but still I am getting the outer node, MT_MaterialMaster in the target payload.
I have attached a screenshot too.
Why is it that the MessageType is not taken off from the payload?
Regards
Harish Babu
Just in case someone is still wondering about this like I did until a few moments ago.
The note is not very specific regarding the actual doing beside the SP upgrade...
You have to set the module Parameter "setIgnoredElements" for the standard REST Module Name "sap.com/com.sap.aii.adapter.rest.app/RESTAdapterBean".
As Parameter Value you have to insert the fieldnames that should be ignored.
As far as I recall you have to comma separate them without any additional chars.
The above setting will delete the fieldname "CUSTOMDER_ID" from the JSON payload.
That's what you want to do in order to create a "anonymous" array in a JSON request.
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gregory Niemann,
I have used module parameter "setIgnoredElements" to remove unwanted fields from json payload but in return i am getting , for each field which i removed.
Ex: Before applying module parameter
<Field1>12345</Field2><Field3><Field2>test</Field2><Field3>Test1</Field3>
After applying moduleparameter setIgnoredElements with ParameterValue Field2,Field3
{ "Field1": "12345",,,}
Any suggestion how to remove ,,, from the json payload?
Thanks
Anil Kumar
User | Count |
---|---|
61 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.