Replace the default Phase4PeppolServletMessageProcessorSPI #87
-
I am currently trying to send a message with an xml file as the attachment. The XML file has the element 'Nomination_Document' at the root. This causes some problems with the I have written a Custom handler for the SBD and added it to META-INF/services. It seems like this is not propegated properly, because I am getting the error:
Is it possible to replace the functionality in Phase4PeppolServletMessageProcessorSPI to allow for the custom element declaration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
For the usage with ENTSOG you cannot use the |
Beta Was this translation helpful? Give feedback.
For the usage with ENTSOG you cannot use the
phase4-peppol-servlet
orphase4-peppol-server-webapp
submodule, because it adds an additional "SPI layer" that enforces the usage of the "Standard Business Document Header" (SBDH).To retrieve "arbitrary" AS4 messages, you need to implement the
com.helger.phase4.servlet.spi.IAS4ServletMessageProcessorSPI
SPI interface that is more generic. An example is shown in the genericphase4-server-webapp
module.