Replies: 1 comment
-
Hello @Upendra0 However, the builder classes are imho nicely strctured. For the Peppol client, the submodule If you already have the SBDH built yourself, you choose the If you want the SMP lookup done for you, pass in the So basically there are different ways to fill the data needed for sending so that you have the freedom of choice to do whatever you need to do. If you are missing something in particular, I am happy to add it. |
Beta Was this translation helpful? Give feedback.
-
Hi @phax,
I am using the spring boot demo project to send and receive document using AS4.
The project repository link is: https://github.com/phax/phase4/tree/master/phase4-spring-boot-demo
The builder class which is responsible to send the AS4 Message seems to be not have only one responsibility. It is not only taking an AS4 Message Payload and sending it.
It is doing other task also, for e.g.:
This violates the Single Responsibility Principle and makes difficult to manage or to change the project.
Is there a way such that i can Separate these components?
Is there a component which i can use only to send AS4 message and that component should not do anything else apart from sending the message. All the details which this component need, I will provide to it. This will make the component loosely coupled.
Beta Was this translation helpful? Give feedback.
All reactions