Author |
Message
|
laddha |
Posted: Mon Apr 21, 2003 3:00 am Post subject: Error in XML msg flow |
|
|
 Apprentice
Joined: 20 Mar 2003 Posts: 27
|
Hi All.
I had created a MQInput, Compute and MQOutput node.
In compute node I had:
ESQL:
SET OutputRoot.XML."Name" = InputRoot.XML."MyName";
I HAD SET copy msg header radio button.
I am sending following XML by using MQSEries explorer GUI.
<?xml version="1.0"?><MyName>Pras</MyName>
I am getting following error seen in event viewer:
MQSI_SAMPLE_BROKER.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 am not putting msg correctly in queue.
Let me know where I am wrong ASAP.
Waiting for Responses.
-Prasanna |
|
Back to top |
|
 |
yaakovd |
Posted: Mon Apr 21, 2003 4:35 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
The output message wath generated with NULL body.
You have 2 possible problems.
1. In input node message domain is not defined as XML (other option is using reset content descriptor node)
2. InputRoot.XML."MyName" field is not exist in input message _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
RamVijayawada |
Posted: Tue Apr 22, 2003 12:22 pm Post subject: |
|
|
Novice
Joined: 22 Apr 2003 Posts: 15
|
What is the message domain u specified in the MQInputNode.. probably that is the reason, No need of ResetContentDescriptor coz u r not changing the domain... |
|
Back to top |
|
 |
laddha |
Posted: Tue Apr 22, 2003 7:18 pm Post subject: MQSI XML Msg flow error |
|
|
 Apprentice
Joined: 20 Mar 2003 Posts: 27
|
Hi All,
Thanks.
After giving domain as XML I got the flow working.
But, In MQSI docs. it is said that we dont have to specify domain.
Thanks again.
-Prasanna |
|
Back to top |
|
 |
kirani |
Posted: Tue Apr 22, 2003 8:35 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
MQSI will read message as BLOB If you don't specify any domain in your MQInput node. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
yaakovd |
Posted: Wed Apr 23, 2003 2:34 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
Kiran,
It is right, but when you want to parse the message, you must to specify message Domain.
That is my understanding - may be MQSI think else  _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
Back to top |
|
 |
kirani |
Posted: Wed Apr 23, 2003 5:26 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Yakoov,
Your understanding is correct!! _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|