Class AjxSoapDoc
Method Detail
<static>
{AjxSoapDoc}
AjxSoapDoc.create(method, namespace, namespaceId, soapURI)
Creates a SOAP document.
<static>
{AjxSoapDoc}
AjxSoapDoc.createFromDom(doc)
Creates from a DOM object.
<static>
{AjxSoapDoc}
AjxSoapDoc.createFromXml(xml)
Creates from an XML object.
{Element}
createHeaderElement()
Creates a header element.
{Element}
getBody()
Gets the body.
{Document}
getDoc()
Gets the document.
{Element}
getHeader()
Gets the header.
{string}
getMethod()
Gets the method.
{string}
getXml()
Gets the XML.
{Element}
set(name, value, parent, namespace)
Creates arguments to pass within the envelope. "value" can be a JS object
or a scalar (string, number, etc.).
When "value" is a JS object, set() will call itself recursively in order to create a complex data structure. Don't pass a "way-too-complicated" object ("value" should only contain references to simple JS objects, or better put, hashes--don't include a reference to the "window" object as it will kill your browser). Example: soapDoc.set("user_auth", { user_name : "foo", password : "bar" });will create an XML like this under the method tag: <user_auth> <user_name>foo</user_name> <password>bar</password> </user_auth>Of course, nesting other hashes is allowed and will work as expected. NOTE: you can pass null for "name", in which case "value" is expected to be an object whose properties will be created directly under the method el.
|
||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:30 GMT-0400 (EDT)
|