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 » Mapping node doesnt create empty parent

Post new topic  Reply to topic
 Mapping node doesnt create empty parent « View previous topic :: View next topic » 
Author Message
nize
PostPosted: Thu Oct 07, 2010 3:52 am    Post subject: Mapping node doesnt create empty parent Reply with quote

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:

Code:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <NS1:GetSparePartResponse xmlns:NS1="http://xmlns.rumbio.com/spareparts/contract/sparepart/v1">
      </NS1:GetSparePartResponse>
   </soapenv:Body>
</soapenv:Envelope>


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!
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 » Mapping node doesnt create empty parent
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.