io/ RemoteObject.js |
io/ RemoteObject.jsThis library is used to unmarshal a soap xml document into javascript objects at present it has only been used with coldfusion mx web serivces - though it should work with all type of services Copyright2004 Rob Rohan (robr@gmai l.com) All rights reserved ohan Relatedutil/Collections.js xml/XmlDocument.js io/Gateway.js Summary
RemoteObjectLoader
This provides a wrapper for RemoteObjectFactory that accepts a listener/event handler to be registered that will be called when the object is ready. Much nicer than the setTimeout method. NoteThis may move to another file in the future Parameters
RemoteObjectFactory. createObjectThis is a monster method. Basically this is what loads the web service into a JS Object. This returns nothing - what you’ll need to do is poll getObject to get the object once its done cooking Parameters
DefaultHandlerThe default handler. Used to set variables to what the web service returns. You can write your own, but you have to handle the soap parsing... unless you want the raw soap response Parameters
Summary
|
the library version
var REMOTE_OBJECT_VERSION
the default handler uses this as a scratch pad var (not thread safe!)
var __dfh__variable
function __gateway__map_from_struct( frag, xmldoc, nstruct )
This provides a wrapper for RemoteObjectFactory that accepts a listener/event handler to be registered that will be called when the object is ready.
function RemoteObjectLoader( url, handler, async )