|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Unable to copy the null value from DFDL tag to XML namespace |
« View previous topic :: View next topic » |
Author |
Message
|
ksrocks9 |
Posted: Wed Apr 06, 2016 3:33 pm Post subject: Unable to copy the null value from DFDL tag to XML namespace |
|
|
Apprentice
Joined: 11 Mar 2015 Posts: 35
|
Sorry for not describing my issue properly
Last edited by ksrocks9 on Thu Apr 07, 2016 7:36 am; edited 1 time in total |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Apr 07, 2016 12:05 am Post subject: Re: Unable to copy the null value from DFDL tag to XML names |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
ksrocks9 wrote: |
Null value is not coping to XML namespace from DFDL (Mesaege from mainframe) .
SET OutputRoot.XMLNSC.ShopName.(XMLNSC.Attribute)Code = InputRoot.DFDL.Shop.CODE;
I am getting <ShopName> insted of <ShopName Code=""> namespace Code is missing.
Thanks in advance  |
Try
Code: |
set OutputRoot.XMLNSC.Shopname.(...)... VALUE =..... |
_________________ MQ & Broker admin |
|
Back to top |
|
 |
timber |
Posted: Thu Apr 07, 2016 12:52 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
You are not using the correct words to describe your problem.
- The value "" is an empty string and not a null value. A null value is something quite different.
- Code="" is an attribute, not a namespace.
So you should have said:
"I am copying an empty string value into an XML attribute, and the attribute is not appearing in the output XML."
I think this is what is happening:
- The field reference InputRoot.DFDL.Shop.CODE does not exist in InputRoot, so it evaluates to NULL
- The attribute is not created in OutputRoot.XMLNSC because ESQL cannot create an attribute from a non-existent field.
Your next steps should be
- insert a Trace node into the message flow before the Compute node
- Set the Pattern to ${Root}
- Set the Destination to File
- Post the Trace node output here
That will show you ( and us )what InputRoot.DFDL looks like.
For bonus points:
- Set the Trace node Destination to User Trace
- take a debug-level user trace ( mqsichangetrace, mqsireadlog, mqsiformatlog ). The problem will be highlighted in the trace output. |
|
Back to top |
|
 |
ksrocks9 |
Posted: Fri Apr 08, 2016 8:55 am Post subject: |
|
|
Apprentice
Joined: 11 Mar 2015 Posts: 35
|
Thanks for your help Timber and fjb. |
|
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
|
|
|
|