After completing the station and partner configuration, we can try sending a message. First, go to compose message view using the Compose button on the Messages view.
You will be shown a view as follows:
Let’s compose an AS2 message.
- Select the partner you want to send a message to. If you only have one partner, it will come selected by default.
- Select the station you want to send messages from. Again, if you only have one station, it will come selected by default.
- Optionally, specify a message subject. If you keep this empty, the default subject set in partner configuration will be used.
- Select the files to be sent. You can either drag and drop them to the dropzone or you can browse and select the files.
- Submit the message to the queue by clicking the Send button.
MFT Gateway automatically assigns Content-Type headers to submitted files, by extension:
|(default; other .types or missing extension)||application/octet-stream|
Alternatively if you are submitting files through the REST API or AWS S3, you can explicitly specify a content type with the submission/upload itself (without having to adjust the filename/extension as above).
When you submit, the message will be added to a queue and you will be redirected to the Queued Messages view. From there, you can check on the status of the message. The view will automatically refresh every 10 seconds, showing the latest status of the queue.
If the queued message is delivered successfully to the recipient, the message will move to the Sent Messages view.
If the queued message encounters any failure, the message will move to either Incomplete Messages or Failed Messages view depending on the nature of the error.
If the message is accepted by the trading partner but failed to acknowledge back within the maximum waiting time, MFT Gateway will mark the outgoing message as Incomplete and the message will be added to the Incomplete Messages view. If the user already enabled Auto Retry Send Incomplete Messages from the Manage Partner view of the relevant trading partner, then MFT Gateway will automatically retry incomplete messages up to a maximum of 5 retries. In that case, the trading partner might receive duplicate messages, if they already process any previous message(s) successfully from their end.
- Else, the message will be added to the Failed Messages view. In this case, you can click the message entry in the failures list, and check the Failure Reason field to find the cause. Once you fix the issue, click the Retry button on the failed entry to re-queue it for delivery.