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
154 stars 47 forks source link

Asynchronous processing that triggers an error message #4

Closed phax closed 5 years ago

phax commented 7 years ago

Assume a two-way "push push" message wants to do the first push with an "ErrorMessage". Does the second "push" need a "UserMessage" or can a signal message be pushed?

phax commented 7 years ago

HttpRequest1 -> UserMsg HttpResponse1 -> ErrorMessage -> second leg never executed

HttpRequest1 -> UserMsg HttpResponse1 -> Receipt

HttpRequest2 -> UserMsg HttpResponse2 -> ErrorMsg --> resend of HttpRequest2 or human intervention?

phax commented 7 years ago

Rewrite: For two-way messaging I have the following flow of messages: REQ1 + RESP1 -> REQ2 + RESP2

The above example handles ErrorMessages in RESP1 and RESP2. But what if want to send an error message in REQ2 because some processing between RESP1 and REQ2 lead to an error condition?

sfieten commented 7 years ago

Hi Philip, an error that occurs in the processing between RESP1 and REQ2 will be a business error, as the AS4 processing has finished after RESP1. So REQ2 would be a AS4 User Message that contains the business error as payload.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.