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 » Use of ResetContentDescriptor Node

Post new topic  Reply to topic
 Use of ResetContentDescriptor Node « View previous topic :: View next topic » 
Author Message
javaforvivek
PostPosted: Thu Aug 19, 2004 4:34 am    Post subject: Use of ResetContentDescriptor Node Reply with quote

Master

Joined: 14 Jun 2002
Posts: 282
Location: Pune,India

Hi,
I am developing a message flow where:
1. Input Message is CSV File like this:
USD,16/02/2004,2.5974,N
GBP,16/02/2004,1.3776,N
INR,16/02/2004,117.5455,N
AUD,16/02/2004,3.2833,N
2. I have created a message set as
CurrencyRates
|
+CurrencyRate (Multiple occurrences)
|
Currency (For e.g, USD)
Date (For e.g.,16/02/2004)
Rate (For e.g., 2.5974)
FixedRate ('N')
3. I have created TDS1 and XML1 physical formats for This input message.
4. I have set my MQInput Node to MRM domain,TDS1 Format and CurrencyRates Message Type, to accept the CSV File.
5. Then I added a compute Node to change the Message Fromat from TDS1 to XML1 (Reference : SWIFT_To_XML Sample) as follows:
Code:

SET OutputRoot = InputRoot;
SET OutputRoot.Properties.MessageFormat = 'XML';

6. Then I added the ResetContentDescriptor node. I set all the properties correctly.
7. Then I added another Compute Node to get the cardinality of the CurrencyRate as
Code:

SET OutputRoot = InputRoot;
SET OutputRoot.XML.CurrencyRates.CurrencyRate[1].Currency = 'INR';

8. Then I opened the Flow Debug Perspective and attached the flow engine where this message flow is running.

But in the Debug Flow, it doesn't show the change made in the value of Currency element.
Does it mean that even after changing the content descriptor, I cannot access the elements of the message in XML Domain??
_________________
Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Missam
PostPosted: Thu Aug 19, 2004 6:11 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Code:

SET OutputRoot = InputRoot;
SET OutputRoot.Properties.MessageFormat = 'XML';


From the above statement the Broker Assumes that the output domain is MRM.message type as XML.but you said you created a physical format XML1


Code:

SET OutputRoot = InputRoot;
SET OutputRoot.XML.CurrencyRates.CurrencyRate[1].Currency = 'INR';


If you going with predefined XML messages then the above statement should be like this
Code:

SET OutputRoot.MRM.CurrencyRates.CurrencyRate[1].Currency = 'INR';
Back to top
View user's profile Send private message
javaforvivek
PostPosted: Thu Aug 19, 2004 6:26 am    Post subject: Reply with quote

Master

Joined: 14 Jun 2002
Posts: 282
Location: Pune,India

Hi,
What I am actually trying to Achieve is that, convert CSV message into XML message and then process this message as XML domain and not as MRM domain.
Code:

SET OutputRoot.MRM.CurrencyRates.CurrencyRate[1].Currency = 'INR';


First of all, MRM domain will take CurrencyRates as the Root Element and You can refer to the elements inside CurrencyRates as OutputRoot.MRM.CurrencyRate[1].Currency
and NOT OutputRoot.MRM.CurrencyRates.CurrencyRate[1].Currency

Even if I use this code in my second Compute Node, it creates another <CurrencyRates><CurrencyRate><Currency>USD</Currency></CurrencyRate></CurrencyRates>
structure and appends it to the end of the message.
Nizzam,
Quote:

From the above statement the Broker Assumes that the output domain is MRM.message type as XML.but you said you created a physical format XML1

Can you explain what do you mean by this quote?
_________________
Vivek
------------------------------------------------------
...when you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
shanson
PostPosted: Mon Aug 23, 2004 3:07 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

You said earlier that you created two physical formats 'TDS1' and 'XML1'. But that is not reflected it your ESQL which is setting the output message format to 'XML'.
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 » Use of ResetContentDescriptor 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.