on 02-03-2014 5:43 PM
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.
Hi Diego - Please refer to Rüdiger Plantiko's reply in the below thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.