Salesforce

WSConsumerAttachmentAdd (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

WSConsumerAttachmentAdd (Magic xpa 3.x)

Sends SOAP attachments that are not defined in the WSDL, when an Invoke Web Service operation is issued.

A consumer Web Service program can add attachments to the SOAP response using the WsConsumerAttachmentAdd function.

This function attaches the content of a BLOB variable to a SOAP request.

Syntax:

WsConsumerAttachmentAdd (Attachment)

Parameters:

Attachment: The BLOB variable to be attached to the message.

Returns:

An alphanumeric Universal Unique Identifier value (UUID) automatically generated by the outgoing attachment, which can be used as a reference in the returned XML document.

The function returns a Null value when the attached BLOB variable is empty.

Example:

WsConsumerAttachmentAdd (A),

where A is a BLOB variable, returns a UUID that can be sent in the XML message.

Note:

This function should be added to the code before the Invoke Web S operation. When the Invoke Web S operation is executed, all attachments added using this function, before the call, will be sent with the SOAP request. Outgoing attachments are automatically discarded after each Invoke Web S operation.

Exceptions:

This function is not supported as a parameter in the Invoke Web Service Lite operation.

See also:

WsConsumerAttachmentGet

How Do I Work with Web Service Attachments?

Reference
Attachment 
Attachment