Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

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

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 08, 2017 at 07:05 AM

    Any suggestions?

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 11, 2017 at 09:02 PM

    Harish,

    You need to add module parameter : setIgnoredElements

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 31 at 08:16 AM

    Hi,

    You are trying to strip the operation from the XML payload, Instead, try the below screenshot to strip the outer element.

    rest.png

    Regards,

    Ram

    Add comment
    10|10000 characters needed characters exceeded