Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

SOAP to XI sync Scenario - Invalid Character within CDATA

$
0
0

Hi everyone,

 

I have a SOAP to XI SYNC Scenario to publish a Web Service through PI. In the ERP side I implemented a XI proxy class. The Data Type for input and output is just a String parameter which contains another XML. I have implemented also an ABAP mapping to add the logged user and send it to XI Proxy class.

 

Inside the XI proxy class I implemented a xslt transformation to XML->ABAP and for the Response ABAP->XML.

 

When I test the scenario through SOAPUI tool, I have to add in the request the CDATA like this:

 

<Input>

<![CDATA[

<?xml version="1.0" encoding="UTF-8?>

...

...

]]>

</Input>

 

So, the response should be like this:

 

<Response>

<![CDATA[

<?xml version="1.0" encoding="UTF-8?>

...

...

]]>

</Response>

 

The problem is that the text inside "Response" tag contains the characters "" before the inside xml:

 

<Response>

<![CDATA[<?xml version="1.0" encoding="UTF-8"?>

...

...

]]>

</Response>

 

If I debug the XI proxy class the string doesn't contain any of these characters.

 

How can I delete these characters?

 

My system landscape is: SAP PI 7.31 and SAP ECC 6.0.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>