phax / as2-lib

A generic Java AS2 library, servlet and server
107 stars 43 forks source link

Async MDN support for AS2Client #31

Closed xloggerster closed 7 years ago

xloggerster commented 7 years ago

It seems like com.helger.as2lib.client.AS2Client only support AS2 message sending using synchronize MDN mode (through sendSynchronous() method). Is it possible to use this client to send AS2 in Asynchronized MDN mode instead?

I tried to read the source code and seems like async or not was controlled by aPartnership.setAS2ReceiptOption ()... what value should be set for this option value in order to support async MDN? any other changes needed?

phax commented 7 years ago

To send an async MDN you need a server component, whereas the AS2Client is meant to operate on a "library" basis, without a required server component. I will try to figure out the required parameters and make the needed changes. May take some days - I'm currently ill :(

phax commented 7 years ago

Oops - I totally missed that one :(

phax commented 7 years ago

AS2ClientSettings.setAsyncMDNUrl (String) should do the trick. Is contained in v3.0.4 release that is build now