If the client is not populating the correct content-type when they constructing the AS2 envelope, this may happen. check you ENIINT TN doc, see what’s the content-type there, if it’s not application/EDI-X12, TN won’t be able to recognize it.
your solution is ok, but still headack to create.
If your client can populate the content type properly, X12 doc will be automatically generated.
like this one:
Content-Type: application/EDI-X12
Content-Disposition: Attachment; filename=“edi.txt”
ISA00 00
#Integration-Server-and-ESB#webMethods#webmethods-Protocol-and-Transport