Skip to Content
0

Unable to remove Message Type, (outer node) from REST receiver adapter

Aug 03, 2017 at 09:37 AM

284

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Feb 02 at 10:03 AM
1

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


Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you very much!!

0
Former Member

Issue closed yet?

Could you please tell me how to fix it, thanks.

0
Harish Babu Aug 08, 2017 at 07:05 AM
0

Any suggestions?

Share
10 |10000 characters needed characters left characters exceeded
Manoj K Aug 11, 2017 at 09:02 PM
0

Harish,

You need to add module parameter : setIgnoredElements

Br,

Manoj

Show 2 Share
10 |10000 characters needed characters left characters exceeded

HI Manoj,

How do I use that? What are the values required? Will it strip outer cover of REST message at receiver communication channel even if I am not using REST channel conversion from xml to JSON? Please note that I am using custom Java mapping for the same

Harish

0

Harish,

Refer Note :2465948.

Br,

Manoj

0