cancel
Showing results for 
Search instead for 
Did you mean: 

XML Issues

manigram
Active Participant
0 Kudos

Hi ,

We have scenario sending the idoc in string format over proxy call from ECC. we have java mapping in PI to convert the string in to XML. while executing that mapping few messages were failed due to invalid xml. in one segment space was removed "E1EDP7SEGMENT" , so it act as invalid xml.

Any suggestion or ideas please share with us.

Regards,

Manigandan

Accepted Solutions (0)

Answers (1)

Answers (1)

iaki_vila
Active Contributor
0 Kudos

Hi Manigandan,

What is your PI version because you can convert a string to XML without java mapping, check this blog

Also, are you sure the source XML is right?

Regards.

manigram
Active Participant
0 Kudos

HI Inaki,

we are using java mapping to convert string  in to xml, in the java mapping only this problem is happening.

few payload it is successful and few it is failing.

Regards,

Manigandan

former_member186851
Active Contributor
0 Kudos

Hello Mani,

As Inaki suggested for higher PI version no need of Java Mapping which is more flexible and simple.

and when only some messages are failing might be due to data issue.Did you compare the succesful and failed one?

iaki_vila
Active Contributor
0 Kudos

Hi Manigandan,

You should share a source example, the current not desired output, and the java code in order to let us to help you better. The problem could be in the java code.

Finally, i only wanted to say before that if you are in PI 7.1 or upper version and you have your entire XML in one XML tag you can have a solution without any effort.

Regards.

manigram
Active Participant
0 Kudos

Hi,

Below are the 2 java programs which I used to convert string in to xml.

ConvertInputStream will replace the &lt into < etc..

COnvertString will convert the actual string into XML.

Please share your ideas.

former_member186851
Active Contributor
0 Kudos

Mani which version of PI you have

nitindeshpande
Active Contributor
0 Kudos

Hi Mani,

When it is IDoc, why it is being triggered through proxy?

Regards,

Nitin