I’ve managed to work this out. Here are steps:
- AS2 trading partner must send the message with content-type text/plain. This ensures the input to the receive service has a stream variable.
- Set the EDIINT configuration parameter as follows:
wm.EDIINT.userProcessPayloadService=
-
Run service wm.EDIINT.util:addContentType with input text/plain. This registers text/plain MIME type to be handled by the EDIINT content handler.
-
Write a service as specified in step 2 to provide TN_Parms parameters SenderID, ReceiverID and DoctypeName. Invoke the service routeFlatFile.
CAUTION:- The way EDIINT works with non-xml/non-edi formats is to specify a single service that handles all of these formats. You may have a number of different trading partners sending you flat files and it will be down to this service to distinguish between different flat file types.
#webMethods#Integration-Server-and-ESB#B2B-Integration