phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
147 stars 48 forks source link

Better error messages #198

Closed arj03 closed 9 months ago

arj03 commented 9 months ago

Hi

I'm currently writing a AS4 sender client in python and validating it against the peppol testbed. It is quite hard to debug errors like 0003 EBMS_VALUE_INCONSISTENT. When I look at the code in this repo I can see that the actual errors seems to be logged locally (like https://github.com/phax/phase4/blob/35b37bd1077ffe6a07eb4e2a705e78ecf4697cd1/phase4-lib/src/main/java/com/helger/phase4/servlet/soap/SOAPHeaderElementProcessorExtractEbms3Messaging.java#L386), but are never transferred to the sender.

I only get: "Although the message document is well formed and schema valid, some element/attribute value is inconsistent either with the content of other element/attribute, or with the processing mode of the MSH, or with the normative requirements of the ebMS specification". So I have to look through the whole code and try to see where my message might fail.

Thanks in advance for your time. I hope this doesn't come off as too negative, I'm just trying to help the next guy trying to figure out what the error is :-)

phax commented 9 months ago

Thanks for taking the time and suggesting how to improve it :)

phax commented 9 months ago

Part of the upcoming 2.6.0 release - I unified a lot of the error handling code that a lot more information should be returned.

arj03 commented 9 months ago

Amazing @phax. Thank you so much for the swift response and fix. Is the testbed updated with every release?

phax commented 9 months ago

No, unfortunately not. The testbed update will take a bite more time - it's not in my control ...