Skip to Content

XML tag which contains and xml document with CDATA in a webservice

Hi Guys,

I have a scenario SAP ECC6 -RFC -> PI -> SOAP

I want to consume a webservice with a special structure in the request.

The structure should be like that

<soapenv:Envelope xmlns:soapenv="" xmlns:urn="urn:IVIFebiac">





<![CDATA[<?xml version="1.0"?>

<InitialVehicleInformation xmlns:ds="" xmlns:xsi="" xsi:noNamespaceSchemaLocation="file:///z:/fichiersXML/v3febiac.xsd">














The tag <sSourceXML_V3> should contain an xml document encapsulated with <[CDATA[

Can someone help me?

I tryed to send thru the RFC the XML encapsulated in format base 64 and decode it in an UD function but that doesn't work because it translate

"<" with "&lt;" and ">" with "&gt;"

Best Regards

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 20, 2016 at 02:24 PM

    Hi everybody,

    I transmit to the RCF fct a field (tag) which contains the xml document cripted in base64 format with <!CDATA[ defined before and ]]> after.

    In PI, in an UDF, I decode the string which format base64 .

    There , all the <, > of the tag included in the string are translated to &lt; and &gt;

    After, I created an adapter module to put before the call of the soap

    This adapter module replace "&lt;" with "<" and "&gt;" with ">"

    and I have what I need.

    Best Regards

    Eric Koralewski

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 20, 2016 at 12:21 PM

    Hi Eric!

    Is XML in CDATA your RFC source message?

    Regards, Evgeniy

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.