Steps to follow in 6.0 or Previous versions:
For example you have the final X12 850 (IDATA values) holds with appropriate data(starting with segment ST) .Once you have IDATA values these services should be invoked before sending EDI document to the outside world (outbound):
1.wm.b2b.edi:convertToString(it gives out ST transactionset)
2.wm.b2b.edi.util:addICEnvelope (it will add ISAEnvelope)
3.wm.b2b.edi.util:addGroupEnvelope(it will add GSEnvelope)
At the end the Edi string should have (ISA,GS,ST,SE,IEA) segments and you can also validate the EDI evelope using envelopeProcess service.
HTH.
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB