Skip to Content
avatar image
Former Member

XML problem

we have an immediate requirement.I am doing JMS MQ to IDOC

we get an XML into JMS MQ as fallowing....

<i2 Document>

<?xml version="1.0" encoding="UTF-8"?>

urn.kcc.com:otna:test">

<Record>

<EMP>Tom</EMP>

<Address>Appleton</Address>

<ID>2456</ID>

<Department>SAP</Department>

</Record>

</ns0:test>

</i2 Document>

JMS MQ queue doesnt accept this kind of XML....we need to take of the appended two tags....

Can we take of the bold char appended and take the original XML file.....if so how can we do that....

Edited by: Harsha reddy on Sep 12, 2008 6:36 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 12, 2008 at 07:11 PM

    Hi Harsha

    I think you need to get right xml into JMS queue so that you don't need to perform any sender JMS content conversion. If XI receives message in XML format (sender JMS), we dont need to make any changes to module tab.

    or if you get message type name <i2 Document> and you cannot control source (system which is sending message), you need to write java module to convert this xml tag into <i2_Document> and call the module from processing sequence tab.

    Thanks

    Sai

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2008 at 05:20 PM

    Hi,

    In your JMS sender adapter, go to Module tab, to specify content conversion parameter.

    Since your tags attached is fixed, you can use fixedlength content conversion, to get rid of the initial tag and last tag. You will find some document for JMS sender content conversion. It is pretty similar to file content conversion.

    Regards.

    Liang

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have got that dude...I want to know what is the parameter used here...I mean module tab

      Edited by: Harsha reddy on Sep 12, 2008 8:57 PM