wm.tn.samples.broadcast:broadcastDeliver Server: itedipv2mp:5555 Package: WmTNSamples Folder: wm.tn.samples.broadcast broadcastDeliver This service demonstrates how to deliver a bizdoc to multiple recipients. The getTargetIDs service is invoked to get a list of partner IDs, one for each recipient. We loop over the IDs and send a copy of the bizdoc to each partner by invoking singleDeliver. The registerDS service registers this service with the Trading Networks Reliable Delivery mechanism. registerDS only needs to be invoked once. For the sake of clarity, many of the complexities a real application would have to manage are avoided here. This service is not intended to be used in a production environment. Service Input bizdoc (BizDocEnvelope) InternalID DocType DocTimestamp LastModified SenderID ReceiverID DocumentID GroupID ConversationID SystemStatus UserStatus Attributes Signature SignedBody ContentParts Content Persisted? Errors Relationships from to relationship LargeDocument? OriginalSenderID OriginalReceiverID Service Output serviceOutput Flow Overview 1 INVOKE getTargetIDs 2 LOOP OVER '/internalIDs' 2.1 INVOKE singleDeliver 3 INVOKE runStringTemplateOnPipe 4 MAP Flow Detail 1 INVOKE wm.tn.samples.broadcast:getTargetIDs look up intended recipients 2 LOOP over '/internalIDs' 2.1 INVOKE wm.tn.samples.broadcast:singleDeliver deliver to each recipient Pipeline InService In serviceName "Primary HTTP" internalIDs receiverID Service OutPipeline Out receiverID deliveryInfo deliveryResponses deliveryInfo 3 INVOKE pub.report:runStringTemplateOnPipe assemble status response message Pipeline InService In $template "Finished. DeliveryIDs: %loop deliveryResponses%%nl%%value%%endloop%" Service OutPipeline Out $txt statusResponse $txt 4 MAP report success SourceDestination deliveryIDs serviceOutput output deliveryIDs serviceName deliveryIDs statusResponse serviceOutput statusMessage internalIDs serviceOutput status "success" serviceOutput transportTime "0" Generated by webMethods Developer: May 30, 2006 1:03:37 PM PDT