CSSEAIMimeMsgOut

This object represents an output MIME message, open for writing. This object provides SetArgument, CreateXMLPart, SetAttachmentSource, and CopyAttachment methods:

SetArgument() Method

This method sets the value of a business service argument. The following information presents the parameters for this method.

Syntax

SetArgument(name, value)

Parameter Description

name

The name of an argument in the active business service.

value

The string value corresponding to the argument named by the name parameter.

Returns

Not applicable

Usage

You can call the SetArgument method to establish the value of a given output argument for the business service method invocation.

CreateXMLPart() Method

This method is similar to XPSCreateRootElement. See XPSCreateRootElement(). CreateXMLPart() Method creates an XML MIME part and adds it to the MIME document. The property set representing the XML root element is returned. The property set returned can be populated using the XML Property Set functions. See XML Property Set Functions.The following table presents the parameter for this method.

Syntax

CreateXMLPart(xmlRootTagName)

Parameter Description

xmlRootTagName

The name you want to supply as the root element name in the XML document.

Returns

Property set

SetAttachmentSource() Method

This method establishes the source object from which to copy attachment objects. The source object must be a CSSEAIIntMsgIn, CSSEAIMimeMsgIn, or other object implementing the GetAttachmentByCID method.The following table presents the parameter for this method.

Syntax

SetAttachmentSource(source)

Parameter Description

source

The attachment source.

CopyAttachment() Method

This method copies an attachment from the attachment source to the output MIME message object. The attachment is referenced by the MIME Content Identifier (CID). The attachment copy, a property set, is returned. The attachment source must be established by calling CSSEAIMimeMsgOut.SetAttachmentSource before calling this method. The following table presents the parameter for this method.

Syntax

CopyAttachment(cid)

Parameter Description

cid

MIME Content Identifier of the attachment to copy.

Returns

Property set. This method returns null if the attachment source does not contain an attachment with the specified CID.