cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to send IDOC in one line through JMS Adaptor?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Rajeev,

Refer to the blog by Michal Krawczyk 'XI: XML node into a string with graphical mapping?' via the url

I hope this assists,

Mike

02 Sep - Have you progressed with this suggestion?

Edited by: Mike Hamer on Sep 2, 2008 9:41 AM

Former Member
0 Kudos

No, I jsut dont understand where to start. I have already Graphical Message mapping and Mess inerface. What I need to do to make to pass in JMS channel a single record instead of sending multiple records with new line per each record?

where can I amke XSLT mapping?

Former Member
0 Kudos

You could use XSL mapping to format your input IDOC message into a CDATA statement then send this to JMS

Former Member
0 Kudos

Hi,

Can you forward any documents or any references how to move forward? so there is no option in JMS Communication channel module?

Thanks

Rajeev