cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing entire payload to map to a target field

Former Member
0 Kudos

Hi,

We are working on a scenario where in we need to map the entire payload (along with the xml tags) to a field in the target message structure.

We explored few options like java mapping wherein we get the entire payload as an input stream , also tried to change the approach with sending the payload as attachment and then making it available for mapping using custom module.

Request all to please come up with suggestions as to whether this can be done using graphical mapping or xslt mapping.

Thanks,

Pravesh Puria.

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Use of mapping would depend upon the way u provide the input.

For graphical mapping, access the payload in UDF.

For xslt mapping, only when ur sender structure is a made with a single element, u can achieve this.

If u r sending an xml file with many tags, then to use it as a single field, go for Java mapping

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

Thank you for your response , can you please elaborate on how to access the payload using UDF.

Thanks,

Pravesh Puria.

prateek
Active Contributor
0 Kudos

Oops.. that would be the case again when u have a single field at ur sender structure. UDF will just help u to perform the operations on that payload. UDF could be used for a single field only

Regards,

Prateek