on_before_receive_attachment Event
Marks the start of receiving an attachment.
Syntax
class SOAPClientBeforeReceiveAttachmentEventParams(object): # In class SOAPClient: @property def on_before_receive_attachment() -> Callable[[SOAPClientBeforeReceiveAttachmentEventParams], None]: ... @on_before_receive_attachment.setter def on_before_receive_attachment(event_hook: Callable[[SOAPClientBeforeReceiveAttachmentEventParams], None]) -> None: ...
Remarks
This event fires for every new attachment being received from the service.
Tune up output_attachment_bytes, output_attachment_file or output_attachment_stream properties inside the event handler to indicate where the attachment content should be saved.