Replies: 1 comment 1 reply
-
@Kinchkun thanks for starting that dicussion. I understand your request, but it cannot be fulfilled generically because of the following reason:
<StandardBusinessDocument xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<StandardBusinessDocumentHeader>
<!-- etc. -->
</StandardBusinessDocumentHeader>
<ubl:Invoice>
<!-- etc. -->
</ubl:Invoice>
</StandardBusinessDocument> ==> Therefore, if you "extract" the payload from the SBDH you would receive an invalid XML document because the So you should be aware, that XML is NOT a text format, but an application format (that's why the preferred MIME type is |
Beta Was this translation helpful? Give feedback.
-
Cheers,
thank you for your work :)
I am developing a PEPPOL Access Point (AP) which stores retrieved documents in Amazon S3. For this, I am implementing the following interface:
I only want the payload and not the SBD itself.
What I don't like about this solution is that we retrieve the SBD bytes, parse it into an XML tree, and then serialize part of the tree back into bytes.
Is there a way to access the original payload bytes? The serialization and deserialization process slightly alters the original message, not in a meaningful way, but I need to store the byte-wise exact original message somehow.
Kind regards,
Beta Was this translation helpful? Give feedback.
All reactions