cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to XI sync Scenario - Invalid Character within CDATA

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Hi Diego - Please refer to Rüdiger Plantiko's reply in the below thread.

http://scn.sap.com/thread/3300808

Former Member
0 Kudos

Hi Hareesh,

I solved my problem deleting the BOM in the response XML.

Thank You!

former_member184720
Active Contributor
0 Kudos

Hi Diego - Glad that you fixed the issue.

May be you can close the thread too

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Diego,

I think you would need to identify when this problem appears. But, like workaround you can use meantimes the standard function replaceString() to delete the characters ï»

Regards.

rhviana
Active Contributor
0 Kudos

Fernando,

Check if this special chars it´s before the header of XML into Input msg:

Like:



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

<xml>;;;


Delete it from notepad for test.


Kind regards,


Ricardo Viana.