How to transfer files using AS2?

As the title suggests, how to transfer files using AS2?

AS2 is described here

AS2 (Applicability Statement 2) is a popular protocol file transfer that’s used to transmit sensitive data securely and reliably over the internet, often between trading partners.