cancel
Showing results for 
Search instead for 
Did you mean: 

insert an XML to RFC element

Former Member
0 Kudos

hello

I have WS 2 RFC sync scenario. in the WS I recieve a long XML file, and I map some of the xml to the target fields in the RFC. I have an Exatra target field in the RFC, the I would also like to insert all the XML file as it is. (so I will have also the mapped fields with specific fields, and also the all XML file in the targeted filed in the RFC).

first, I would like to know if this is possible, and if so, how should I define the RFC or the WSDL so I will be able to do it?

Thanks

Kfir

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Kfir,

you can use a xsl mapping like published in web log [BPM Container for any Message Type|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3574] [original link is broken] [original link is broken] [original link is broken];.

Regards,

Udo

Answers (2)

Answers (2)

Former Member
0 Kudos

does any one knows that JAVA code in order to do a JAVA MAPPING?

I have an element in the RFC that I would like to insert the all XML file.

help is needed

Kfir

Former Member
0 Kudos

Of course you can do it. You need to enclose the complete XML in Cdata section.

Remember even after mapping, your output is not RFC it is still a XML containing RFC details. So attaching a complete XML with in a node directly will result in a invalid xml.

So you need to attach the xml with in a cdata section of the target rfc xml.

http://www.w3schools.com/XML/xml_cdata.asp

XSLT or java mappings could be used to achieve this easily. You can not do this via graphical mapping. There are a couple of blogs in SDN by Michal on this topic.

Regards

Jai