{"id":30223555,"url":"https://github.com/phax/phase4-peppol-standalone-eb2b","last_synced_at":"2025-08-14T12:13:12.305Z","repository":{"id":273843070,"uuid":"921056282","full_name":"phax/phase4-peppol-standalone-eb2b","owner":"phax","description":"Standalone Peppol phase4 setup for eB2B","archived":false,"fork":false,"pushed_at":"2025-05-10T22:05:10.000Z","size":170,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T23:18:17.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-23T08:57:52.000Z","updated_at":"2025-05-10T22:05:13.000Z","dependencies_parsed_at":"2025-02-06T20:21:40.280Z","dependency_job_id":"0d03af65-8919-4265-b335-6513c3e85aa0","html_url":"https://github.com/phax/phase4-peppol-standalone-eb2b","commit_stats":null,"previous_names":["phax/phase4-peppol-standalone-eb2b"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phax/phase4-peppol-standalone-eb2b","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fphase4-peppol-standalone-eb2b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fphase4-peppol-standalone-eb2b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fphase4-peppol-standalone-eb2b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fphase4-peppol-standalone-eb2b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phax","download_url":"https://codeload.github.com/phax/phase4-peppol-standalone-eb2b/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fphase4-peppol-standalone-eb2b/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270416676,"owners_count":24579831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-14T12:13:11.339Z","updated_at":"2025-08-14T12:13:12.222Z","avatar_url":"https://github.com/phax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Archived and replaced\n\n**The eB2B specific version was integrated into https://github.com/phax/phase4-peppol-standalone - therefore this project is archived.**\n\n# Standalone Peppol phase4 eB2B\n\nThis an example standalone implementation of [phase4](https://github.com/phax/phase4) for the Peppol Network.\n\nThis is the pendant of https://github.com/phax/phase4-peppol-standalone for eB2B. See the OpenPeppol Confluence https://openpeppol.atlassian.net/wiki/spaces/EIP/pages/3571482627/eB2B+Starting+Environment+Documents for details.\n\nThis is a demo application and NOT ready for production use.\nUse it as a template to add your own code.\n\n**Note:** because it is demo code, no releases are created - you have to modify it anyway.\n\nThis project is part of my Peppol solution stack. See https://github.com/phax/peppol for other components and libraries in that area.\n\n# Primary Changes\n\nThis section highlights the changes specifically for eB2B compared to the normal \"phase4-peppol-standalone\" version (from the time of cloning):\n* The sending of production documents was removed, because there is currently no eB2B Production PKI\n* The sender builder uses a different CA via `.peppolAP_CAChecker (PeppolCertificateChecker.peppolTestEb2bAP ())` - same for normal sending and SBDH sending\n* In class `ServletConfig` the CA `PeppolCertificateChecker.peppolTestEb2bAP ()` should be used to test our own certificate\n* In class `ServletConfig` the `Phase4PeppolDefaultReceiverConfiguration.setAPCAChecker (aAPCAChecker);` must also use `PeppolCertificateChecker.peppolTestEb2bAP ()`\n* In the application.properties file the following properties were changed:\n```\norg.apache.wss4j.crypto.merlin.truststore.file=truststore/2018/eb2b-ap-pilot-truststore.jks\nsmpclient.truststore.path=truststore/2018/smp-pilot-truststore.jks\n```\n\n# Functionality\n\n## Functionality Receiving\n\nBased on the Servlet technology, the application takes AS4 messages via HTTP POST to `/as4`.\n\nBy default, all valid incoming messages are handled by class `CustomPeppolIncomingSBDHandlerSPI`.\nThis class contains a `TODO` where you need to implement the stuff you want to do with incoming messages.\n\n## Functionality Sending\n\nSending is triggered via an HTTP POST request.\n\nTo send to a test endpoint (using SMK) use this URL (the SBDH is built inside):\n```\n/sendtest/{senderId}/{receiverId}/{docTypeId}/{processId}/{countryC1}\n```\n\nTo send to a test endpoint (using SMK) use this URL when the SBDH is already available (especially for Peppol Testbed):\n```\n/sendsbdhtest\n```\n\nIn both cases, the payload to send must be the XML business document (like the UBL Invoice).\nThe outcome is a simple JSON document that contains most of the relevant details on sending.\n\nTest call using the file `src\\test\\resources\\external\\example-invoice.xml` as the request body (note the URL escaping of special chars via the `%` sign):\n`http://localhost:8080/sendtest/9915:phase4-test-sender/9915:helger/urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice%23%23urn:cen.eu:en16931:2017%23compliant%23urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1/urn:fdc:peppol.eu:2017:poacc:billing:01:1.0/GB`\n\n**Note:** Documents are NOT validated internally. They need to be validated externally. See https://github.com/phax/phive and https://github.com/phax/phive-rules for this.\n\n## What is not included\n\nThe following list contains the elements not considered for this demo application:\n\n* You need your own Peppol certificate to make it work - the contained keystore is a dummy one only\n* Document validation is not included\n* Peppol Reporting is not included, as no backend connection is available\n\n# Get it up and running\n\n## Tasks\n\n1. Prepare your Peppol Access Point Key Store according to the rules described at https://github.com/phax/phoss-smp/wiki/Certificate-setup\n1. Configure your Key Store in the `application.properties` file - don't touch the Trust Store - it is part of the deployment.\n1. Set the correct value of `peppol.seatid` in the `application.properties` file\n1. Once the Peppol Certificate is configured, change the code snippet with `TODO` in file `ServletConfig` according to the comment (approx. line 192)\n1. Note that incoming Peppol messages are only logged and discarded. Edit the code in class `CustomPeppolIncomingSBDHandlerSPI` to fix it.\n1. Build and start the application (see below)  \n\n## Building\n\nThis application is based on Spring Boot 3.x and uses Apache 3.x and Java 17 to build.\n\n```\nmvn clean install\n```\n\nThe resulting Spring Boot application is afterwards available as `target/phase4-peppol-standalone-eb2b-x.y.z.jar` (`x.y.z` is the version number).\n\nAn example Docker file is also present - see `docker-build.cmd` and `docker-run.cmd` for details.\n\n## Configuration\n\nThe main configuration is done via the file `src/main/resources/application.properties`.\nYou may need to rebuild the application to have an effect.\n\n## Running\n\nIf you run it with `java -jar target/phase4-peppol-standalone-eb2b-x.y.z.jar` it will spawn a local Tomcat at port `8080` and you can access it via `http://localhost:8080`.\nIt should show a small introduction page. The `/as4` servlet itself has no user interface.\n\nIn case you run the application behind an HTTP proxy, modify the settings in the configuration file (`http.proxy.*`).\n\nIn case you don't like port 8080, also check the configuration file.\n\n---\n\nMy personal [Coding Styleguide](https://github.com/phax/meta/blob/master/CodingStyleguide.md) |\nIt is appreciated if you star the GitHub project if you like it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphax%2Fphase4-peppol-standalone-eb2b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphax%2Fphase4-peppol-standalone-eb2b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphax%2Fphase4-peppol-standalone-eb2b/lists"}