Skip to content

Does phase4 only can handle xml file? #95

Answered by phax
TMain-Tomi asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@TMain-Tomi
Comment options

@phax
Comment options

phax Aug 23, 2022
Maintainer

@phax
Comment options

phax Aug 30, 2022
Maintainer

@TMain-Tomi
Comment options

Answer selected by TMain-Tomi
Comment options

You must be logged in to vote
2 replies
@phax
Comment options

phax May 18, 2023
Maintainer

@TMain-Tomi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants