Posted: Thu Oct 07, 2010 3:52 am Post subject: Mapping node doesnt create empty parent
Voyager
Joined: 02 Sep 2009 Posts: 90
The SOAP message detailed in http://www.mqseries.net/phpBB2/viewtopic.php?t=55407 is created using a mapping node. The parent GetSparePartResponse may contain multiple SparePart elements. The source elements are mapped to the children of SparePart. When there are no source elements in the source message the resulting target message has no SparePart and no GetSparePartResponse elements.
However, I would like to control so that there is ALWAYS a GetSparePartResponse element, irrespectively if it has children or not. In other words I would like a SOAP message in the following form when there is no data in the source message:
In a compute node I can do this by having a CREATE statement. How do I do it in the mapping node? I have tried by putting fn:true() in the target pane for the element tns:GetSparePartResponse but that does not compile, since GetSparePartResponse is a complex structure. Thanks in advance!
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