cancel
Showing results for 
Search instead for 
Did you mean: 

sending message payload in a field

former_member183906
Active Contributor
0 Kudos

hi,

its HTTP to HTTP scenario in PI 7.3

i have to send whole message payload to a single field A.

is there anyway to send message payload which will be different for every message to a single message A ?

rgds

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member207622
Contributor
0 Kudos

You have the option of "return as xml "  as described in the posts .

if you wish to go for mapping via java /UDF you can check the below links

http://wiki.sdn.sap.com/wiki/display/XI/Whole+Payload+to+a+XML+field

http://wiki.sdn.sap.com/wiki/display/XI/Java+Mapping-+Convert+the+Input+xml+to+String

Thanks

Ninad Sane

former_member184789
Active Contributor
0 Kudos

If you want to pass the value as an XML then use Return as XML function.Simply map the top node of the source to the field & right click on that source node & select Return as XML. If you want the value to be passed as String, then have a Trim function( Standard Mapping function) in between the source top node & target field. In this case also you have to select Return as XML..

gagandeep_batra
Active Contributor
0 Kudos

hi,

check the "return as XML" functionality for that, May help you..

http://scn.sap.com/people/william.li/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-copy-xml-...

Regards

gagan

udo_martens
Active Contributor
0 Kudos

Hi,

you need to "serialize" the message in mapping time (include into CDATA expressions). For example with xsl like described in my blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/04/28/bpm-container-for-any-message-typ...

/Udo