AnsweredAssumed Answered

How to transform XML Request body in LAC

Question asked by irfan.mugale on Sep 30, 2018
Latest reply on Oct 9, 2018 by Seiji_Moriyama

Hi There,

 

I need to create a function or a Custom Endpoint in LAC which will accept a request XML body and transform it and then we need to call another resource.

 

I know how to call a resource from a function but what I need to know how we can accept a request XML body in the request and how we can transform it. By transforming it I mean to change some node name.

 

For Example below will the request body.

 

<root>

<reqid>00001</reqid>

<source>mfa</source>

<inward>11119099</inward>

</root>

 

After Transforming the above request I need the below payload which will be sent to the resource endpoint

 

<root>

<reqid-lac1>0001</reqid-lac1>

<source-lac1>mfa</source-lac1>

<inward>1119099</inward>

</root>

 

The issue is I am not able to log or capture the request packet using the function in LAC 4.1.

 

 

 

Thanks,

Irfan

Outcomes