Skip to Content
avatar image
Former Member

JMS Receiver Adapter does not convert XML to Plain

Scenario - RFC to XI to MQ (XML to plain)

We are on SP12

As per the Netweaver document - How-to use the content conversion module with XI3.0 J2EE JMS Adaptr", I have set up module key and the additional parameters needed for converting XML to Plain format and I do not see the conversion taking place. It creates XML data in the MQ.

Protocol used is "WebsphereMQ (MQSeries) JMS provider"

As per the document, I have ensured that there are no trailing spaces in the parameter name and values

1. localejbs/AF_Modules/MessageTransformBean L XML2Plain

2. localejbs/SAP XI JMS Adapter/ConvertMessageToBinary L

CallJMSService

3. localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService L exit

Under "Set Additional JMS Parameters or Replace Default Settings", I have

Transform.Class com.sap.aii.messaging.adapter.Conversion

TransformContentType text/xml;charset=utf-8

xml.conversionType SimpleXML2Plain

xml.addHeaderLine 0

xml.fieldFixedLengths 80

xml.fixedLengthTooShortHandling Cut

Source data:

With this setting, I'm expecting the result as

HEADER R3TEST 000020050726122232000000000

AI2

0001 werks

N501 Danville Plant

N502 Gadsden Plant

N503 The Goodyear Tire & Rubber Co.

TRAILERR3TEST 000020050726122232000000000000382

instead I see the XML data and not the converted data (to plain).

Additional information - in server.log I see these entries for all the

3 lines in the Module tab

Date : 07/26/2005

Time : 12:03:29:241

Category : /System/Server

Message ID : 00306E4B43CE00700000035A000067A30003FCD082DEDBE7

Severity : Info

Location : com.sap.engine.services.jndi

Source Name : /System/Server

Thread : output

Message : Path to object does not exist at localejbs, the whole lookup

name is

ejbContexts/sap.com/com.sap.aii.af.app/ModuleProcessorBean/localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService.

Datasource :

703778750:/usr/sap/XI0/DVEBMGS70/j2ee/cluster/server0/log/system/server.log

Application : sap.com/com.sap.aii.af.app

Argument Objs :

Arguments :

Dsr Component : akrhp031_XI0_703778750

Dsr Transaction : 2b62f470fd1b11d9998800306e4b43ce

Dsr User : Guest

Indent : 0

Level : 0

Message Code :

Message Type : 0

Relatives : com.sap.engine.services.jndi

Resource Bundlename :

Session : 0

Source : /System/Server

ThreadObject : output

Transaction : SAP J2EE Engine JTA Transaction :

User : J2EE_GUEST

I posted an OSS and I did not got some reponse which did not take me anywhere. I got help.sap.com links for JMS adapter settings. I believe at this point, the module processor is not in the correct path and maybe has something to do with SP12?

Please let us know if you have any clues.

Thank you,

Parimala

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 28, 2005 at 01:55 PM

    Repost...wondering if anyone had a chance to look at this.

    Thank you,

    Parimala

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 28, 2005 at 03:06 PM

    HI

    In this setting

    >><b>TransformContentType text/xml;charset=utf-8</b>

    change it to

    <b>TransformContentType text/plain;charset=utf-8</b>

    Hope it helps

    Regards

    Arpit Seth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2013 at 08:59 PM

    I think, your problem is the order of the modules. You said you put it like this:

    1. localejbs/AF_Modules/MessageTransformBean L XML2Plain

    2. localejbs/SAP XI JMS Adapter/ConvertMessageToBinary L

    CallJMSService

    3. localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService L exit

    Instead, it has to be in this order:

    1. localejbs/SAP XI JMS Adapter/ConvertMessageToBinary L

    CallJMSService

    2. localejbs/AF_Modules/MessageTransformBean L XML2Plain

    3. localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService L exit

    Note that the first and the second modules are changed.

    Regards,

    Roberto Solotun

    Add comment
    10|10000 characters needed characters exceeded