Does phase4 only can handle xml file? #95
-
Hi Philip, I find that the test cases from phase4-peppol-client only handle xml files. If I want to handle other format, how can I do? Best Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @MrLinZHui
Use hth |
Beta Was this translation helpful? Give feedback.
-
Dear @phax , I meet a doubt when I used AS4ClientUserMessage to send a signed and encrypted message. Best Regards, |
Beta Was this translation helpful? Give feedback.
Hi @MrLinZHui
phase4 is a generic solution, that can submit any kind of payload, not just XML.
phase4-peppol-client
is a specific client that is tailored to the Peppol project which mandates the usage of "StandardBusinessDocumentHeader" (SBDH) which is an XML format. That's why the peppol-cient is bound to XML.Use
Phase4Sender.builderUserMessage
as a starting point for configuring sending an "arbitrary" message. It uses the builder pattern to configured the message to be send.Use e.g.
.payload (Phase4OutgoingAttachment.builder ().data (aPayloadBytes).mimeTypeXML ())
to provide arbitrary payload with arbitrary MIME types.hth