ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mapping node and xml declarations

Post new topic  Reply to topic
 mapping node and xml declarations « View previous topic :: View next topic » 
Author Message
rahoor
PostPosted: Thu Jul 23, 2009 2:13 pm    Post subject: mapping node and xml declarations Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Fri Jul 24, 2009 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mapping node and xml declarations
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.