Introduction

If this project saved you some time or made your day a little easier, a star would mean a lot — it helps others find it too.
This project contains different libraries that are commonly used in the Peppol/eDelivery area:
peppol-commons-bom - the Bill of Materials (BOM) with the managed versions of all artifacts of this project (since v13.2.3)
edelivery-commons - the network neutral base types shared by all supported networks (since v13.0.0)
edelivery-sbdh - the network neutral parts of the SBDH handling (since v13.0.0)
smp-client-base - the network neutral parts of the SMP client, including the OASIS BDXR SMP v1 and v2 clients (since v13.0.0)
edelivery-id - the network neutral identifier data structures (since v13.0.0)
peppol-id-datatypes - the generated JAXB classes for ID handling (since v8.4.0)
peppol-codelist-datatypes - the generated JAXB classes for Peppol Code List handling (since v13.1.0)
peppol-id - the Peppol ID data structures (since v7.0.0)
bdxr-id - the OASIS BDXR SMP identifier data structures (since v13.0.0)
peppol-id-checks - checks and derivations on top of the ID data structures (since v12.9.0)
peppol-commons - the most basic data structures for use with Peppol and BDXR
peppol-testfiles - a set of UBL and SBDH test files
peppol-sbdh - Peppol specific SBDH handling
peppol-sml-client - the Peppol SML client
peppol-smp-datatypes - the Peppol SMP generated JAXB classes (since v8.4.0)
peppol-smp-client - the Peppol SMP and BDXR SMP client
peppol-directory-businesscard - the Peppol Directory Business Card data model (since v9.1.0)
peppol-mlr - specific support for the Peppol Message Level Response (MLR) (since v9.1.2; deprecated since v13.1.0 - MLR is retired from Peppol per 2027-05-01)
peppol-mls - specific support for the Peppol Message Level Status (MLS) (since v10.1.0)
dbnalliance-commons - contains commons stuff for DBNAlliance support (since v10.2.0)
dbnalliance-xhe - specific support for DBNAlliance XHE header (since v9.5.0)
hredelivery-commons - contains commons stuff for HR eDelivery support (since v12.0.2)
This project is part of my Peppol solution stack. See https://github.com/phax/peppol for other components and libraries in that area.
These project are used implicitly by e.g. the following projects:
- phase4 - an AS4 implementation that supports the Peppol Network
- phoss-smp - the phoss SMP server with a management GUI
- phoss-directory - the phoss Directory for Peppol and TOOP
This project is licensed under the Apache 2.0 license.
edelivery-commons
Java library with the base types that are shared by all networks in this project - the transport
profile handling including a registry, the trust store helper, the SML base data and the network
stage interface.
First created in v13.0.0.
edelivery-sbdh
Java library with the network neutral parts of the Standard Business Document Header handling - the
data model, the reader and the writer. peppol-sbdh and the HR eDelivery SBDH support build on it.
First created in v13.0.0.
smp-client-base
Java library with the network neutral parts of the SMP client - HTTP execution, signature
verification, exceptions, extensions, redirects, caching and the OASIS BDXR SMP v1 and v2 clients.
It does not depend on dnsjava, so an SMP user without SML does not get the DNS stack.
First created in v13.0.0.
edelivery-id
Java library with the network neutral identifier data structures - the IIdentifier interfaces, the
Simple*Identifier implementations, the identifier factory interfaces and the code list item base
types. It contains no Peppol and no OASIS BDXR specific code.
First created in v13.0.0.
It was split out of peppol-id, so that a user of the Peppol identifiers no longer drags the OASIS
BDXR SMP XML Schema artifacts into the class path.
peppol-id-datatypes
Java library with the JAXB generated elements for Peppol ID handling.
First created in v8.4.0.
The Peppol Code List elements are in peppol-codelist-datatypes since v13.1.0.
Make sure to run mvn process-sources before using it in the IDE.
The additional code is created in target/generated-sources/xjc.
peppol-codelist-datatypes
Java library with the JAXB generated elements for Peppol Code List handling.
First created in v13.1.0 by extracting them from peppol-id-datatypes.
They are only needed to read the official Peppol Code List XML files - the predefined identifiers
created from them are in peppol-id.
Make sure to run mvn process-sources before using it in the IDE.
The additional code is created in target/generated-sources/xjc.
peppol-id
Java library with the Peppol identifiers and the predefined IDs of the Peppol code lists.
First created in v7.0.0.
The network neutral parts are in edelivery-id and the OASIS BDXR parts are in bdxr-id since
v13.0.0.
bdxr-id
Java library with the OASIS BDXR SMP v1 and v2 identifier data structures, their identifier
factories and the DBNAlliance identifier factory. It requires ph-xsds-bdxr-smp1 and
ph-xsds-bdxr-smp2, because the contained identifier classes extend the respective JAXB types.
First created in v13.0.0.
It is a separate submodule for the same reason as peppol-id-checks - it needs dependencies that
peppol-id deliberately does not want.
peppol-id-checks
Java library with checks and derivations on top of the peppol-id data structures.
First created in v12.9.0.
It is a separate submodule, because the contained code requires dependencies that peppol-id itself deliberately does not have - currently ph-masterdata for the GS1 prefix to country mapping.
It contains:
PeppolParticipantCountryHelper - determines the country of a Peppol participant identifier
IdentifierValidator and IParticipantIdentifierValidatorSPI - the SPI based semantic validation of participant identifier values (moved from peppol-id in v12.9.0)
peppol-commons
Java library with shared Peppol components. It contains the basic algorithms. Since v7 this depends on the peppol-id submodule.
This project also contains the predefined Peppol Truststores. See https://github.com/phax/peppol-commons/tree/master/peppol-commons/src/main/resources/truststore for all details.
peppol-sbdh
Simple SBDH handler for the use with Peppol.
It offers the possibility to extract all meta data from an SBDH document as well as
set all meta data to an SBDH document.
Make sure to run mvn generate-sources before using it in the IDE.
The additional code is created in target/generated-sources/xjc.
This projects implements the “Envelope specification” as listed on
http://www.peppol.eu/ressource-library/technical-specifications/transport-infrastructure/infrastructure-resources.
The detail document this project refers to can be found at
https://docs.peppol.eu/edelivery/envelope/PEPPOL-EDN-Business-Message-Envelope-1.2.1-2020-03-11.pdf
peppol-testfiles
A Java library with a lot of UBL and SBDH test files suitable for different scenarios.
SimpleInvoicing test files are used from https://github.com/SimplerInvoicing/testset
peppol-sml-client
This project contains the SML client library used by the SMP’s to interact with the SML.
This library is usually only used within SMP servers, to communicate the changes to the central SML.
Make sure to run mvn generate-sources before using it in the IDE.
The additional code is created in target/generated-sources/xjc.
This project contains 2 main classes for talking to the Peppol SML:
ManageServiceMetadataServiceCaller which is used to change SMP assignments in the SML. This must be called for a new SMP to register it once at the SML.
ManageParticipantIdentifierServiceCaller which is used to manage the assignment of participants to SMPs. This must be invoked from the SMP server every time a new participant is registered (or an existing one is modified or deleted).
Both classes offer the possibility to set an optional custom SSLSocketFactory as well as a custom optional HostnameVerifier. The implementation of this is in the base class AbstractSMLClientCaller.
This project is used by peppol-smp-server the SMP server with a management GUI and flexible backends.
peppol-smp-datatypes
Java library with the JAXB generated elements for Peppol SMP handling.
First created in v8.4.0.
Make sure to run mvn process-sources before using it in the IDE.
The additional code is created in target/generated-sources/xjc.
peppol-smp-client
This project holds the SMP client library used by the Access Points to retrieve service metadata.
This project supports the Peppol SMP specification, the OASIS BDXR SMP v1 and OASIS BDXR SMP v2 specification.
This project uses Apache HTTP client to perform the REST lookups on foreign SMPs.
The Peppol SMP specification 1.2.0, mandatory per 1.5.2022, is supported since v8.7.3.
The Peppol SMP specification 1.3.0 to be used per 1.12.2023 does not require any changes and is supported out of the box.
I also provide an OSS phoss SMP server with a nice management GUI.
If you are looking for a standalone query tool, https://github.com/Helger-IT/smp-query-webapp is what you may have a look at.
peppol-directory-businesscard
This was introduced in v9.1.0
This project holds the different versions of the Peppol Directory Business Card data model, as well as one generic model.
peppol-mlr
This was introduced in v9.1.2 and is deprecated since v13.1.0
This project holds utility classes to read and write a Peppol Message Level Response (MLR) as defined in https://docs.peppol.eu/poacc/upgrade-3/profiles/36-mlr/
Peppol MLR is phased out in favour of Peppol MLS - see the Peppol MLR Deprecation and Phase-out Plan v1.0.0.
The phase-out starts on 2027-03-01 (T2), the MLR specification is deprecated on 2027-04-01 (T3) and MLR is fully retired on 2027-05-01 (T4) - from T4 onwards no MLR may be sent anymore.
All classes of this module are therefore deprecated for removal. Use the module peppol-mls instead - it provides full functional coverage of MLR.
- Class
PeppolMLRBuilder can be used to build a Peppol MLR document - with or without line details. For each LineResponse the specialized builder class PeppolMLRLineResponseBuilder is available.
- Class
PeppolMLRMarshaller can be used to serialize MLR messages from and to XML. It is based on the ph-ubl marshaller.
See https://github.com/phax/peppol-commons/blob/master/peppol-mlr/src/test/java/com/helger/peppol/mlr/PeppolMLRBuilderTest.java for an example how to use the classes.
peppol-mls
This was introduced in v10.0.3
This project holds utility classes to read and write a Peppol Message Level Status (MLS) as defined in the member review of the MLS specification.
This is not necessarily the final version of the Peppol MLS and subject to change when the final version is released.
- Class
PeppolMLSBuilder can be used to build a Peppol MLS document - with or without line details. For each LineResponse the specialized builder class PeppolMLSLineResponseBuilder is available.
- Class
PeppolMLSMarshaller can be used to serialize MLS messages from and to XML. It is based on the ph-ubl marshaller.
- Class
PeppolMLSValidator can be used to run Schematron validation on Peppol MLS messages.
See https://github.com/phax/peppol-commons/blob/master/peppol-mls/src/test/java/com/helger/peppol/mls/PeppolMLSBuilderTest.java for an example how to use the classes.
dbnalliance-commons
This was introduced in v10.2.0
This project contains shared components for DBNAlliance usage.
dbnalliance-xhe
This was introduced in v9.5.0
This project holds support for reading and writing DBNAlliance XHE header.
This is the DBNAlliance version of peppol-sbdh based on the ph-xhe library.
hredelivery-commons
This was introduced in v12.0.3
This project contains shared components for Croatian (HR) eDelivery usage in the area as eRacun.
Configuration
Configuration resolution (since v8.2.0)
The SMP client (both Peppol and OASIS BDXR) uses the file application.properties for configuration.
The file smp-client.properties is also evaluated for backwards-compatibility reasons but with lower priority.
See https://github.com/phax/ph-commons#ph-config for the new resolution logic.
Configuration resolution (pre v8.2.0)
The SMP client (both Peppol and OASIS BDXR) uses the file smp-client.properties for configuration. The default file resides in the folder src/main/resources of this project. You can change the path of the properties file by setting the environment variable SMP_CLIENT_CONFIG (since v7.0.7), the system property peppol.smp.client.properties.path (since v4.3.5), the system property smp.client.properties.path (available as of v4.2.0) to the absolute path of the configuration file (e.g. by specifying -Dsmp.client.properties.path=/var/www/smpclient.properties on Java startup). The name of the file does not matter, but if you specify a different properties file please make sure that you also specify an absolute path to e.g. the trust store!
Configuration properties
It supports the following properties:
-
smpclient.truststore.type: the type of key store to be used. Possible values are JKS, PKCS12 and BCFKS. Defaults to JKS.
- Must be set to
PKCS12 for Peppol G3 CA
-
smpclient.truststore.path: the location of the Peppol trust store (of the specified type) to be used. If this property is not defined, the value defaults to truststore/complete-truststore.jks. By default the SMP client supports the following built-in trust stores (in library peppol-commons):
truststore/2025/smp-prod-truststore.p12 - contains the trust certificates for Peppol G3 production only (root, SMP, Directory, SML)
truststore/2025/smp-test-truststore.p12 - contains the trust certificates for Peppol G3 test only (root, SMP, Directory, SML)
truststore/2018/smp-prod-truststore.jks - contains the trust certificates for Peppol G2 production only (root, SMP, Directory, SML)
truststore/2018/smp-pilot-truststore.jks - contains the trust certificates for Peppol G2 pilot only (root, SMP, Directory, SML)
-
smpclient.truststore.password: the password to access the trust store. By default the password peppol is used. This password is valid for all built-in trust stores mentioned above.
-
http.proxy.host (before v8.7.2: http.proxyHost): the host name or IP address to be used as a HTTP proxy for all hosts. If you need proxy exemptions use the http.proxy.nonProxyHosts configuration.
-
http.proxy.port (before v8.7.2: http.proxyPort): the port of the HTTP proxy. The port must be specified and has no default value. If you need proxy exemptions use the http.proxy.nonProxyHosts configuration.
-
http.proxy.username (before v8.7.2: http.proxyUsername): the username for the HTTP proxy. This property takes only effect if proxy host and proxy port are defined.
-
http.proxy.password (before v8.7.2: http.proxyPassword): the password for the HTTP proxy. This property takes only effect if proxy host, proxy port and proxy username are defined.
-
http.proxy.nonProxyHosts (before v8.7.2: http.nonProxyHosts) (since v6.2.4): A pipe separated list of non-proxy hosts. E.g. localhost|127.0.0.1.
-
(deprecated since v8.7.2) http.useSystemProperties (since v5.2.4): if true the system properties (=JVM properties) for HTTP configuration are used for setting up the connection. This implies that the properties http.proxyHost, http.proxyPort, http.proxyUsername and http.proxyPassword are ineffective! The default value is false. Deprecated since v8.7.2
-
http.connect.timeout.ms (since v7.0.4): set the connect timeout in milliseconds. The default value is 5000 meaning 5 seconds.
-
http.response.timeout.ms (since v8.8.0; before http.request.timeout.ms): set the response timeout in milliseconds. The default value is 10000 meaning 10 seconds.
Specifying a proxy server
A proxy server can be specified in two ways:
- A single proxy server for all hosts - no exemptions. This can be specified in the configuration file for all
SMPClient instances or per SMPClient instance (same for BDXR client - for all clients based on AbstractGenericSMPClient).
- A more complex setup based on the JVM system properties (based on https://docs.oracle.com/javase/8/docs/api/java/net/doc-files/net-properties.html). This can also be specified in the configuration file to enable the usage for all
SMPClient instances or on a per-instance basis.
Specify a global proxy server
The SMP client supports a proxy server. By default the proxy specified in the configuration file (see above) is used (since v4.3.0).
Alternatively call the method setProxy (org.apache.http.HttpHost) on an SMPClient or SMPClientReadOnly. This means you can specify the proxy on a per-call basis.
Proxy authentication is available since v5.2.5 by invoking setProxyCredentials (org.apache.http.auth.Credentials) on the SMP or BDXR client.
Example usage
Get the endpoint URL for a participant using a special document type and process:
// The Peppol participant identifier
final IParticipantIdentifier aPI_AT_Test = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9915:test");
// Create the main SMP client using the Peppol test SML
final SMPClientReadOnly aSMPClient = new SMPClientReadOnly (PeppolNaptrURLProvider.INSTANCE,
aPI_AT_Test,
ESML.PEPPOL_TEST);
final String sEndpointAddress = aSMPClient.getEndpointAddress (aPI_AT_Test,
EPredefinedDocumentTypeIdentifier.INVOICE_EN16931_PEPPOL_V30,
EPredefinedProcessIdentifier.BIS3_BILLING,
ESMPTransportProfile.TRANSPORT_PROFILE_PEPPOL_AS4_V2);
// Endpoint address should be "https://test.erechnung.gv.at/as4"
System.out.println ("The Austrian government test AS4 AP that handles invoices in Peppol BIS 3 is located at: " +
sEndpointAddress);
If you don’t need the DNS lookup you can use the URL of the SMP directly (equivalent to the previous example):
// The Peppol participant identifier
final IParticipantIdentifier aPI_AT_Test = PeppolIdentifierFactory.INSTANCE.createParticipantIdentifierWithDefaultScheme ("9915:test");
// Create the main SMP client using the production SML
final SMPClientReadOnly aSMPClient = new SMPClientReadOnly (URLHelper.getAsURI ("http://B-85008b8279e07ab0392da75fa55856a2.iso6523-actorid-upis.acc.edelivery.tech.ec.europa.eu"));
final String sEndpointAddress = aSMPClient.getEndpointAddress (aPI_AT_Test,
EPredefinedDocumentTypeIdentifier.INVOICE_EN16931_PEPPOL_V30,
EPredefinedProcessIdentifier.BIS3_BILLING,
ESMPTransportProfile.TRANSPORT_PROFILE_PEPPOL_AS4_V2);
// Endpoint address should be "https://test.erechnung.gv.at/as4"
System.out.println ("The Austrian government test AS4 AP that handles invoices in Peppol BIS 3 is located at: " +
sEndpointAddress);
Building from source
This project is meant to be build by Maven 3.x.
It requires at least Java 17 to be build.
To build simply call mvn clean install in the root folder.
When integrating this in your IDE, ensure to run mvn process-sources first, so that the automatically generated files are present.
For the subprojects peppol-id, peppol-commons, peppol-sbdh and peppol-sml-client add target/generated-sources/xjc to your buildpath afterwards.
Maven usage
Add the following to your pom.xml to use this artifact, replacing x.y.z with the latest version number (see below):
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-id</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-id-checks</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-commons</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-testfiles</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-sbdh</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-sml-client</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-smp-client</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-directory-businesscard</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-mlr</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-mls</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>dbnalliance-commons</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>dbnalliance-xhe</artifactId>
<version>x.y.z</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>hredelivery-commons</artifactId>
<version>x.y.z</version>
</dependency>
Alternatively use the following code in your dependencyManagement section to use it as a BOM:
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-commons-bom</artifactId>
<version>x.y.z</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Note: prior to v13.2.3 there was no dedicated BOM and peppol-commons-parent-pom had to be imported instead, which also carries the build configuration of this project.
Note: prior to v8.1.0 the Maven groupId was com.helger.
The binary version of this library can be found on https://repo1.maven.org/maven2/com/helger/peppol/
They depend on several other libraries so I suggest you are going for the Maven source integration.
References
News and noteworthy
v13.4.0 - 2026-11-30
- Updated to ph-commons 12.9.0
- Added
PeppolSBDHDataReader.extractDataStreaming (InputStream) and HREDeliverySBDHDataReader.extractDataStreaming (InputStream) to read the SBDH with all checks, but without holding the business message in memory.
The returned data contains only the namespace URI and the local name of the business message root element
- Added
DBNAllianceXHEDataReader.extractDataStreaming (InputStream) to read the XHE with all checks, but without holding the payload contents in memory.
The returned payloads contain only the content kind (new enum EDBNAlliancePayloadContentKind) and for XML payloads the name of the root element
- Added
AbstractSBDHData.getBusinessMessageNamespaceURI (), getBusinessMessageLocalName (), hasBusinessMessageLocalName () and setBusinessMessageName (String, String)
- Added
DBNAlliancePayload.getPayloadContentKind (), getPayloadContentNamespaceURI (), getPayloadContentLocalName () and setPayloadContentKindOnly (...)
- Added
PeppolSBDHData.isNonXMLSBDHPayload (String, String). PeppolSBDHData.isNonXMLPayload () now also works if only the business message name is present
- Fixed a
NullPointerException in PeppolSBDHData.isNonXMLSBDHPayload if the passed business message is null
- Fixed
DBNAllianceXHEDataReader.extractData, which stored the To party as the From party, so the To party was never set
v13.3.0 - 2026-11-18
- Added the new annotation
@SinceBDMSL (source retention) that marks SML client APIs requiring a minimum BDMSL version.
The Peppol SML currently runs BDMSL 5.0.4, so the APIs marked with @SinceBDMSL ("5.1") cannot be used there yet
- Added
ManageParticipantIdentifierServiceCaller.cancelMigration to remove a prepared but not yet completed participant migration from the SML (BDMSL 5.1+).
BDMSL has no dedicated operation for this, but since 5.1 removes the prepared migration if PrepareToMigrate is called with an empty migration key
ManageParticipantIdentifierServiceCaller.prepareToMigrate now rejects an empty migration key, which BDMSL 5.1+ interprets as a request to remove a prepared migration
ManageParticipantIdentifierServiceCaller.createRandomMigrationKey now uses a cryptographically strong random number generator and places the mandatory characters at random positions
- The migration key is no longer logged on level INFO, only on level DEBUG
- Added
ESMLCommand.CANCELMIGRATION
- Added the new class
BDMSLMonitoringClient for the BDMSL monitoring service, which hosts the IsAlive operation since BDMSL 5.0.
BDMSLClient.isAlive () only works with BDMSL versions before 5.0 - use BDMSLMonitoringClient.isAlive () with the current Peppol SML
- Added the BDMSL operations
ExistsParticipantIdentifier (BDMSL 4.2+), ManageChangeCertificate and RefreshSmpActiveStatus (both BDMSL 5.1+) to BDMSLClient
- Added the new enum
EManageChangeCertificateAction (BDMSL 5.1+)
v13.2.3 - 2026-11-15
- Requires at least ph-commons 12.7.1
- Added the new module
peppol-commons-bom as a Maven BOM (Bill of Materials) for all peppol-commons artifacts.
Use it instead of peppol-commons-parent-pom when importing the managed versions
v13.2.2 - 2026-11-11
- Requires at least ph-commons 12.6.0
- Added
logHandler (ILogHandler) and areAllFieldsSet (ILogHandler) to PeppolMLRBuilder, PeppolMLRLineResponseBuilder, PeppolMLSBuilder, PeppolMLSLineResponseBuilder and PeppolMLSLineResponseResponseBuilder, so that the missing fields can be collected or forwarded instead of only being logged.
areAllFieldsSet (boolean) is kept; PeppolMLSBuilder.addLineResponse (Consumer) passes the handler on to the line response builder
- The SMP clients now limit the waiting time requested by the HTTP
Retry-After response header.
If the SMP requests a longer duration than SMPHttpClientSettings.getMaxRetryAfter () (default 30 seconds), no retry happens.
Until now, the default retry strategy of Apache HttpClient waited for any requested duration, which could block an SMP lookup for an unlimited time.
For this, the new classes SMPHttpClientFactory and SMPHttpClientRetryStrategy were added.
This only applies if no shared HttpClientManager is used.
SMPHttpClientSettings now explicitly uses 1 retry (DEFAULT_SMP_RETRY_COUNT), which was previously the implicit default of Apache HttpClient.
A retry count of 0 now really means no retries
v13.2.1 - 2026-10-17
- Fixed the request URIs of the non-standard writing methods of
BDXR2Client.
All four of them - saveServiceGroup, deleteServiceGroup, saveServiceRegistration and deleteServiceRegistration - put bdxr-smp-2/ in front of the path, which is the path of the reading interface.
phoss SMP, the only server these non-standard methods target, serves the write operations at the root and answers a PUT or DELETE below that path with 405 Allow: OPTIONS, GET, HEAD, POST, so none of them worked.
The reading methods are unchanged and keep that path
- Fixed
BDXR2Client.saveServiceGroup (IParticipantIdentifier, IHttpClientCredentials): it built a ServiceGroupType without the SMPVersionID.
That element is mandatory per the XML Schema (minOccurs="1") and schema validation is on by default, so the call always failed with IllegalArgumentException: Failed to serialize ServiceGroup before any HTTP request was made
- Added
BDXR2Client.SMP_VERSION_ID for the value 2.0, which was hard coded in three places
- Added
BDXR2ClientTest, which measures the request paths of the writing methods against a local HTTP server - and asserts that a read still uses PATH_OASIS_BDXR_SMP_2, so the two cannot be collapsed into each other again
- Fixed
ManageServiceMetadataServiceCaller.read (String): the request contained only the ServiceMetadataPublisherID, but the PublisherEndpoint is mandatory in the XML Schema, so the SML rejected it with a BadRequestFault (code 106).
The request now contains a PublisherEndpoint with dummy addresses, which the SML ignores for the Read operation
v13.2.0 - 2026-10-08
- Fixed the “multiple matching endpoints” warning in
SMPClientReadOnly.getEndpointAt (...).
The guard was aRelevantEndpoints.size () <= 0, so it only triggered when no endpoint matched, while the message body already contained an unreachable branch ending in " - using the first one" for the non-empty case.
Two or more endpoints valid at the same point in time for the same process and transport profile - an SMP misconfiguration - were therefore collapsed to the first one without any warning.
The guard is now != 1
EBusinessCardVersion.LATEST is now public.
It was package private, so a consumer that wanted to check whether a Business Card uses the current version had to hard code V3 instead of comparing against the constant the library already provides
- Added optional DNSSEC validation of the U-NAPTR lookups via
AbstractBDXLURLProvider.setDnsSecValidation (boolean) (disabled by default).
The used DNS servers must forward the DNSSEC records - otherwise every lookup fails.
See issue #50
- Added the new error code
SMPDNSResolutionException.EErrorCode.DNSSEC_VALIDATION_FAILED
- Updated to ph-web 11.4.7
- Updated to ph-commons 12.5.1
- Incompatible change: the writing methods of
SMPClient, BDXRClient and BDXR2Client now take an IHttpClientCredentials instead of a BasicAuthClientCredentials.
This is source compatible, because BasicAuthClientCredentials implements IHttpClientCredentials, but requires a recompilation.
This allows the usage of HTTP Bearer Tokens via BearerAuthClientCredentials.
See issue #88
- Added the phoss SMP specific clients
PhossSmpPeppolClient, PhossSmpBdxr1Client and PhossSmpBdxr2Client that additionally offer all the phoss SMP specific REST APIs via the common interface IPhossSmpClient.
This covers adding a single Endpoint to a Process, deleting a single Process, deleting all Service Registrations, listing all Service Group IDs, the Business Card write APIs, the Custom Properties APIs, the Participant Migration APIs and the Exchange (import/export) APIs.
See issue #88
- Added the Custom Property data model
SGCustomProperty and SGCustomPropertyList in package com.helger.smpclient.phosssmp
- Added the Endpoint marshallers
SMPMarshallerEndpointType, BDXR1MarshallerEndpointType and BDXR2MarshallerEndpoint
- Added
SMPHttpResponseHandlerByteArray
smp-client-base now depends on peppol-directory-businesscard
v13.1.1 - 2026-10-01
- Changed an invalid
MLS_TYPE in PeppolSBDHDataReader from an error to a warning.
MLS specification section 4.2 requires an invalid value to be interpreted as the default value, so the document must not be rejected.
PeppolSBDHData.getMLSType () returns null for it, as for a missing value.
See PR #87 - thx @smh
- Fixed
PeppolSBDHDataReader.isValidMLSTo so that the SPID in MLS_TO is matched case-insensitively, as SPIS section 3.4 requires.
It now uses SPIDHelper.isValidSPID, so a value lower-cased by PeppolIdentifierFactory is no longer reported as invalid.
See PR #86 - thx @smh
PeppolSBDHDataReader.isValidMLSTo now takes the 0242 prefix from SPIDHelper.SPIS_PARTICIPANT_ID_SCHEME instead of hard-coding its length
v13.1.0 - 2026-09-28
- Extended
SPIDHelper so that the Peppol Seat ID can be taken from a certificate.
The Subject Common Name (CN) of a Peppol certificate is the Seat ID, so the new methods only have to validate it
- New method
SPIDHelper.isValidSeatID (String) - the Seat ID check that so far only existed inline in getMainIDFromSeatID (String)
- New methods
SPIDHelper.getSeatIDFromSubjectCN (String) and SPIDHelper.getMainIDFromSubjectCN (String) that take an already extracted Subject CN
- New methods
SPIDHelper.getSeatIDFromCertificate (X509Certificate) and SPIDHelper.getMainIDFromCertificate (X509Certificate) that take the certificate directly and use CertificateHelper.getSubjectCN (...) internally
peppol-id therefore has a new dependency on ph-security.
That library uses BouncyCastle in test scope only, so nothing is added to the transitive compile classpath except ph-security itself
- Added the new submodule
peppol-codelist-datatypes that contains the JAXB classes of the Peppol Code List XSD, extracted from peppol-id-datatypes
- Breaking API change The package
com.helger.xsds.peppol.codelists26 moved from the submodule peppol-id-datatypes to the new submodule peppol-codelist-datatypes.
The package name and all contained classes are unchanged - only the artifact that provides them is a different one.
peppol-codelists-v2.6.xsd and peppol-identifiers-v1.xsd share nothing: they have no xs:import between them, only the identifier XSD has a target namespace, and the code list XSD follows the release cycle of the Peppol code lists, whereas the identifier XSD did not change in years.
- Breaking API change Moved
CPeppolID.NS_URI_PEPPOL_CODELISTS and CPeppolID.getXSDPeppolCodeLists () to the new class CPeppolCodeLists in the submodule peppol-codelist-datatypes
peppol-id now depends on peppol-codelist-datatypes in test scope only, because the code list JAXB classes are only used by the source code generator of the predefined enums.
That removes them from the transitive compile classpath of peppol-id and of everything building on it.
Add an explicit dependency on peppol-codelist-datatypes if you use them.
peppol-id-datatypes no longer depends on ph-datetime, ph-jaxb-adapter and ph-xsds-xmldsig.
Only the code list classes used the XMLOffsetDateTime adapters, and neither XSD ever referenced XMLDSig.
- Removed the dependency of the modules
dbnalliance-commons and hredelivery-commons onto ph-bc and therefore onto Bouncy Castle.
Neither module references a single Bouncy Castle class and both trust stores are PKCS12, so the roughly 9 MB of bcprov, bcpkix and bcutil are gone from their compile and runtime class path.
This completes what PR #81 did for peppol-commons in v12.10.0 - both modules were left out back then.
If you need Bouncy Castle - e.g. to read a BCFKS trust store - add ph-bc to your project explicitly.
- The modules
smp-client-base, dbnalliance-commons, dbnalliance-xhe and edelivery-sbdh no longer depend on peppol-id.
None of them used a single class of it - they use edelivery-id and bdxr-id, which are now declared explicitly where they were only transitive before.
If you relied on getting peppol-id transitively through one of these modules, declare it yourself.
edelivery-sbdh referenced PeppolIdentifierHelper in two Javadoc {@link}s only, which was the sole reason for its dependency onto peppol-id and contradicted its role as the network neutral SBDH module.
The Javadoc of AbstractSBDHData.setSender (String, String) and setReceiver (String, String) now names the scheme value directly.
peppol-sbdh no longer depends on peppol-commons - it referenced no class of it, neither in the main nor in the test code.
That also removes ph-security and edelivery-commons from its class path.
peppol-id no longer depends on ph-xsds-xmldsig - and therefore no longer on ph-jaxb-adapter - and no longer on ph-url.
It now declares ph-datetime and ph-cache instead, which it does use and which previously only arrived transitively.
- Deprecation All classes of the module
peppol-mlr are now deprecated for removal.
Peppol MLR is phased out in favour of Peppol MLS, as laid out in the Peppol MLR Deprecation and Phase-out Plan v1.0.0.
The phase-out starts on 2027-03-01 (T2), the MLR specification is deprecated on 2027-04-01 (T3) and MLR is fully retired on 2027-05-01 (T4) - from T4 onwards no MLR may be sent anymore.
The module still works unchanged and is not removed yet.
Use the module peppol-mls instead - per the phase-out plan MLS provides full functional coverage of MLR.
- Updated to jcodemodel 4.4.1
- The SMP client no longer logs an HTTP 404 response of an SMP as an error.
An unknown participant or an unknown document type is a regular answer of an SMP - especially for the
...OrNull methods - so it is the caller that decides whether this is an error or not.
AbstractGenericSMPClient now logs it on debug level only, and still throws the exception as before, so the behaviour of every caller is unchanged.
See PR #85 - thx @gregjotau
- Added
ManageParticipantIdentifierServiceCaller.listAllPages (...) that iterates all pages of the SML List() operation and hands every page to a callback.
Previously every caller had to implement the paging loop of chapter 3.1.2.7 of the SML specification itself.
The callback can stop the iteration, and the method aborts if the SML references a page that was already read, so that a faulty SML cannot cause an endless loop.
- Added
ManageParticipantIdentifierServiceCaller.deleteList (Collection, String) that takes the SMP ID and the participant identifiers as IParticipantIdentifier, like createList (...) does.
The single argument deleteList (Collection) is deprecated in favour of it, because it takes the JAXB type ParticipantIdentifierType and never sets the ServiceMetadataPublisherID, even though delete (...) needs it as a workaround for a bug in CIPA SMK 3.0.
It cannot be replaced by a single argument overload, because Collection <? extends ParticipantIdentifierType> and Collection <? extends IParticipantIdentifier> have the same erasure.
- Fixed
ManageParticipantIdentifierServiceCaller.list (...) sending an empty NextPageIdentifier element when the first page was requested.
Chapter 3.1.2.7 of the SML specification states that the first page is returned if the element is absent, and an empty element is not an absent element.
The element is now only sent if a page ID is present.
ManageParticipantIdentifierServiceCaller.prepareToMigrate (...) and migrate (...) now log a warning if the provided migration key does not match CSMLDefault.MIGRATION_CODE_PATTERN.
This is deliberately only a warning and not an error, because the exact layout of a migration key is SML implementation dependent - the pattern reflects the rules of the BDMSL implementation.
Previously prepareToMigrate (...) did not look at the migration key at all, so an unusable key was only rejected by the SML.
- Fixed
SMLExceptionHelper.getFaultMessage (...) throwing a NullPointerException for an SML fault that carries no fault detail.
The fault info of the generated fault classes may be null, and it was dereferenced unconditionally in the very helper that is meant to make a fault readable.
- Fixed the Javadoc of
ManageParticipantIdentifierServiceCaller.migrate (...) claiming that the migration key must have at least 24 characters.
CSMLDefault.MAX_MIGRATION_CODE_LENGTH is a maximum, and CSMLDefault.MIGRATION_CODE_PATTERN allows between 8 and 24 characters.
- Added
BDXR2ClientReadOnly.isEndpointValidAt (EndpointType, LocalDate) and BDXR2ClientReadOnly.getEndpointAt (ServiceMetadataType, IProcessIdentifier, ISMPTransportProfile, LocalDate).
getEndpoint (...) previously matched the process identifier and the transport profile only and ignored smb:ActivationDate and smb:ExpirationDate entirely, so an endpoint outside its validity period was returned like any other one.
For the Peppol SMP the date aware variants exist since v8.7.3; for OASIS BDXR SMP v2 they were missing.
In BDXR SMP v2 both elements are of type xs:date and carry no time of day, so the new methods take a LocalDate and treat both dates as inclusive: an endpoint with an ExpirationDate of 2026-12-31 is still valid on 2026-12-31.
getEndpoint (...) now delegates to getEndpointAt (...) with the current date of the default time zone.
Callers that need a specific date or a specific time zone - UTC in particular - must use getEndpointAt (...).
- Added
BDXRClientReadOnly.isEndpointValidAt (EndpointType, LocalDateTime) as well as getEndpointAt (...) for both ServiceMetadataType and SignedServiceMetadataType, closing the same gap for OASIS BDXR SMP v1.
There ServiceActivationDate and ServiceExpirationDate are of type xs:dateTime, so these methods take a LocalDateTime, exactly like the Peppol counterparts.
getEndpoint (...) now delegates to getEndpointAt (...) with the current date and time of the default time zone.
v13.0.0 - 2026-09-23
- Added the new submodule
edelivery-commons that contains the network neutral base types, so that Peppol, DBNAlliance, HR eDelivery and future networks share them instead of copying them
- Breaking API change Moved
ISMPTransportProfile, SMPTransportProfile, ESMPTransportProfileState, ESMPTransportProfileStateText and SMPTransportProfileMicroTypeConverter from com.helger.peppol.smp to com.helger.edelivery.smp in the new submodule edelivery-commons
- Breaking API change Moved
ESMPAPIType from com.helger.peppol.sml to com.helger.edelivery.smp in the new submodule edelivery-commons
- Breaking API change Removed
ESMPTransportProfile.TRANSPORT_PROFILE_DBNA_AS4_V1 and ESMPTransportProfile.TRANSPORT_PROFILE_ERACUN_AS4_V1 - a network no longer needs to modify a Peppol enum to make its transport profiles known.
Use the new EDBNAllianceTransportProfile and EHREDeliveryTransportProfile instead
- Added
SMPTransportProfileRegistry that collects the transport profiles of all networks via the new SPI interface ISMPTransportProfileProviderSPI
- Added
NetworkTrustStoreHelper so that PeppolTrustStores, DBNAllianceTrustStores and HREDeliveryTrustStores no longer each carry their own copy of the trust store loading and certificate resolution code
- Added
INetworkStage as the common base interface of IPeppolNetwork, EDBNAllianceStage and EHREDeliveryStage
- Breaking API change Renamed
EPeppolCodeListItemState to ECodeListItemState and moved it from com.helger.peppolid.peppol to com.helger.peppolid.codelist
- Added
ICodeListItem and ICodeListItemWithRelease - the state and release lifecycle of a code list entry was previously repeated in five interfaces
- Breaking API change Removed
ESMPIdentifierType.DBNALLIANCE - use the new EDBNAllianceIdentifierType.DBNALLIANCE instead
- Added
IdentifierFactoryTypeRegistry and the SPI interface IIdentifierFactoryTypeProviderSPI, so that a network can contribute its identifier rules without modifying ESMPIdentifierType
- Added the new submodule
smp-client-base that contains the network neutral parts of the SMP client - HTTP execution, signature verification, exceptions, extensions, redirects, caching and the OASIS BDXR SMP v1 and v2 clients.
It does not depend on dnsjava and ph-dns, so a BDXR SMP user without SML no longer drags the DNS stack into the class path
- Breaking API change Moved the packages
com.helger.smpclient.httpclient, .exception, .security, .extension, .redirect, .config, .bdxr1 and .bdxr2 from peppol-smp-client to smp-client-base.
The package names are unchanged
- Breaking API change Moved the DNS based URL providers (
AbstractBDXLURLProvider, BDXLURLProvider, IBDXLURLProvider, PeppolURLProvider, IPeppolURLProvider, PeppolNaptrURLProvider, PeppolConfigurableURLProvider and DBNAURLProviderSMP) from com.helger.smpclient.url to com.helger.smpclient.url.dns.
ISMPURLProvider and SMPDNSResolutionException stay where they are and moved to smp-client-base
- Breaking API change
SMPClientCache now extends the new generic AbstractSMPClientCache - the public API of SMPClientCache is unchanged
- Added
BDXR2ClientCache and CachingBDXR2ClientReadOnly - OASIS BDXR SMP v2 had no caching at all so far
- Added the new submodule
edelivery-sbdh that contains the network neutral parts of the SBDH handling
- Breaking API change
PeppolSBDHData and HREDeliverySBDHData now extend AbstractSBDHData, PeppolSBDHDataReader and HREDeliverySBDHDataReader extend AbstractSBDHDataReader and PeppolSBDHDataWriter and HREDeliverySBDHDataWriter extend AbstractSBDHDataWriter.
The public API of the Peppol classes is unchanged, except that the error enums now implement ISBDHDataError and the read exceptions extend SBDHDataReadException
- The
BusinessScope handling is the only part of the SBDH writing that is network specific - it is filled via fillBusinessScope
- Breaking API change Removed all the code that was deprecated and marked for removal:
ESML.DIGIT_PRODUCTION and ESML.DIGIT_TEST (deprecated since 12.4.0)
CSMLDefault.DNS_PUBLISHER_SUBZONE and ISMLInfo.getPublisherDNSZone ()
- The three
SMLInfo constructors - use SMLInfo.builder () instead
PeppolIdentifierHelper.DEFAULT_CHARSET_CHECKS_DISABLED, PeppolIdentifierHelper.areCharsetChecksDisabled () and PeppolIdentifierHelper.disableCharsetChecks (boolean)
- The annotations
Pfuoi430 and Pfuoi440
CPeppolMLS.SPIS_PARTICIPANT_ID_SCHEME and CPeppolMLS.REGEX_SPID - use SPIDHelper instead
PeppolSBDHDataReader.DEFAULT_CHECK_FOR_COUNTRY_C1, isCheckForCountryC1 () and setCheckForCountryC1 (boolean) - the Country C1 is now always checked, as soon as the value checks are enabled
PeppolURLProvider and PeppolConfigurableURLProvider - use PeppolNaptrURLProvider instead
- The two
ISMPURLProvider.getSMPURLOfParticipant (...) default methods that returned an URL - use the getSMPURIOfParticipant (...) methods that return an URI
SMPClientParticipantNotFoundException; SMPClientSMPUnavailableException now extends SMPClientException directly
SMPDNSResolutionException.EErrorCode.DNS_RESOLVING_ERROR - use DNS_TECHNICAL_FAILURE, PARTICIPANT_NOT_REGISTERED or NO_MATCHING_SMP_SERVICE instead
- The static getters
getConnectTimeout (), getResponseTimeout (), getHttpProxy (), getHttpProxyCredentials (), getNonProxyHosts () and isUseDNSClientCache () of SMPClientConfiguration
SMPHttpClientSettings.fromLegacyConfiguration () and SMPHttpClientSettings.resetToConfiguration ()
com.helger.dbnalliance.commons.DBNAllianceIdentifierFactory - use com.helger.peppolid.factory.DBNAllianceIdentifierFactory instead
- Breaking API change Split
ISMLInfo: the new parent interface ISMLBase in edelivery-commons contains the data needed to use an SML (ID, display name, DNS zone, client certificate flag), ISMLInfo keeps everything needed to manage entries in a Peppol SML.
The SMP clients and ISMPURLProvider now work with ISMLBase
EDBNAllianceSML now implements ISMLBase - it previously implemented nothing, because ISMLInfo demanded the SML management endpoints that DBNAlliance does not have.
Its constants now carry an ID and a display name; getZoneName () is kept next to the new getDNSZone ()
- Breaking API change Removed
SMPExtension.getAsPeppolExtension () and SMPExtensionList.getAsPeppolExtension () - use the new PeppolSMPExtensionHelper.getAsPeppolExtension (...) in peppol-smp-client instead.
The OASIS BDXR SMP v1 and v2 conversions stay where they are
smp-client-base no longer depends on peppol-commons and peppol-smp-datatypes - it now only requires edelivery-commons, peppol-id and the ph-* libraries.
The User-Agent header uses the new CSMPClientVersion of that module
- Breaking API change
BDXR1IdentifierFactory and BDXR2IdentifierFactory no longer reference PeppolIdentifierHelper.
The ISO 6523 scheme name, that decides whether participant identifiers are compared case insensitive, is now a constant of CBDXR1Identifier and CBDXR2Identifier.
The behaviour is unchanged
- Breaking API change
DBNAllianceIdentifierFactory no longer extends BDXR2IdentifierFactory - the networks are independent of each other, so a change in one of them cannot silently change the other any more.
The behaviour is unchanged
- Breaking API change Moved
CIdentifier.DEFAULT_PROCESS_IDENTIFIER_NOPROCESS to PeppolIdentifierHelper - the value busdox:noprocess is Peppol specific and had no place in the generic identifier class
- Breaking API change
IdentifierValidator.isValidParticipantIdentifier (...) now takes an IParticipantIdentifier instead of the concrete PeppolParticipantIdentifier.
How an identifier is split into issuing agency and local participant ID is now a strategy - see the new IParticipantIdentifierPartsProvider, ParticipantIdentifierParts and PeppolParticipantIdentifierPartsProvider.
The single argument method keeps the previous Peppol behaviour
- Breaking API change Moved
MozillaNSSTrustStore from com.helger.peppol.security to com.helger.nss in the new standalone project ph-nss.
The Mozilla NSS root certificates are used for general TLS server certificate verification and have nothing to do with Peppol, no code of peppol-commons used them, and they made up roughly half of the peppol-commons JAR.
Mozilla updates the trust list every couple of weeks, so it now lives in a project that can be released on that cadence.
If you used MozillaNSSTrustStore, add the dependency com.helger:ph-nss and change the import - the API is unchanged.
The conversion tool MainConvertNSSCertData moved along with it
- Breaking API change Moved all classes of the submodule
dbnalliance-xhe from the package com.helger.peppol.xhe to com.helger.dbnalliance.xhe.
A DBNAlliance module had no business living in a Peppol package - dbnalliance-commons and hredelivery-commons already use their own package roots.
The class names are unchanged
- Removed the unused dependency on
jakarta.servlet-api from peppol-directory-businesscard - no class of that module ever referenced the Servlet API
- Removed the unused test dependency on
peppol-testfiles from dbnalliance-xhe
- Added the new submodule
edelivery-id that contains the network neutral identifier data structures, and the new submodule bdxr-id that contains the OASIS BDXR SMP v1 and v2 identifier data structures.
peppol-id therefore no longer requires ph-xsds-bdxr-smp1 and ph-xsds-bdxr-smp2 - together with their transitive artifacts ph-xsds-xmldsig11, ph-xsds-xades132, ph-xsds-xades141 and ph-xsds-ccts-cct-schemamodule that is roughly 425 KB and 6 JARs less for everybody who only uses the Peppol identifiers.
The package names are unchanged - com.helger.peppolid, com.helger.peppolid.simple, com.helger.peppolid.codelist and the identifier factory interfaces are now in edelivery-id, com.helger.peppolid.bdxr.smp1 and com.helger.peppolid.bdxr.smp2 are now in bdxr-id
- Breaking API change Removed
ESMPIdentifierType.BDXR1 and ESMPIdentifierType.BDXR2 - use the new EBDXRIdentifierType.BDXR1 and EBDXRIdentifierType.BDXR2 of bdxr-id instead.
They are contributed to IdentifierFactoryTypeRegistry via the new BDXRIdentifierFactoryTypeProviderSPI, the same way DBNAlliance already does it
- Breaking API change Removed the
CIdentifier.getURIEncoded (...) and CIdentifier.getURIPercentEncoded (...) overloads that take a com.helger.xsds.bdxr.smp1.* or a com.helger.xsds.ccts.cct.schemamodule.IdentifierType argument.
Use BDXR1IdentifierHelper.getURIEncoded (...) / getURIPercentEncoded (...) and BDXR2IdentifierHelper.getURIEncoded (...) / getURIPercentEncoded (...) of bdxr-id instead
- Breaking API change Removed the
SimpleParticipantIdentifier.wrap (...), SimpleDocumentTypeIdentifier.wrap (...) and SimpleProcessIdentifier.wrap (...) overloads that take a com.helger.xsds.bdxr.smp1.* or a com.helger.xsds.ccts.cct.schemamodule.IdentifierType argument.
Use BDXR1IdentifierHelper.wrapAsSimple*Identifier (...) and BDXR2IdentifierHelper.wrapAsSimple*Identifier (...) of bdxr-id instead.
The overloads taking a com.helger.xsds.peppol.id1.* argument are unchanged
- Breaking API change The micro type converter SPI was split along the new module boundaries -
MicroTypeConverterRegistrar_peppol_id now only registers the Peppol identifiers, the new MicroTypeConverterRegistrar_edelivery_id registers the Simple* identifiers and the new MicroTypeConverterRegistrar_bdxr_id registers the OASIS BDXR identifiers.
Nothing changes for a user that has all three submodules on the class path
- The NAPTR lookup in
AbstractBDXLURLProvider.getSMPURIOfParticipant now uses an absolute DNS name, so that the DNS search path of the operating system is no longer applied to it.
Previously an unresolvable participant lead to one additional DNS query per search entry of the operating system resolver configuration, each of which could run into the full DNS timeout.
The return value of getDNSNameOfParticipant is unchanged and still contains no trailing dot
- Deprecated
IPeppolURLProvider in favour of IBDXLURLProvider
v12.10.0 - 2026-09-06
- Removed the dependency of the module
peppol-commons onto ph-bc and therefore onto Bouncy Castle.
The main source code of peppol-commons does not reference Bouncy Castle at all - the provider neutral ph-security of ph-commons 12.4.0 is sufficient to load the Peppol trust stores.
If you need to read the BCFKS trust stores, you need to add ph-bc (or Bouncy Castle) to your project explicitly.
The modules dbnalliance-commons and hredelivery-commons still depend on ph-bc.
See PR #81 - thx @gregjotau
- The Peppol MLS 1.0.1 Schematron is now shipped as a precompiled XSLT (
external/schematron/peppol-mls-1.0.1.xslt), so PeppolMLSValidator no longer needs to convert the Schematron to XSLT at runtime, which speeds up the first validation significantly.
Therefore the module peppol-mls now requires ph-schematron-xslt instead of ph-schematron-isosch at runtime - the latter is only used as a test dependency, where the new test testPrecompiledSchematron asserts that the precompiled XSLT creates exactly the same SVRL output as the original .sch file.
The ph-schematron-maven-plugin execution that creates the XSLT is contained in peppol-mls/pom.xml but is commented out - it only needs to be enabled if the .sch file changes.
See PR #83 - thx @gregjotau
- Breaking API change Removed the Peppol MLS 1.0.0 Schematron - the method
PeppolMLSValidator.getSchematronMLS_100 (), the constant PeppolMLSValidator.SCH_MLS_100_PATH and the resource external/schematron/old/peppol-mls-1.0.0.sch were removed.
The method was deprecated since v12.1.1 - use PeppolMLSValidator.getSchematronMLS_101 () instead.
v12.9.0 - 2026-08-30
- Added the new submodule
peppol-id-checks.
It contains checks and derivations on top of the peppol-id data structures that require dependencies peppol-id itself deliberately does not have.
- Added the new class
PeppolParticipantCountryHelper in the new module peppol-id-checks, to determine the country of a Peppol participant identifier that uses the default scheme iso6523-actorid-upis.
The mapping is derived from EPredefinedParticipantIdentifierScheme - every scheme that is bound to a single country maps all its participants onto that country.
For the four schemes that carry the country inside the identifier value the value is evaluated instead: GLN (0088) and GS1 (0209) via the GS1 prefix (using EGS1Prefix from ph-masterdata), IBAN (9918) via the leading country code and EU VAT (9912) via the VAT prefix, where EL is mapped onto GR and XI onto GB.
- Breaking API change Moved
IdentifierValidator, IParticipantIdentifierValidatorSPI and ParticipantIdentifierValidatorNorwayOrgNumber from module peppol-id (package com.helger.peppolid.peppol.validator) to the new module peppol-id-checks (package com.helger.peppolid.checks.validator).
The name of the SPI descriptor file in META-INF/services changed accordingly, so custom implementations need to rename their descriptor file as well.
- Added the new class
ParticipantIdentifierValidatorBelgium in module peppol-id-checks, that validates the Belgian enterprise numbers (0208) and the Belgian VAT numbers (9925).
Both schemes carry the same 10 digit CBE number - the first digit is 0 or 1 (the 1 range was opened when the 0 range was exhausted) and the last 2 digits are the check digits 97 - (first 8 digits modulo 97), as verified by VATINSyntaxChecker.isValidVATIN_BE from ph-masterdata.
Scheme 0208 contains the plain number and must not carry the leading VAT country code BE, whereas scheme 9925 contains the VAT number and must carry it.
The prefix is evaluated case insensitively, because Peppol identifier values are commonly stored in lower case.
Note that IdentifierValidator.isValidParticipantIdentifier previously accepted every 0208 and 9925 value, because no validation rules were registered for them.
This is a pure syntax check - whether an enterprise with that number is actually registered can only be answered by the CBE register, which requires a remote lookup.
- Breaking API change The method
IParticipantIdentifierValidatorSPI.isValueValid takes the issuing agency ID as the new first parameter, so that a single implementation can apply different rules per supported issuing agency.
Previously only the identifier value was passed in, and an implementation supporting more than one issuing agency could not tell them apart.
- Breaking API change Removed the method
PeppolParticipantIdentifier.isSemanticallyValid (), because it referenced IdentifierValidator which now resides in the module peppol-id-checks that depends on peppol-id.
Use IdentifierValidator.isValidParticipantIdentifier (aParticipantID) from the module peppol-id-checks instead.
- The module
peppol-commons now requires ph-masterdata 8.2.1 for the new submodule peppol-id-checks.
- Unified the license declaration of all submodules to Apache 2.0.
The Maven POMs of
peppol-commons, peppol-id, peppol-id-datatypes, peppol-sml-client and peppol-smp-client as well as the parent POM still declared MPL 2.0, contradicting the source file headers and the repository LICENSE file.
The LICENSE files contained in the JARs of peppol-id, peppol-smp-datatypes, peppol-sml-client and peppol-smp-client were updated accordingly.
See issue #82
v12.8.1 - 2026-08-19
- Added the new class
PeppolEndUserHelper in module peppol-id, to determine a unique End User ID from a participant identifier, as it is needed for the Peppol End User Statistics Report (EUSR).
Using the participant identifier as the End User ID is only a mediocre simplification, because several countries have multiple identifier schemes running in parallel that all identify the same End User.
Therefore a list of extensible mapping rules (see the new interface IPeppolEndUserIDMapping and the new class PeppolEndUserIDMapping) is applied, before the identifier is converted to the End User ID String.
By default the Belgian VAT numbers (9925) are mapped onto the Belgian enterprise numbers (0208) by removing the leading country code BE, the German VAT numbers (9930) are mapped onto the German Electronic Business Address numbers (0246) and the removed Finnish OVT identifiers (0037) are mapped onto the Finnish OVT codes (0216) by adding the fixed OVT prefix 0037 and removing an optional hyphen from the Business ID.
Additional mappings can be registered via PeppolEndUserHelper.registerMapping and the default mappings can be removed.
Independent of the mappings, all identifiers are unified via the identifier factory in use, so that a different casing of an identifier value no longer leads to different End User IDs.
See issue #80
v12.8.0 - 2026-08-12
- Added the new SMP client exception
SMPClientSMPUnavailableException that replaces the misleadingly named SMPClientParticipantNotFoundException.
The latter was never thrown because a Peppol participant does not exist - a participant is registered as soon as the SML created its DNS NAPTR record, and errors of that phase are reported via SMPDNSResolutionException (see error code PARTICIPANT_NOT_REGISTERED).
It was only thrown if the SMP host name could not be resolved or if the socket connection to the SMP failed, so it always meant “the SMP of a registered participant is currently unavailable”.
SMPClientParticipantNotFoundException is deprecated and SMPClientSMPUnavailableException derives from it, so existing catch blocks keep working.
- An SMP connection that runs into a timeout (
SocketTimeoutException and therefore also ConnectTimeoutException) is now converted to SMPClientSMPUnavailableException as well.
Previously it ended up in the generic SMPClientException, even though a refused connection to the same SMP was treated as a specific error.
- Backwards incompatible change:
getServiceGroupOrNull and getServiceMetadataOrNull of SMPClientReadOnly and BDXR2ClientReadOnly no longer return null if the SMP could not be contacted - they now throw SMPClientSMPUnavailableException.
Previously an SMP outage was indistinguishable from an HTTP 404 answer, so a temporary infrastructure problem looked like “the receiver does not support this document type”.
Only a real HTTP 404 leads to null now.
This makes both clients behave like BDXRClientReadOnly, which never swallowed this error.
v12.7.0 - 2026-08-04
- Requires at least ph-commons 12.3.4
- Updated the Mozilla NSS trust store to the current version
- Fixed
CachingSMPClientReadOnly to actually cache in the typical usage scenario.
The cached objects are no longer stored per client instance but in the new shareable class SMPClientCache, that is based on ManualCache of ph-commons.
All cache keys contain the SMP host URI, so a single cache instance can be shared between arbitrary many clients, participants and SMP hosts.
If no specific cache is assigned via the new method setCache, the shared default cache SMPClientCache.getDefaultInstance () is used.
It can be replaced globally via
README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论