Topic
1 reply Latest Post - ‏2013-10-07T08:14:18Z by eaitechy
SystemAdmin
SystemAdmin
4179 Posts
ACCEPTED ANSWER

Pinned topic No valid body

‏2002-12-17T14:12:35Z |
I'm trying to send a XML to MQ Integrator through the use of JMS, but I
receive an error in the event viewer that tells me the following :
No valid body of the document could be found. There should be on............
Anyone who can help me further to resolve this???

  • eaitechy
    eaitechy
    1 Post
    ACCEPTED ANSWER

    Re: No valid body

    ‏2013-10-07T08:14:18Z  in response to SystemAdmin

    Hi,

    1)First check the input message:

    There should be only one top level element in an XML message.
     Check that the message is well formed and adheres to the XML specification in that it has only one top level element

    2) Similarly check the output message when you are creating in esql same is applicable for output message as well. It might happen that in one procedure you are calling another procedure which will create two top level level elements( that is output root).

     

    Resolve this by setting:

     SET OutputRoot = NULL;
     CALL CopyMessageHeaders();

    There should be only one top level element in an XML message.
    Check that the message is well formed and adheres to the XML specification in that it has only one top level element.