Soap.SOAPAttachIntf.IMimeAttachmentHandler.ProcessMultiPartForm
Delphi
procedure ProcessMultiPartForm(const ASourceStream, ADestStream: TStream; {$IFDEF NEXTGEN} const AMimeBoundary: string; {$ELSE !NEXTGEN} const AMimeBoundary: AnsiString; {$ENDIF NEXTGEN} SoapHeaders: TStrings; Attachments: TSoapDataList; const TempDir: string);
C++
virtual void __fastcall ProcessMultiPartForm(System::Classes::TStream* const ASourceStream, System::Classes::TStream* const ADestStream, const System::AnsiString AMimeBoundary, System::Classes::TStrings* SoapHeaders, TSoapDataList* Attachments, const System::UnicodeString TempDir) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Soap.SOAPAttachIntf.pas Soap.SOAPAttachIntf.hpp |
Soap.SOAPAttachIntf | IMimeAttachmentHandler |
Description
Parses a multipart form into the SOAP envelope and a list of attachments.
Call ProcessMultiPartForm to interpret a multipart form that is received by the client or server in a Web Service application. This method separates the SOAP envelope portion of the multipart form from the portions that represent attachments, and parses the headers of the SOAP envelope into a convenient string list.
ASourceStream is a stream from which ProcessMultiPartForm can read the incoming multipart form. This is the content of the incoming message.
ADestStream is a stream to which ProcessMultiPartForm writes the SOAP envelope portion of ASourceStream.
AMimeBoundary is the mime boundary string that identifies the boundaries between the parts of the multipart form. Typically, it is obtained from the headers of the incoming HTTP message whose content is the content of ASourceStream.
SoapHeaders is an existing TStrings descendant to which ProcessMultiPartForm writes the headers of the SOAP envelope portion of the multipart form. Each header is added as a string of the form HeaderName=Value.
Attachments is an empty TSoapDataList object to which ProcessMultiPartForm adds the TSoapAttachment objects that represent the attachments in the multipart form.
TempDir is the name of the directory where ProcessMultiPartForm writes the temporary files it generates for each of the attachments.