Messages, which pass BPM container, are validated for the Message Type referred in the abstract Interface. For some reasons it is useful to suppress the validation like in conventional message processing without BPM. This reasons could be:
The validation can be suppressed by serialization before and a deserialization after the Business Process. This can be done by a simple XSLT mapping, which transfers the content of a XML message to an unparsed string using the CDATA tag.
In the following example any XML source can be used. The result of the mapping is wellformed XML with only a root element "STRING". Its content is the CDATA element with the original XML message, which is now NOT parsed. The Datatype used
for the abstract Interface contains as well only one element "STRING". The abstract Inteface / the container can be used for
EVERY message.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<STRING>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
<xsl:copy-of select="*"/>
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</STRING>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<xsl:for-each select="//STRING">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |