I just had this same problem. If you are building the EDI and converting to an EDI string using wm.edi.b2b:convertToString, make sure that your EDI document values layout has a blank value for the SE segment. If you leave this as null, the convertToString service will not count up the segments and attach the control number. In my process, I do this:
- Populate an EDI document type built off of an EDIFFSchema in the WmEDIforTN package. (ensuring that you put the transaction number in ST01 and populate the entire SE segment as an empty string.
- Extract partner information from a TPA.
- Convert my EDI layout to string using wm.edi.b2b:convertToString
- Add group and interchage envelopes with wm.edi.b2b.util:addGroupEnvelope and addICEnvelope
- Route to TN using wm.tn.doc.xml:routeXml.
Good luck. Hope this helps. Also, I should note that we’re using wM 6.1.
Z
#Integration-Server-and-ESB#webMethods#B2B-Integration