Specifications
save attachment to the disk file
saveAttachment(index : Number, file-path :
String) : Boolean
saveAttachment(id : String, file-path : String) :
Boolean
set/get attachment send type: 0 - DIME
format; 1 - MIME format
setAttachmentSendType(attachment-type :
Number)
getAttachmentSendType() : Number
Working with SOAP message body, retrieving information
Since SOAP message body is a text in XML format, it is convenient to gather information from it
as from XML. There are some functions to work with SOAP message as with XML document:
returns array of elements' values specified with
name equivalent to Document's evalToNodesList,
parseBody(element-name : String) : String[
]
getNodeValue, except that elements specified by
name, not by XPath
saves extract from SOAP body specifying root
element into file on disk
saveBody(file-path : String,
root-element-name : String) : Boolean
set SOAP body element value
changeElement(element-name : String,
new-value : String)
OASIS support
This call modifies the SOAP header to include an OASIS
security header. It adds a wsse:Security element with a
addOasisSecurity ( username : String,
password : String, passwordtype :
String ) : Boolean
wsse:UsernameToken of the specified password type.
Any existing wsse:Security element is replaced by the
new element.
The following table describes the parameters and return value.
DescriptionParameter
The URL for a SOAP HTTP endpoint, e.g. http://serverName:portNumber/URIurl
An object that specifies the remote procedure name and parameters of
the XML message to send; see separate section below
request object
The SOAPAction, a URN written to an HTTP header used by firewalls and
servers to filter SOAP requests; the SOAP service description will usually
describe the SOAPAction header required, if any
action
The default is for the action to be an empty string
An object that describes the return value received by the remote procedure
call; see separate section below
response object
The username used for authenticationusername
The password used for authenticationpassword
435
Enfocus Switch 10