cancel
Showing results for 
Search instead for 
Did you mean: 

Removing indent in XI messages

Former Member
0 Kudos

Hi folks,

we have a R/3 -> XI -> 3rd party scenario, where the XI -> 3rd party communication is an access to a web service. This web service provider requires the messages to be sent to be unindented, meaning, there cannot be whitespaces, carrier return or line feed caracters between the xml tags.

But even if the input message in XI is unindented, XI indents it per default, and the inbound SOAP message payload is always indented.

Can anyone help me to set XI to not to indent automatically the messages?

Accepted Solutions (0)

Answers (2)

Answers (2)

henrique_pinto
Active Contributor
0 Kudos

We had to make sure the message wasn't indented at client side.

Best regards,

Henrique.

stefan_grube
Active Contributor
0 Kudos

Hi Henrique,

The XI does <b>not</b> indent the message in any way.

Do you have an xslt mapping?

In this case check out for following line:

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="<b>no</b>" />

Regards

Stefan

henrique_pinto
Active Contributor
0 Kudos

Thanks very much!

I'm yet to do further tests, but I think that resolved the problem!

henrique_pinto
Active Contributor
0 Kudos

I reopened the problem, because there is another need. We need to remove indent on the messages, in case they are originally indented. Is there a way of doing this in XI?

I tried XSLT's with strip-space and normalize-space methods, but got nowhere.

Any hints?

Thanks!