Documentation Center

HTTPTools.putXML

Description

See HTTPTools.postXML which works similar to this HTTP PUT method.

Syntax

HTTPTools .putXML (uri : String, doc : XMLDocument[, encoding : String][, callback : Function][, headers : Object]) : String

Arguments

uri
String. The uri to PUT the xmlDocument to.
doc
XMLDocument. The DOM document that will be send to the given uri.
encoding
String. The text encoding for the serialized document, e.g. "UTF-8". (Optional)
callback
Function. The function that is called when the server response is received. The function is called with a single argument, the native XMLHTTPRequest object. (Optional)
headers
Object. A list of headers to send with the request. This can be used to construct request in more specific ways for specific servers. For example {Accept: "application/json"}. (Optional)

Return Value

String. The server response body.