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 » about encoding

Post new topic  Reply to topic
 about encoding « View previous topic :: View next topic » 
Author Message
lee.michael
PostPosted: Fri Oct 17, 2008 11:42 am    Post subject: about encoding Reply with quote

Novice

Joined: 29 Jan 2008
Posts: 10

Hi,

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

How can I get <?xml version="1.0" encoding="Big5"?> instead of <?xml version="1.0" encoding="ibm-950_P110-1999"?>
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Oct 17, 2008 1:12 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I don't think you can do this in the Mapping node, but I may be wrong.
You can definitely do it in a Compute/JavaCompute node ( in the XMLNS/XMLNSC domains ).
Back to top
View user's profile Send private message
lee.michael
PostPosted: Sat Oct 18, 2008 5:29 am    Post subject: Reply with quote

Novice

Joined: 29 Jan 2008
Posts: 10

Thanks for your response.

I received xml message(UTF- from source and mapping to MRM target. But i need to change encoding UTF-8 to Big5.So i setting OutputRoot.Properties.CodedCharSetId = 950. But it output follow.

<?xml version="1.0" encoding="ibm-950_P110-1999"?>
<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>

I need to follow message.

<?xml version="1.0" encoding="Big5"?>
<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>

Anybody help me? Thanks.
Back to top
View user's profile Send private message
lee.michael
PostPosted: Sun Oct 19, 2008 10:12 pm    Post subject: Reply with quote

Novice

Joined: 29 Jan 2008
Posts: 10

Anybody help me,please?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Oct 20, 2008 1:37 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The MRM parser does not allow you to control the encoding attribute. If you need that level of control over the output, you need to switch to XMLNSC.

If you're on v6.1 you really should do that anyway. Even if you're on v6, you will use less CPU and get more control over the output by switching over to XMLNSC.
Back to top
View user's profile Send private message
lee.michael
PostPosted: Mon Oct 20, 2008 9:04 pm    Post subject: Reply with quote

Novice

Joined: 29 Jan 2008
Posts: 10

kimbert thank you for your help.
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 » about encoding
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.