Skip to Content
0
Jul 20, 2016 at 11:37 AM

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

487 Views

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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:IVIFebiac">

<soapenv:Header/>

<soapenv:Body>

<urn:IVI_Reception_V3_V21>

<sSourceXML_V3>

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

<InitialVehicleInformation xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///z:/fichiersXML/v3febiac.xsd">

<Header>

<FEBReferenceId></FEBReferenceId>

<VersionNumberXsd></VersionNumberXsd>

</Header>

<Body>

<CocDataGroup>

<VehicleIdentificationNumber>AHTFZ29G009106183</VehicleIdentificationNumber>

</CocDataGroup>

</Body>

</InitialVehicleInformation>]]>

</sSourceXML_V3>

</soapenv:Body>

</soapenv:Envelope>

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