Index | OAT homepage | OpenLink Software

OATDOCsoap

soap.js

Provides basic asynchronous XML call (AJAX) routines for use with SOAP requests.

Functions

OAT.Soap.command(url, data, callback, customHeaders)


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);


ToBeDone
- correct the code snippets above to reflect the actual effective replacement...
ToBeDone
- add Constants, Messages, Properties, OAT.Soap.abortAll() , borrowing from OAT.AJAX.*as relevant


Copyright (C) 2005-2008 OpenLink Software