Sending and Receiving in Lobster_data
Create AS2 Partner Channel
To send or receive data via AS2, you need to create a communication partner in the Partner Administration.
The AS2 partner channel shown in the screenshot above allows you to send and receive data (1). Your URL will be the one configured in file ./etc/as2.xml, as mentioned earlier (http://<URL/IP of Integration Server>/partner/AS2Retrieve/).
The AS2 identifiers AS2_EXAMPLECOMP (2) and AS2_DESTEXAMPLECOMP (3) are mandatory, no matter whether you only want to send or only want to receive data.
Partner Administration parameter (5) refers to parameter AS2 Address URL in the parameter list shown earlier. Enter the AS2 URL of your partner in this field, which will only be active if the data direction outgoing is selected. If only the data direction incoming option is selected, you will just be able to receive data.
Certificates can be selected in (6). Checkboxes Send signed, Receive signed, Send encrypted, and Receive encrypted (7) allow you to activate the optional use of signatures and encryption on both sides (incoming and outgoing). The encryption algorithms can be chosen from the drop-down menus Signature algorithm and Encryption. (8). The two fields with label MDN Type and MDN URL (9) allow you to set whether an MDN should be sent synchronously or asynchronously from the partner. If asynchronously is chosen, the MDN has to be sent to the specified URL, e. g. http://as2.example.com/as2, at some point after the data transmission. If synchronously is chosen, the transmission of the MDN is expected as a direct response to the data transmission.
If no settings are made in the field MDN Type and MDN URL, the system settings are taken from the configuration file ./etc/as2.xml. The default setting is synchronous. The default URL in the asynchronous mode is set in file ./etc/as2.xml.
<!-- Set your valid URL here to enable asynchronous sending (like
http://
<
server
>/partner/AS2Retrieve) -->
<!-- Set name="defaultMDNAsynchronousURL" -->
Send Data via AS2

The screenshot above shows you an AS2 Response Route with the chosen partner channel AS2ExamplePartner. All the other parameters can be set like in any other Response Route. If you want to use a URL different to the one set in the partner channel, simply use the field URL to overwrite that setting for this response route. Parameter field File sets the filename.
Receive Data via AS2

If you want to receive data via AS2, create an input agent of type AS2 and push your communication partner entry AS2ExamplePartner from area Existing relations to area Selected relations.
The field File pattern is an optional parameter that cannot be transmitted by all AS2 systems. The standard setting * allows you to receive data with and without filenames.