Skip to main content

Attachment Service

Attachments must be uploaded before the document that references them. DIWASS assigns an attachment ID which is then passed in attachmentIds arrays on Submit calls.


UploadAttachment

Uploads a file and receives a DIWASS attachment ID. SOAP with MTOM (Message Transmission Optimization Mechanism) binary encoding.

Request

<UploadAttachmentRequest>
<organizationId>ORG-UUID</organizationId>
<attachmentType>FacilityPermit</attachmentType>
<originalFilename>facility_permit_DE_2025.pdf</originalFilename>
<mimeCode>application/pdf</mimeCode>
<containsPersonalData>false</containsPersonalData>
<fileData><!-- MTOM binary ref --></fileData>
</UploadAttachmentRequest>

Response

<UploadAttachmentResponse>
<diwasskAttachmentId>ATT-DIWASS-001</diwasskAttachmentId>
</UploadAttachmentResponse>

Valid attachment types are defined in the DIWASS technical documentation (e.g. FacilityPermit, AuditReport, WasteTreatmentInformation). Use GetAttachmentTypes from the Reference Data service to retrieve the current list.


GetAttachment

Downloads an attachment by its DIWASS ID. Used when DIWASS returns attachmentIds in decisions, RFIs, or signals issued by competent authorities.

Request

<GetAttachmentRequest>
<diwasskAttachmentId>ATT-DIWASS-002</diwasskAttachmentId>
</GetAttachmentRequest>

Response

Binary file stream via MTOM.