Showing results for 
Search instead for 
Did you mean: 

WrWritin headers an properties in CPI XSLT mapping?

0 Kudos

Dear Experts

I know how CPI headers and properties can be accessed in an XSLT Mapping.

Now the other way round: Is there also a possibility to write these values from within an XSLT?

Thank you for your advice!

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor

Hi Florian

Yes, that's also possible. The approach is documented here. In a nutshell, you access the exchange in your stylesheet by defining a parameter, and then add headers/properties by calling an extension function.

Here's a simple example:

<xsl:stylesheet version="3.0" xmlns:xsl="" xmlns:sapci="" exclude-result-prefixes="sapci">
<xsl:param name="exchange"/>
<xsl:template match="/">
<xsl:value-of select="sapci:setProperty($exchange, 'MyProperty', 'Testing 1-2-3')"/>
<message>Hello, world!</message>

Have fun with XSLT in Cloud Integration!



Answers (0)