cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REST Receiver Adapter JSON to XML conversion in response Message

suman_sourabh
Participant
0 Kudos
763

Hi All,

I have a synchronous scenario with REST adapter configured at receiver side.

The response message that we are getting from target system in JSON format is as below:

{ "result": "SUCCESS" }

In the receiver REST adapter we have tried to convert this JSON to XML using the below parameter value:

Element Name: MYRoot.Response

Namespace: abc.com

But when message comes in PI the JSON is converted to below XML:

{

<ns1:Response>

<result>SUCCESS</result>

</ns1:Response>

}

Means the root name is not getting converted as expected. My expected result is:

{

<ns1:MYRoot.Response>

<result>SUCCESS</result>

</ns1:MYRoot.Response>

}

Kindly help me to solve this issue. Please let me know if there is any special setting in rest adapter to achieve this result.

Regards,

Sourabh

Accepted Solutions (0)

Answers (0)