Comments (4)
I think that does help me indeed. So all I need to to is validate the document in my SPI and generate an exception to report the validation errors.
Thank you very much for your help, responsiveness and clear-cut answers!
from phase4.
Well, on the receiver side, you basically have an SPI that you need to implement (IAS4ServletMessageProcessorSPI
) - inside that SPI you can validate whatever you like.
Or what kind of validation did you have in mind?
from phase4.
I would like to validate the Business Message (Invoice) and only proceed if there were no errors. Else I would like to notify the sender. I saw that on the phase4 client we can register a validation configuration based on the phive engine that allows the client to verify if the invoice is well formed and complies with the peppol rules. I would like to do the same in the receiver and report back to the sender if there are errors.
from phase4.
Okay, in that case you perform the validation in your SPI implementation of IPhase4PeppolIncomingSBDHandlerSPI
(assuming you use this).
If the validation fails, you just throw an exception with the respective error message details.
Additionally you need to make sure, that the your SPI implementation overrides boolean exceptionTranslatesToAS4Error ()
and returns true
.
Does that help you?
from phase4.
Related Issues (20)
- aProcessingErrorMessages in handleIncomingSBD HOT 6
- Sending to wildcard HOT 1
- aAPCertificate parameter in IPhase4PeppolCertificateCheckResultHandler is Nullable HOT 1
- Peppol Reporting missing C1 country code for incoming items HOT 1
- Receiving WildCard Error HOT 5
- DBNA profile HOT 2
- PMode.Leg[1].BusinessInfo.Service 'null' is unsupported HOT 12
- Enhancement request : make status of used version available via a status page or rest endpoint
- Idea: Add marks to log, so it is easier to read for human HOT 3
- Validating NRRs against sent or received messages HOT 1
- Sending Einvoice to SG ABN resulting in Invalid Certificate Error HOT 7
- Better AS4 error message when duplicate MessageId has been detected HOT 2
- Give access to the HTTP error response
- Provide a possibility to exclude stack traces from AS4 error messages HOT 1
- Not working with brainpool curve based encryption required for BDEW profile
- Bad Request: Error validating incoming AS4 UserMessage with the profile DBN Alliance following errors are present: [PMode.Leg[1].Security.X509EncryptionAlgorithm must use the value 'aes256-gcm' instead of 'aes128-gcm'] HOT 7
- Add DBNA pendant to phase4-peppol-servlet
- Trust anchor for certification path not found error for Incoming AS4 messages HOT 3
- Dynamically set responder address for incoming messages
- BDEW profile: Curve not supported: brainpoolP256r1 (1.3.36.3.3.2.8.1.1.7) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phase4.