Author |
Message
|
Deepak Batra |
Posted: Fri Apr 05, 2002 3:44 am Post subject: |
|
|
Apprentice
Joined: 25 Feb 2002 Posts: 31
|
Hi
I had defined the Message in Message sets which are as follows :-
TestMsg-->Personellmsg--->name
Here testMsg is name of Message set
Personellmsg is name of message
name is the one string element of size 10
The MQInput Node in my wokflow is configured as :
In the Default Tab the fields are
Message Domain : MRM
Message set : dgm4qlop
MessageType :razz:ersonellmsg(identifier of message )
Message Format : XML
While passing XML Message to MQInput Node of MQSI :
<MRM><personellmsg><name>john</name></personellmsg></MRM>
throws an error in NT Event viewer :
1. ( ITIL_BR.default ) No valid body of the document could be found.
There should be one, and only one, top level element of type element or EmptyElement and this is not the case for the current message.
Check that the XML message being passed in is a well formed XML message that adheres to the XML specification and that only one of the above exists as a child of the root.
I had tried by reordering XML format but still i am facing same error.
can anyone suggest what's going wrong .
Thanks in advance .
Deepak
|
|
Back to top |
|
 |
kirani |
Posted: Fri Apr 05, 2002 8:41 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What version of WMQI are you using? Try sending this input message,
<name>john</name>
|
|
Back to top |
|
 |
Deepak Batra |
Posted: Sun Apr 07, 2002 8:08 pm Post subject: |
|
|
Apprentice
Joined: 25 Feb 2002 Posts: 31
|
Hi Kirani
I tried sending the message <name>john</name> it did'nt worked out.I am using MQSI 2.0.2 version.
The error message which i got while sending XML message is :
1. ( ITIL_BR.default ) No valid body of the document could be found.
There should be one, and only one, top level element of type element or EmptyElement and this is not the case for the current message.
Check that the XML message being passed in is a well formed XML message that adheres to the XML specification and that only one of the above exists as a child of the root.
I there any other way by which i can check out exactly where seems to be the problem in message sets .
Thanks
Deepak
|
|
Back to top |
|
 |
Miriam Kaestner |
Posted: Mon Apr 08, 2002 11:54 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany
|
The best way to test an MRM definition is NOT to send an input message in that format (parsing errors are difficult to find). Do it the other way round:
MQInput (any message - will not be used anyway)
Compute (select MRM message as output format and fill in each field with some test value)
MQOutput
This should always work and give you a message in the output queue. Compare this with the data you wanted to model - and you will find out if your MRM definitions need corrections! |
|
Back to top |
|
 |
Deepak Batra |
Posted: Wed Apr 10, 2002 9:12 pm Post subject: |
|
|
Apprentice
Joined: 25 Feb 2002 Posts: 31
|
In the compute node of my workflow i am using
SET "OutputRoot"."MRM"."name" = 'X';
and had define the message set name .
I had tried working on that always it gave me the error messages like
( ITIL_BR.default ) Invalid Wire format 'MRM'.
When processing an MRM message the broker requires a valid wire format indicator. Expected XML, PDF or Custom Wire Format prefix and got 'MRM'.
Check that you have packaged the message correctly and set the correct message properties then resubmit the message.
I had implemented the solution told by u like
Is there any thing else i am missing .
Thanks
Deepak
|
|
Back to top |
|
 |
kwelch |
Posted: Thu Apr 11, 2002 5:12 am Post subject: |
|
|
 Master
Joined: 16 May 2001 Posts: 255
|
Did you set the OutputRoot.MessageFormat.Properties = 'XML' ?
Good Luck,
Karen |
|
Back to top |
|
 |
Deepak Batra |
Posted: Fri Apr 12, 2002 3:48 am Post subject: |
|
|
Apprentice
Joined: 25 Feb 2002 Posts: 31
|
Hi Karen
Yes i did that also .
Deepak
|
|
Back to top |
|
 |
|