Trading Networks 10.7 | Administering and Monitoring B2B Transactions | webMethods Module for EDI | Forming EDI Documents to Send Outbound When Using Trading Networks | Creating the Service to Form the EDI Document | Creating the Service | Adding TRADACOMS Envelopes and Obtaining Control Numbers
 
Adding TRADACOMS Envelopes and Obtaining Control Numbers
The WmEDI package provides the following built-in services you can use to add TRADACOMS transmission and batch envelopes:
* wm.b2b.edi.tradacoms.compose:startTradacomsTransmission
Invoke this service to create an STX segment for a transmission. This service returns a tradacomsTransmission object.
* wm.b2b.edi.tradacoms.compose:addToTradacomsTransmission
1. Invoke this service to add the header message to the TRADACOMS transmission object that the startTradacomsTransmission service returned.
2. Invoke the addToTradacomsTransmission service a second time to add the detail messages to the TRADACOMS transmission object.
3. Invoke the addToTradacomsTransmission service a third time to add the trailer message to the TRADACOMS transmission object.
* wm.b2b.edi.tradacoms.compose:endTradacomsTransmission
Invoke this service to create an END segment for the transmission.
* wm.b2b.edi.tradacoms.compose:startTradacomsBatch
Invoke this service to create a batch (BAT) segment for the transmission.
* wm.b2b.editn.batch:getControlNumber (provided in the WmEDIforTN package)
Invoke this service to obtain the current control number from the EDIControlNumber table. This table is a Module for EDI-specific table in the Trading Networks database.
For more information about these services, see webMethods Module for EDI Built-In Services Reference .