Author |
Message
|
madi |
Posted: Mon Jan 30, 2006 2:47 pm Post subject: creating message definition files |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Hi Guys
I am trying to map fields in WBIBM 5.0.
I get the following error when I put a message into the input queue.
( BROK1.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.
Let me know if you need the iput o/p msges to figure it out but I think it is a basic mistake somewhere.
Thanks
madi
Last edited by madi on Tue Jan 31, 2006 1:05 pm; edited 1 time in total |
|
Back to top |
|
 |
vennela |
Posted: Mon Jan 30, 2006 3:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
Let me know if you need the iput o/p msges to figure it out but I think it is a basic mistake somewhere. |
Looks like we might need it |
|
Back to top |
|
 |
madi |
Posted: Tue Jan 31, 2006 9:48 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Ok heres the full version.
I am trying to create message definition files from xml schema files. When I do that it is asking for the global element and i select the <Item> in the following message.
<Item>
<Interfaces>
<Interface name="IN"/>
</Interfaces>
<Events>
<Event name="In"/>
</Events>
<Data><ITEM_NUMBER>10217180</ITEM_NUMBER>
<SHIPPING>all_statest</SHIPPING>
<GIFT>Y</GIFT>
<POST>Y</POST>
<NUMBER>234</NUMBER>
<DEPARTMENT>2</DEPARTMENT>
<CLASS>42</CLASS>
</Data>
</Item>
Then, i get an error saying that there should only be one global element.
And all the lements in the schema show right under
'Elements and Attribute' even though I only select item. So what i was expecting was
Code: |
Elements and Groups
Item
+Interfaces
+Events
Data
ITEMNUMBER
SHIPPING
GIFTS
...
...
|
But what im getting is
Code: |
Elements and Groups
ITEMNUMBER
SHIPPING
GIFTS
...
...
+Item
+Interfaces
+Events
+Data
NUMBER
DEPARTMENT
CLASS
...
... |
Is it a probelm with the xml schema or the way im creating the Msg Def File?
Hope this is clear.
Plz help
madi[/code] |
|
Back to top |
|
 |
kimbert |
Posted: Wed Feb 01, 2006 2:14 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
This error is thrown by the XML parser just before it writes the message tree as XML. It is saying that you have two root nodes in your message tree.
Put a trace node just before your MQOutput node and trace {$Root}. Post the result here.
By the way, you are getting confused between nested elements and local elements. Just because an element is nested in the instance doc, that does not mean it has to be locally-defined in the schema. |
|
Back to top |
|
 |
madi |
Posted: Wed Feb 01, 2006 6:24 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Hi kimbert
I found out that it is not a problem with the schema but the eSQL code im using in the compute node after the mapping node.
I was trying to SET the xml declarations and the name space.
I removed the compute and it worked fine.
It is giving me a hearder saying
<!DOCTYPE MRM PUBLIC "C4NRJ2C002001" "www.mrmnames.net/C4NRJ2C002001"><MRM xmlns="www.mrmnames.net/C4NRJ2C002001">
but i am not able to open it in IExplorer as it says the resoure is not available.
If I try to change this in the compute node, I get hte errors I mentioned in the previous post.
Is there a way I can set this ?
thanks
madi |
|
Back to top |
|
 |
kimbert |
Posted: Wed Feb 01, 2006 8:09 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Is there a way I can set this ? |
You can suppress the XML Declaration, the DOCTYPE and the timestamp via the XML properties of the message set. |
|
Back to top |
|
 |
madi |
Posted: Wed Feb 01, 2006 10:04 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
Yup. I found that out. Thanks for your help.
--madi |
|
Back to top |
|
 |
|