cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in scenario

Former Member
0 Kudos

Hello,

I have input payload and i need output as follow:

Here the payload is coming and we have to put envelop on the payload.

Some value in envlop are coming from payload.

Also payload is passing in one node" Documentbody". with the nodes also.

Please help how to do this.

Input:

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Not answered

former_member181962
Active Contributor
0 Kudos

Check this:

https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/wholePayloadtoaXML+field

Regards,

Ravi

Former Member
0 Kudos

Thanks Ravi,

This will work when we are sending whole payload into one node..but here we have something in addition here we have to pick some value from input string and put it in envelop.....how will i create that envelop before calling this java map...

Thanks and Regards

Hemant

former_member181962
Active Contributor
0 Kudos

Can't we define the envelope in the target data type structure?

Former Member
0 Kudos

we can but how we will pick the value from payload and assign them...also..there is a node "<Documentbody>" and in that there is one extra value "<![CDATA[<payload]]..

so how will we add this CDATA

former_member181962
Active Contributor
0 Kudos

You can simple concatenate the extra strings that are needed, using the + operator in the javacode.

Regards,

Ravi kanth Talagana

Former Member
0 Kudos

Thanks,

One more question..how will i map the envelop with the value coming in the payload...

Former Member
0 Kudos

>

> we can but how we will pick the value from payload and assign them...also..there is a node "<Documentbody>" and in that there is one extra value "<![CDATA[<payload]]..

> so how will we add this CDATA

If you like to add CDATA for your data use XSL and use property enable-output-escaping="yes"

or put two CDATA tags and use disable-output-escaping ="Yes"

Rajesh