cancel
Showing results for 
Search instead for 
Did you mean: 

Rest sender sync : Remove header

former_member190239
Participant
0 Kudos

Dear Team,

I have a Rest to Rfc sync scenario , the requirement is to remove any headers in the response and pass on only field content to the rest application. Below is a sample response and options tried thus far

XML response from RFC

<ns0:header xmlns:ns0="http://test">

<header>

<Field1>Value 1</Field1>

<Field2>Value 2</Field2>

</header>

<header>

<Field1>Value 3</Field1>

<Field2>Value 4</Field2>

</header>

REST Message expected

{

header : {

"Field 1" :"Value 1",

"Field 2" : "Value 2"

},

{

"Field 1" :"Value 3",

"Field 2" : "Value 4"

}

}

Options Tried :

1. Checked Strip Outer element , so the one header is removed

2.Option setIgnoreElement only available in REST rcvr adapter

3.Checked Strip Operation message , throws HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

Please share your thoughts on how this can be acheived

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190239
Participant
0 Kudos

I didn't come across a method other than to manually build a json response

former_member190239
Participant
0 Kudos

Hi experts, your views on this pls...