Read more on SPIĪ dummy SPI implementation is contained in the test code of this project. SPI stands for "Service provider interface" and is a Java standard feature to enable loose but typed coupling. Inside your project create an SPI implementation of the .IAS2IncomingSBDHandlerSPI interface to handling incoming SBD documents.The key store must contain your Peppol AP certificate and the alias of the only entry must be the CN-value of your certificate's subject (e.g.Configure the AS2 servlet as specified in the as2-servlet docs.To use this project you have to do the following: This project is licensed under the Apache 2 License. For validating the SBD against Peppol rules, the project peppol-sbdh is available and for handling UBL 2.0 or 2.1 files you may have a look at my ph-ubl. It does not contain extraction of the SBD content or even handling of the UBL content since the purpose of this project is reusability. This transitively includes Bouncy Castle (1.64) and javax.mail (1.6.4) among other libraries.Īs2-peppol-servlet handles incoming AS2 messages, and parses them as OASIS Standard Business Documents (SBD). This package depends on ph-commons, ph-sbdh, as2-lib and as2-servlet. It may serve as a practical starting point. This is not a self-contained package, but a good starting point for handling Peppol AS2 messages.Īn example application that uses as2-peppol-servlet for receiving Peppol AS2 messages is my as2-peppol-server project. To use a proxy server, add the following items to the smp-client.properties configuration file (of course with adopted values):Ī stand alone servlet that takes AS2 requests with Peppol StandardBusinessDocuments and handles them via SPI. The test files reside in the src/main/resources/xml folder and are referenced via classpath relative lookups. This happens currently directly in the main method and you have to choose the recipient you want. Sending a documentĪ test class is src/test/java/./MainAS2TestClient and you need to adopt the variables according to your needs to make it work.īefore being ready to send a document, the recipient participant identifier as well as the test document must be selected. See for the list of configuration items of the Peppol SMP client. ConfigurationĪ keystore in the format JKS or PKCS12 must be available that must contain your Peppol AP certificate. Please have a look at the Peppol practical AP guideįor a detailed description on how it works and how it fits in the overall Peppol transport infrastructure. When you are looking for a Peppol AS2 server component you may have a look at as2-peppol-server module. AS2 Peppol ClientĪS2 client to easily send AS2 messages to Peppol. It depends on several other libraries so I suggest you are going for the Maven source integration. The binary versions of the artifacts can be found on Note: prior to v5.4.0 the Maven groupId was com.helger.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |