Table of Contents

Interface IAttachmentApi

Namespace
Zedal.Sdk.Apis.Diwass
Assembly
Zedal.Sdk.dll

Binär-Attachments an das DIWASS-System (WSDL: WasteAttachWebServiceV1).

public interface IAttachmentApi

Methods

GetAttachment(string, int)

Wie GetAttachment(string, ZedalCallContext), mit der Zeitgrenze in Sekunden.

GetAttachment(string, ZedalCallContext)

Lädt ein zuvor übergebenes Binär-Attachment anhand seiner DIWASS-Kennung.

SubmitAttachment(AttachmentBinaryObjectType, ZedalCallContext)

Übergibt ein Binär-Attachment und liefert die vom Server vergebene Kennung zurück.

Achtung: Über diesen Weg kann eine temporäre Kennung der Form ZEDAL_TMP_ATT_ID_<n>_<m> zurückkommen. Die trägt nur für einen Get über denselben Weg — DIWASS kennt sie nicht und lehnt sie als ATTACHMENT-NOT-FOUND ab. Eine zentrale DIWASS-Attachment-Id hat die Form <Ziffern>ATT; prüfe die Form, bevor du die Kennung als attachmentIdentifier an ein Dokument hängst.

Roh-Form, in der Aufrufer das Infotech.Zedal.Documents.V1.Diwass.Waste.Model.V1.AttachmentBinaryObjectType selbst vorbefüllen — inklusive Magic-String-type_id. Für neuen Code den Enum-Overload SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext) bevorzugen.

SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext)

Übergibt ein Binär-Attachment an DIWASS — Convenience-Form mit typsicherem AttachmentTypeId. Setzt type_id, mime_code, filename und contains_personal_data intern und ruft den Submit-Endpoint auf.