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 » xml declaration issue in Mapping node

Post new topic  Reply to topic
 xml declaration issue in Mapping node « View previous topic :: View next topic » 
Author Message
jr_martin
PostPosted: Sun Sep 21, 2008 5:03 am    Post subject: xml declaration issue in Mapping node Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 36
Location: NY

Hi,

I am trying to generate the following xml declaration in mapping node.

1.How can I get <?xml version="1.0" encoding="UTF-8"?> instead of <?xml version="1.0" encoding="ISO-8859-1"?>
2. How can I get rid of [xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace] in the following line?

<Map_Message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace>

.....................

MessageSet Settings:
Message Domain: XMLNSC
XML wire format settings:Suppress xml declaration unchecked, xml version: 1.0, xml encoding: As document text


input message:

<?xml version="1.0" encoding="UTF-8"?>
<Map_Message>
<Map_Header>
<from>source</from>
<to>destination</to>
</addressing>
</Map_Header>
<Map_Body>
<TableA>
<col1>460</col1>
<col2>7402</col2>
</TableA>
</Map_Body>
</Map_Message>

output message:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Map_Message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace>
<Map_Header>
<from>source</from>
<to>destination</to>
</addressing>
</Map_Header>
<Map_Body>
<TableA>
<col1>460</col1>
<col2>7402</col2>
</TableA>
</Map_Body>
</Map_Message>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Sep 21, 2008 10:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried setting the OutputRoot.Properties.CodedCharSetId to 1208 ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Sun Sep 21, 2008 11:52 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

First, I should make you aware that XMLNSC does not use the message set. It validates against the shemas in the message set, but it does not use any of the information in the messageSet.mset file. Support for some of the options in messageSet.mset might ( or might not ) be added in a future release.

So if you are using XMLNSC on the output side, then the output message will depend only on the contents of the output tree which you have built. I suggest that you look at the output tree using the debugger or a Trace node, and then modify your map until it is correct.

But are you quite certain that you are using the XMLNSC domain for outputting this messsage? Some of your symptoms look like previously-encountered MRM XML symptoms.
Back to top
View user's profile Send private message
jr_martin
PostPosted: Mon Sep 22, 2008 8:01 am    Post subject: Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 36
Location: NY

Thanks for your help. After setting CCSID to 1208, I see encoding="UTF-8" in the output message. Also, got rid of xsi/xsd references by unchecking "Use namespaces" check box.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Sep 22, 2008 11:15 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Also, got rid of xsi/xsd references by unchecking "Use namespaces" check box.
So my guess was correct. You are using MRM, not XMLNSC on the output side.
Back to top
View user's profile Send private message
jr_martin
PostPosted: Tue Sep 23, 2008 4:41 am    Post subject: Reply with quote

Apprentice

Joined: 24 Aug 2005
Posts: 36
Location: NY

Yes. That's correct.
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 » xml declaration issue in Mapping node
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.