Specifications

An exception is thrown if the request object does not conform,
when the SOAP endpoint returns a SOAPFault or when there is a
failure from the underlying HTTP transport layer.
Initiates a remote procedure call (RPC) or sends an XML message
to a SOAP HTTP endpoint without waiting for a reply.
sendMessage ( url : String,
action : String )
An exception is thrown if the request object does not conform or
when there is a failure from the underlying HTTP transport layer.
Logging and debugging
Writes the SOAP message envelope (including body
and headers) to an XML file
writeToFile ( filename : String ) : Boolean
Working with attachments
Data exchange is widely used in Web Services word. SOAP message is convenient to exchange
with text data, but not convenient when exchanging large amount of data or when data is in
binary format. For such purposes SOAP protocol provides ability to attach additional data to SOAP
message. Switch SOAP class supports two types of attachments:
DIME (Direct Internet Message Encapsulation) - in this case SOAP message contains DIME
attachments, when sending the message is being sent packet in DIME format and SOAP message
header contains type of "application/dime". See
http://msdn.microsoft.com/en-us/magazine/cc188797.aspx
MIME (Multipurpose Internet Mail Extensions) - in this case SOAP message contains MIME
attachments, when sending the message is being sent in MIME format and SOAP message
header contains type of "multipart/related". See article
http://www.w3.org/TR/SOAP-attachments
add attachment to message specifying the
file name, attachment id and type values,
addAttachment(file-path : String, id : String,
type : String, chunk-size : Number)
chunk size is not used and reserved for
future use, should be 0
return number of attachments in the SOAP
message
getAttachmentsCount() : Number
return contents of attachment specified by
index "inIndex" of attachment identifier
"inID"
getAttachment(index : Number) : ByteArray
getAttachment(id : String) : ByteArray
get attachment identifier, specifying
attachment by index
getAttachmentID(index : Number) : String
return attachment type string
getAttachmentType(index : Number) : String
get index of attachment with the given
identifier
getAttachmentIndex(id : String) : Number
434
Enfocus Switch 10