on 08-28-2008 10:13 PM
Hi Frnds,
I have an issue with JMS adaptor and it is as folllow:
I configured JMS sender Communicaiton Channel and its working fine but client wants header and item records in one line with out any lines in between these records. Is it possible to send Header and Item records in one line through JMS Sender?
Thanks
Rajeev.
Rajeev,
The XSL is generally created via an XML development tool and then imported to the design as an Imported Archive. Then in your Interface Mapping select a mapping program of type XSL and choose your XSL mapping.
FYI - Here is a simplified version of Michals blog.
-
I have created cdata.xml as input.
-
<?xml version="1.0" encoding="UTF-8"?>
<aa>
<bb>1</bb>
<cc>1</cc>
<cc>2</cc>
<cc>3</cc>
</aa>
-
The XSL mapping program cdata.xsl
-
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<inside>
<!-- <name> -->
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
<xsl:copy-of select="aa"/>
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
<!-- </name> -->
</inside>
</xsl:template>
</xsl:stylesheet>
-
And the result
-
<?xml version="1.0" encoding="UTF-8"?>
<inside><![CDATA[<aa><bb>1</bb><cc>1</cc><cc>2</cc><cc>3</cc></aa>]]></inside>
-
The strikethrough is an interpretation of the forum editor.
The actual result is square bracket <aa><bb>1</bb><cc>1</cc><cc>2</cc><cc>3</cc></aa> square bracket
Using the above code you can test this and see for yourself
The idea would to pass the single string to JMS.
This should get you over the line. Also refer to XI / PI help to clarify XSL mapping.
Regards,
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use XSL mapping to format your input IDOC message into a CDATA statement then send this to JMS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.