Provides basic asynchronous XML call (AJAX) routines for use with SOAP requests.
Sends an HTTP request to a page url . Data to be
contained in request are specified in data . When
response arrives, callback(response) will be executed.
You may specify the following customHeaders
--
Using this call replaces this --
var options = { type:OAT.AJAX.TYPE_XML, auth:OAT.AJAX.AUTH_BASIC, async:true noSecurityCookie:false user:"username", password:"top_secret", headers: ToBeDone -- put some headers in! onerror:function(request) { alert(request.getStatus()); } onstart: onend: } var callback = function(data) { alert(data); }; OAT.AJAX.SOAP("/myfile.xml", false, callback, options);
-- with this --
var customHeaders = ToBeDone -- put some headers in! ; var callback = function(data) { alert(data); }; OAT.Soap.command("/myfile.xml", false, callback, customHeaders);