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 » Handling & from Input XML Msg

Post new topic  Reply to topic
 Handling & from Input XML Msg « View previous topic :: View next topic » 
Author Message
javaforvivek
PostPosted: Thu Jun 02, 2005 10:21 pm    Post subject: Handling & from Input XML Msg Reply with quote

Master

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

Hi,
I have an XML Msg as follows:
<Transaction>
<Amount>123.45</Amount>
<ReferenceCode>100&200</ReferenceCode>
</Transaction>
I pass this msg to a msg flow, where MQInput Node is set to domain MRM;
In Flow debug, I get following tree:
Message
Properties (OK)
MQMD (OK)
MRM
|
-- Amount
ImbRecoverableException caught from worker->parseNext. (This exception is outside MRM).

Then it goes through a compute node where I have following ESQL Code:

Code:

DECLARE XMLref REFERENCE TO InputRoot.MRM;
SET OutputRoot.XML.AccountingOobject.DetailLine.Value = XMLref.Amount;
SET OutputRoot.XML.AccountingObject.DetailLine.UserField.(XML.AsisElementContent) = XMLref.ExternalReferenceCode;


The output XML Msg is :
<AccountingObject>
<Value>123.45</Value>
<UserField/>
</AccountingObject>
But when my input msg is:
<Transaction>
<Amount>123.45</Amount>
<ReferenceCode>100</ReferenceCode>
</Transaction>
And I get the expected Output:
<AccountingObject>
<Value>123.45</Value>
<UserField>100</UserField>
</AccountingObject>

What is a problem here?
_________________
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
EddieA
PostPosted: Thu Jun 02, 2005 10:36 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
What is a problem here?

Possibly that this:
Quote:
<ReferenceCode>100&200</ReferenceCode>

Is not valid XML. The "&" should be escaped to "&amp;".

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » Handling & from Input XML Msg
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.