|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
mapping node and xml declarations |
« View previous topic :: View next topic » |
Author |
Message
|
rahoor |
Posted: Thu Jul 23, 2009 2:13 pm Post subject: mapping node and xml declarations |
|
|
 Apprentice
Joined: 21 Jul 2003 Posts: 34
|
I am looking for the most preferred way to add, or pass, an xml decrlation through a mapping node.
1. Two message definition file are created using schema files (xsd) via create new message definition file from schema file menu selection
The result is "correct", does not include the elements defining the xml declaration
<?xml version="1.0" encoding="UTF-8"?>
The schemas conform to the standard and are created by RSA 7.0
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" ....
some type definitions etc etc
</xs:schema>
2. A sample xml is created using the same xsd
The broker generated xml starts with
<?xml version="1.0" encoding="UTF-8"?>
<commonNS:company xmlns:commonNS="http://www.acme.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.acme.com" >
...
</commonNS:company>
3. A mapping is done via a mapping node from the first structure to the second.
4. Message is sent to the mapping node.
Since the message definition file generated from the original XSD did not add the usual xml declaration to the message defintion, and it is not in the properties section of the source and target, the xml declaration gets dropped after the message comes out of the node, even though it was in the input before the node.
This can be fixed by adding the xml declaration by hand to the message defintion, unless there is a better way to handle it.
Is there a better way to handle it?
 |
|
Back to top |
|
 |
kimbert |
Posted: Fri Jul 24, 2009 1:34 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
This can be fixed by adding the xml declaration by hand to the message defintion, unless there is a better way to handle it.
Is there a better way to handle it? |
No - for now, this is the only way. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|