WSUtil.js

The WSUtil.js file provides the following public methods and properties:

Method or Property Description
defaultCacheExpiry: Number, or false (default value is 300) The number of seconds after which entries in the cache expire if no cacheExpiryconfig option is set. Set this to false for infinite expiry time (that is, it never expires).
incomingSoap: String A copy of the most-recently received message.
outgoingSoap: String A copy of the most-recently sent message.
pre-processor: Function (default value is null) This function is called whenever a Web services returns, prior to the callback function being invoked. The preprocessing function can return true to prevent the callback being invoked. The config option settings can override this value for individual calls.
exceptionHandler: Function, or false (default value is null) If the service provider returns an exception, the RIA framework invokes the exception handler rather than the normal callback. The config option settings can override this value for individual calls. If no override is provided, the exceptionHandler is called. Set this to false, to ignore the exception, and null to use the default exception handler, which displays a simple message box reporting the error to the user.
convertTextToXMLDOM(String): DomNode Parses the provided string and returns a Document Object Model (DOM) of the XML.
xmlSerialize(DomNode): String Takes a Document Object Model of the XML and serializes it into text.
shallowCopy(Object): Object Makes a copy of an object.
flushCache( ) Clears out all cache entries.
createRequest( … ) Internal method, which is used by the RIA framework and should not be invoked directly.