Skip to Content
avatar image
Former Member

XML error

we are going JMS(MQ) -->IDOC secanrio...

we have given the sample file to JMS Q poeple to give us fallowing XML as the input to XI...

<Shipment>

<ProcessAction>003</ProcessAction>

<Shipmentnumber>12345</Shipmentnumber>

<ServiceCode>abcd</ServiceCode>

<ShipmentEntryTypeCode>NY</ShipmentEntryTypeCode>

<LoadStartDateTime>2008-07-06T16:00:00</LoadStartDateTime>

</Shipment>

when we test with atht XMLL,we are facing some problem.....

but when we go with the fallowing XML with two more tags added its working fine....

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

cc.com:oa:">

<ShipmentNumber>23</ShipmentNumber>

<ShipmentEntryType>344</ShipmentEntryType>

<ServiceCode>43</ServiceCode>

<LoadStartDateTime>3434</LoadStartDateTime>

</ns0:MT_LOAD_INFO>

what would be the problem....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 14, 2008 at 06:17 PM
    <Shipment>
    <ProcessAction>003</ProcessAction> 
    <Shipmentnumber>12345</Shipmentnumber> 
    <ServiceCode>abcd</ServiceCode> 
    <ShipmentEntryTypeCode>NY</ShipmentEntryTypeCode> 
    <LoadStartDateTime>2008-07-06T16:00:00</LoadStartDateTime> 
    </Shipment>

    This is not a valid XML,every XML must have a declaration section <?xml version="1.0" encoding="UTF-8"?>

    for cc.com:oa:">

    you can make some settings in message mapping and it should work without namespace.

    How to remove namespaces in Mapping - XI

    Thanx

    Aamir

    Edited by: Aamir Suhail on Aug 14, 2008 1:18 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI,

      Yes you are right....we can do this without xml namespace also.....

      Sorry..I forgot to recall azbout it..thanks to rectify me...

      Thanks

      Swarup

  • avatar image
    Former Member
    Aug 14, 2008 at 06:19 PM

    HI,

    XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed

    So Any Message send under the XML format should highlight about the information as

    Text encoding Format -- Default UTF-8 in 1st line

    and Message type name as root node...you may include the namespace with it.

    Refer the detail explanation for it.

    http://www.intranetjournal.com/articles/200401/ij_01_13_04a.html

    Thanks

    swarup

    Add comment
    10|10000 characters needed characters exceeded