|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Handling & from Input XML Msg |
« View previous topic :: View next topic » |
Author |
Message
|
javaforvivek |
Posted: Thu Jun 02, 2005 10:21 pm Post subject: Handling & from Input XML Msg |
|
|
 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 |
|
 |
EddieA |
Posted: Thu Jun 02, 2005 10:36 pm Post subject: |
|
|
 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 "&".
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|