Skip to content

Sending AS2 Messages

Philip Helger edited this page Feb 23, 2023 · 2 revisions

The sending of AS2 messages is always the same, independent what component and technology you use for receiving.

The main class for creating a new AS2 request is AS2ClientRequest. It mainly encapsulates the content to be send. The connection details need to be provided in an instance of class AS2ClientSettings. The idea is that the connection details may be used for multiple transactions an can be reused.

The AS2 sending response is delivered in an object of class AS2ClientResponse. These information are not stored or the like by default.

See class MainSendToMendelsonTestServer as working example code on how to send to the Mendelson test server. The code is excessively verbose to highlight the different options that you can use.

Please note: the Mendelson Test server does not support all signing and cryptographic algorithms supported by as2-lib.

Clone this wiki locally