RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IObjConverter.AddAttachment Method

Stores information about a SOAP attachment so that it is included in the final message that is created.

Pascal
procedure AddAttachment(Attachment: TSOAPAttachment; const AContentId: string);
C++
__fastcall AddAttachment(TSOAPAttachment Attachment, const AnsiString AContentId);

AddAttachment stores a SOAP attachment so that it can be used to generate part of the multipart form that includes the SOAP envelope as another of its parts. 

Attachment is the attachment that should be added to the multipart form. 

AContentId is a string that uniquely identifies the attachment. It is added as a header to the part of the form that contains the attachment so that XML in the SOAP envelope can refer to the attachment. When interpreting the encoded SOAP envelope, this value is passed to the FindAttachment method so that the information in the attachment part can be used to recreate the TSOAPAttachment instance. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!