// // Definitions for schema: http://web.service.mailarchiver.serpro/ // schema1.xsd // // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}faultContext // function web_service_mailarchiver_serpro__faultContext () { this.typeMarker = 'web_service_mailarchiver_serpro__faultContext'; this._ctxEntry = []; } // // accessor is web_service_mailarchiver_serpro__faultContext.prototype.getCtxEntry // element get for ctxEntry // - element type is {http://web.service.mailarchiver.serpro/}faultContextEntry // - required element // - array // - nillable // // element set for ctxEntry // setter function is is web_service_mailarchiver_serpro__faultContext.prototype.setCtxEntry // function web_service_mailarchiver_serpro__faultContext_getCtxEntry() { return this._ctxEntry;} web_service_mailarchiver_serpro__faultContext.prototype.getCtxEntry = web_service_mailarchiver_serpro__faultContext_getCtxEntry; function web_service_mailarchiver_serpro__faultContext_setCtxEntry(value) { this._ctxEntry = value;} web_service_mailarchiver_serpro__faultContext.prototype.setCtxEntry = web_service_mailarchiver_serpro__faultContext_setCtxEntry; // // Serialize {http://web.service.mailarchiver.serpro/}faultContext // function web_service_mailarchiver_serpro__faultContext_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._ctxEntry != null) { for (var ax = 0;ax < this._ctxEntry.length;ax ++) { if (this._ctxEntry[ax] == null) { xml = xml + ''; } else { xml = xml + this._ctxEntry[ax].serialize(cxfjsutils, 'ctxEntry', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__faultContext.prototype.serialize = web_service_mailarchiver_serpro__faultContext_serialize; function web_service_mailarchiver_serpro__faultContext_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__faultContext(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing ctxEntry'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'ctxEntry')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__faultContextEntry_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'ctxEntry')); newobject.setCtxEntry(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}Fault // function web_service_mailarchiver_serpro__Fault () { this.typeMarker = 'web_service_mailarchiver_serpro__Fault'; this._soapFaultCode = null; this._soapFaultSubCode = null; this._soapFaultString = null; this._soapFaultActor = null; this._context = null; this._stackTrace = null; this._causeClass = null; this._causeMessage = null; this._causeStackTrace = null; } // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultCode // element get for soapFaultCode // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for soapFaultCode // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultCode // function web_service_mailarchiver_serpro__Fault_getSoapFaultCode() { return this._soapFaultCode;} web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultCode = web_service_mailarchiver_serpro__Fault_getSoapFaultCode; function web_service_mailarchiver_serpro__Fault_setSoapFaultCode(value) { this._soapFaultCode = value;} web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultCode = web_service_mailarchiver_serpro__Fault_setSoapFaultCode; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultSubCode // element get for soapFaultSubCode // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for soapFaultSubCode // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultSubCode // function web_service_mailarchiver_serpro__Fault_getSoapFaultSubCode() { return this._soapFaultSubCode;} web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultSubCode = web_service_mailarchiver_serpro__Fault_getSoapFaultSubCode; function web_service_mailarchiver_serpro__Fault_setSoapFaultSubCode(value) { this._soapFaultSubCode = value;} web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultSubCode = web_service_mailarchiver_serpro__Fault_setSoapFaultSubCode; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultString // element get for soapFaultString // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for soapFaultString // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultString // function web_service_mailarchiver_serpro__Fault_getSoapFaultString() { return this._soapFaultString;} web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultString = web_service_mailarchiver_serpro__Fault_getSoapFaultString; function web_service_mailarchiver_serpro__Fault_setSoapFaultString(value) { this._soapFaultString = value;} web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultString = web_service_mailarchiver_serpro__Fault_setSoapFaultString; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultActor // element get for soapFaultActor // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for soapFaultActor // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultActor // function web_service_mailarchiver_serpro__Fault_getSoapFaultActor() { return this._soapFaultActor;} web_service_mailarchiver_serpro__Fault.prototype.getSoapFaultActor = web_service_mailarchiver_serpro__Fault_getSoapFaultActor; function web_service_mailarchiver_serpro__Fault_setSoapFaultActor(value) { this._soapFaultActor = value;} web_service_mailarchiver_serpro__Fault.prototype.setSoapFaultActor = web_service_mailarchiver_serpro__Fault_setSoapFaultActor; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getContext // element get for context // - element type is {http://web.service.mailarchiver.serpro/}faultContext // - optional element // // element set for context // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setContext // function web_service_mailarchiver_serpro__Fault_getContext() { return this._context;} web_service_mailarchiver_serpro__Fault.prototype.getContext = web_service_mailarchiver_serpro__Fault_getContext; function web_service_mailarchiver_serpro__Fault_setContext(value) { this._context = value;} web_service_mailarchiver_serpro__Fault.prototype.setContext = web_service_mailarchiver_serpro__Fault_setContext; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getStackTrace // element get for stackTrace // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for stackTrace // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setStackTrace // function web_service_mailarchiver_serpro__Fault_getStackTrace() { return this._stackTrace;} web_service_mailarchiver_serpro__Fault.prototype.getStackTrace = web_service_mailarchiver_serpro__Fault_getStackTrace; function web_service_mailarchiver_serpro__Fault_setStackTrace(value) { this._stackTrace = value;} web_service_mailarchiver_serpro__Fault.prototype.setStackTrace = web_service_mailarchiver_serpro__Fault_setStackTrace; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getCauseClass // element get for causeClass // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for causeClass // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setCauseClass // function web_service_mailarchiver_serpro__Fault_getCauseClass() { return this._causeClass;} web_service_mailarchiver_serpro__Fault.prototype.getCauseClass = web_service_mailarchiver_serpro__Fault_getCauseClass; function web_service_mailarchiver_serpro__Fault_setCauseClass(value) { this._causeClass = value;} web_service_mailarchiver_serpro__Fault.prototype.setCauseClass = web_service_mailarchiver_serpro__Fault_setCauseClass; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getCauseMessage // element get for causeMessage // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for causeMessage // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setCauseMessage // function web_service_mailarchiver_serpro__Fault_getCauseMessage() { return this._causeMessage;} web_service_mailarchiver_serpro__Fault.prototype.getCauseMessage = web_service_mailarchiver_serpro__Fault_getCauseMessage; function web_service_mailarchiver_serpro__Fault_setCauseMessage(value) { this._causeMessage = value;} web_service_mailarchiver_serpro__Fault.prototype.setCauseMessage = web_service_mailarchiver_serpro__Fault_setCauseMessage; // // accessor is web_service_mailarchiver_serpro__Fault.prototype.getCauseStackTrace // element get for causeStackTrace // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for causeStackTrace // setter function is is web_service_mailarchiver_serpro__Fault.prototype.setCauseStackTrace // function web_service_mailarchiver_serpro__Fault_getCauseStackTrace() { return this._causeStackTrace;} web_service_mailarchiver_serpro__Fault.prototype.getCauseStackTrace = web_service_mailarchiver_serpro__Fault_getCauseStackTrace; function web_service_mailarchiver_serpro__Fault_setCauseStackTrace(value) { this._causeStackTrace = value;} web_service_mailarchiver_serpro__Fault.prototype.setCauseStackTrace = web_service_mailarchiver_serpro__Fault_setCauseStackTrace; // // Serialize {http://web.service.mailarchiver.serpro/}Fault // function web_service_mailarchiver_serpro__Fault_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._soapFaultCode != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultCode); xml = xml + ''; } } // block for local variables { if (this._soapFaultSubCode != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultSubCode); xml = xml + ''; } } // block for local variables { if (this._soapFaultString != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultString); xml = xml + ''; } } // block for local variables { if (this._soapFaultActor != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultActor); xml = xml + ''; } } // block for local variables { if (this._context != null) { xml = xml + this._context.serialize(cxfjsutils, 'context', null); } } // block for local variables { if (this._stackTrace != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._stackTrace); xml = xml + ''; } } // block for local variables { if (this._causeClass != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._causeClass); xml = xml + ''; } } // block for local variables { if (this._causeMessage != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._causeMessage); xml = xml + ''; } } // block for local variables { if (this._causeStackTrace != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._causeStackTrace); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__Fault.prototype.serialize = web_service_mailarchiver_serpro__Fault_serialize; function web_service_mailarchiver_serpro__Fault_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__Fault(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing soapFaultCode'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'soapFaultCode')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setSoapFaultCode(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing soapFaultSubCode'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'soapFaultSubCode')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setSoapFaultSubCode(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing soapFaultString'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'soapFaultString')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setSoapFaultString(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing soapFaultActor'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'soapFaultActor')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setSoapFaultActor(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing context'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'context')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { item = web_service_mailarchiver_serpro__faultContext_deserialize(cxfjsutils, curElement); } newobject.setContext(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing stackTrace'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setStackTrace(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing causeClass'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'causeClass')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setCauseClass(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing causeMessage'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'causeMessage')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setCauseMessage(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing causeStackTrace'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'causeStackTrace')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setCauseStackTrace(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tSession // function web_service_mailarchiver_serpro__tSession () { this.typeMarker = 'web_service_mailarchiver_serpro__tSession'; this._expiration = 0; this._id = null; this._permissions = 0; } // // accessor is web_service_mailarchiver_serpro__tSession.prototype.getExpiration // element get for expiration // - element type is {http://www.w3.org/2001/XMLSchema}long // - required element // // element set for expiration // setter function is is web_service_mailarchiver_serpro__tSession.prototype.setExpiration // function web_service_mailarchiver_serpro__tSession_getExpiration() { return this._expiration;} web_service_mailarchiver_serpro__tSession.prototype.getExpiration = web_service_mailarchiver_serpro__tSession_getExpiration; function web_service_mailarchiver_serpro__tSession_setExpiration(value) { this._expiration = value;} web_service_mailarchiver_serpro__tSession.prototype.setExpiration = web_service_mailarchiver_serpro__tSession_setExpiration; // // accessor is web_service_mailarchiver_serpro__tSession.prototype.getId // element get for id // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for id // setter function is is web_service_mailarchiver_serpro__tSession.prototype.setId // function web_service_mailarchiver_serpro__tSession_getId() { return this._id;} web_service_mailarchiver_serpro__tSession.prototype.getId = web_service_mailarchiver_serpro__tSession_getId; function web_service_mailarchiver_serpro__tSession_setId(value) { this._id = value;} web_service_mailarchiver_serpro__tSession.prototype.setId = web_service_mailarchiver_serpro__tSession_setId; // // accessor is web_service_mailarchiver_serpro__tSession.prototype.getPermissions // element get for permissions // - element type is {http://www.w3.org/2001/XMLSchema}long // - required element // // element set for permissions // setter function is is web_service_mailarchiver_serpro__tSession.prototype.setPermissions // function web_service_mailarchiver_serpro__tSession_getPermissions() { return this._permissions;} web_service_mailarchiver_serpro__tSession.prototype.getPermissions = web_service_mailarchiver_serpro__tSession_getPermissions; function web_service_mailarchiver_serpro__tSession_setPermissions(value) { this._permissions = value;} web_service_mailarchiver_serpro__tSession.prototype.setPermissions = web_service_mailarchiver_serpro__tSession_setPermissions; // // Serialize {http://web.service.mailarchiver.serpro/}tSession // function web_service_mailarchiver_serpro__tSession_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._expiration); xml = xml + ''; } // block for local variables { if (this._id != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._id); xml = xml + ''; } } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._permissions); xml = xml + ''; } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tSession.prototype.serialize = web_service_mailarchiver_serpro__tSession_serialize; function web_service_mailarchiver_serpro__tSession_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tSession(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing expiration'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setExpiration(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing id'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'id')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing permissions'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setPermissions(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}serviceFault // function web_service_mailarchiver_serpro__serviceFault () { this.typeMarker = 'web_service_mailarchiver_serpro__serviceFault'; this._stackTrace = []; } // // accessor is web_service_mailarchiver_serpro__serviceFault.prototype.getStackTrace // element get for stackTrace // - element type is {http://web.service.mailarchiver.serpro/}stackTraceElement // - required element // - array // - nillable // // element set for stackTrace // setter function is is web_service_mailarchiver_serpro__serviceFault.prototype.setStackTrace // function web_service_mailarchiver_serpro__serviceFault_getStackTrace() { return this._stackTrace;} web_service_mailarchiver_serpro__serviceFault.prototype.getStackTrace = web_service_mailarchiver_serpro__serviceFault_getStackTrace; function web_service_mailarchiver_serpro__serviceFault_setStackTrace(value) { this._stackTrace = value;} web_service_mailarchiver_serpro__serviceFault.prototype.setStackTrace = web_service_mailarchiver_serpro__serviceFault_setStackTrace; // // Serialize {http://web.service.mailarchiver.serpro/}serviceFault // function web_service_mailarchiver_serpro__serviceFault_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._stackTrace != null) { for (var ax = 0;ax < this._stackTrace.length;ax ++) { if (this._stackTrace[ax] == null) { xml = xml + ''; } else { xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__serviceFault.prototype.serialize = web_service_mailarchiver_serpro__serviceFault_serialize; function web_service_mailarchiver_serpro__serviceFault_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__serviceFault(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing stackTrace'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__stackTraceElement_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')); newobject.setStackTrace(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tAttachment // function web_service_mailarchiver_serpro__tAttachment () { this.typeMarker = 'web_service_mailarchiver_serpro__tAttachment'; this._contentType = null; this._id = null; this._name = null; this._size = 0; } // // accessor is web_service_mailarchiver_serpro__tAttachment.prototype.getContentType // element get for contentType // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for contentType // setter function is is web_service_mailarchiver_serpro__tAttachment.prototype.setContentType // function web_service_mailarchiver_serpro__tAttachment_getContentType() { return this._contentType;} web_service_mailarchiver_serpro__tAttachment.prototype.getContentType = web_service_mailarchiver_serpro__tAttachment_getContentType; function web_service_mailarchiver_serpro__tAttachment_setContentType(value) { this._contentType = value;} web_service_mailarchiver_serpro__tAttachment.prototype.setContentType = web_service_mailarchiver_serpro__tAttachment_setContentType; // // accessor is web_service_mailarchiver_serpro__tAttachment.prototype.getId // element get for id // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for id // setter function is is web_service_mailarchiver_serpro__tAttachment.prototype.setId // function web_service_mailarchiver_serpro__tAttachment_getId() { return this._id;} web_service_mailarchiver_serpro__tAttachment.prototype.getId = web_service_mailarchiver_serpro__tAttachment_getId; function web_service_mailarchiver_serpro__tAttachment_setId(value) { this._id = value;} web_service_mailarchiver_serpro__tAttachment.prototype.setId = web_service_mailarchiver_serpro__tAttachment_setId; // // accessor is web_service_mailarchiver_serpro__tAttachment.prototype.getName // element get for name // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for name // setter function is is web_service_mailarchiver_serpro__tAttachment.prototype.setName // function web_service_mailarchiver_serpro__tAttachment_getName() { return this._name;} web_service_mailarchiver_serpro__tAttachment.prototype.getName = web_service_mailarchiver_serpro__tAttachment_getName; function web_service_mailarchiver_serpro__tAttachment_setName(value) { this._name = value;} web_service_mailarchiver_serpro__tAttachment.prototype.setName = web_service_mailarchiver_serpro__tAttachment_setName; // // accessor is web_service_mailarchiver_serpro__tAttachment.prototype.getSize // element get for size // - element type is {http://www.w3.org/2001/XMLSchema}long // - required element // // element set for size // setter function is is web_service_mailarchiver_serpro__tAttachment.prototype.setSize // function web_service_mailarchiver_serpro__tAttachment_getSize() { return this._size;} web_service_mailarchiver_serpro__tAttachment.prototype.getSize = web_service_mailarchiver_serpro__tAttachment_getSize; function web_service_mailarchiver_serpro__tAttachment_setSize(value) { this._size = value;} web_service_mailarchiver_serpro__tAttachment.prototype.setSize = web_service_mailarchiver_serpro__tAttachment_setSize; // // Serialize {http://web.service.mailarchiver.serpro/}tAttachment // function web_service_mailarchiver_serpro__tAttachment_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._contentType != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._contentType); xml = xml + ''; } } // block for local variables { if (this._id != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._id); xml = xml + ''; } } // block for local variables { if (this._name != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._name); xml = xml + ''; } } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._size); xml = xml + ''; } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tAttachment.prototype.serialize = web_service_mailarchiver_serpro__tAttachment_serialize; function web_service_mailarchiver_serpro__tAttachment_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tAttachment(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing contentType'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'contentType')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setContentType(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing id'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'id')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing name'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'name')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setName(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing size'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setSize(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}faultContextEntry // function web_service_mailarchiver_serpro__faultContextEntry () { this.typeMarker = 'web_service_mailarchiver_serpro__faultContextEntry'; this._key = null; this._value = null; } // // accessor is web_service_mailarchiver_serpro__faultContextEntry.prototype.getKey // element get for key // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for key // setter function is is web_service_mailarchiver_serpro__faultContextEntry.prototype.setKey // function web_service_mailarchiver_serpro__faultContextEntry_getKey() { return this._key;} web_service_mailarchiver_serpro__faultContextEntry.prototype.getKey = web_service_mailarchiver_serpro__faultContextEntry_getKey; function web_service_mailarchiver_serpro__faultContextEntry_setKey(value) { this._key = value;} web_service_mailarchiver_serpro__faultContextEntry.prototype.setKey = web_service_mailarchiver_serpro__faultContextEntry_setKey; // // accessor is web_service_mailarchiver_serpro__faultContextEntry.prototype.getValue // element get for value // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for value // setter function is is web_service_mailarchiver_serpro__faultContextEntry.prototype.setValue // function web_service_mailarchiver_serpro__faultContextEntry_getValue() { return this._value;} web_service_mailarchiver_serpro__faultContextEntry.prototype.getValue = web_service_mailarchiver_serpro__faultContextEntry_getValue; function web_service_mailarchiver_serpro__faultContextEntry_setValue(value) { this._value = value;} web_service_mailarchiver_serpro__faultContextEntry.prototype.setValue = web_service_mailarchiver_serpro__faultContextEntry_setValue; // // Serialize {http://web.service.mailarchiver.serpro/}faultContextEntry // function web_service_mailarchiver_serpro__faultContextEntry_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._key != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._key); xml = xml + ''; } } // block for local variables { if (this._value != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._value); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__faultContextEntry.prototype.serialize = web_service_mailarchiver_serpro__faultContextEntry_serialize; function web_service_mailarchiver_serpro__faultContextEntry_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__faultContextEntry(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing key'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'key')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setKey(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing value'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'value')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setValue(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tMessage // function web_service_mailarchiver_serpro__tMessage () { this.typeMarker = 'web_service_mailarchiver_serpro__tMessage'; this._attachments = null; this._date = null; this._flags = null; this._folderId = null; this._folderPath = null; this._from = null; this._id = null; this._size = 0; this._subject = null; this._to = null; } // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getAttachments // element get for attachments // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for attachments // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setAttachments // function web_service_mailarchiver_serpro__tMessage_getAttachments() { return this._attachments;} web_service_mailarchiver_serpro__tMessage.prototype.getAttachments = web_service_mailarchiver_serpro__tMessage_getAttachments; function web_service_mailarchiver_serpro__tMessage_setAttachments(value) { this._attachments = value;} web_service_mailarchiver_serpro__tMessage.prototype.setAttachments = web_service_mailarchiver_serpro__tMessage_setAttachments; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getDate // element get for date // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for date // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setDate // function web_service_mailarchiver_serpro__tMessage_getDate() { return this._date;} web_service_mailarchiver_serpro__tMessage.prototype.getDate = web_service_mailarchiver_serpro__tMessage_getDate; function web_service_mailarchiver_serpro__tMessage_setDate(value) { this._date = value;} web_service_mailarchiver_serpro__tMessage.prototype.setDate = web_service_mailarchiver_serpro__tMessage_setDate; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getFlags // element get for flags // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for flags // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setFlags // function web_service_mailarchiver_serpro__tMessage_getFlags() { return this._flags;} web_service_mailarchiver_serpro__tMessage.prototype.getFlags = web_service_mailarchiver_serpro__tMessage_getFlags; function web_service_mailarchiver_serpro__tMessage_setFlags(value) { this._flags = value;} web_service_mailarchiver_serpro__tMessage.prototype.setFlags = web_service_mailarchiver_serpro__tMessage_setFlags; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getFolderId // element get for folderId // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for folderId // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setFolderId // function web_service_mailarchiver_serpro__tMessage_getFolderId() { return this._folderId;} web_service_mailarchiver_serpro__tMessage.prototype.getFolderId = web_service_mailarchiver_serpro__tMessage_getFolderId; function web_service_mailarchiver_serpro__tMessage_setFolderId(value) { this._folderId = value;} web_service_mailarchiver_serpro__tMessage.prototype.setFolderId = web_service_mailarchiver_serpro__tMessage_setFolderId; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getFolderPath // element get for folderPath // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for folderPath // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setFolderPath // function web_service_mailarchiver_serpro__tMessage_getFolderPath() { return this._folderPath;} web_service_mailarchiver_serpro__tMessage.prototype.getFolderPath = web_service_mailarchiver_serpro__tMessage_getFolderPath; function web_service_mailarchiver_serpro__tMessage_setFolderPath(value) { this._folderPath = value;} web_service_mailarchiver_serpro__tMessage.prototype.setFolderPath = web_service_mailarchiver_serpro__tMessage_setFolderPath; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getFrom // element get for from // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for from // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setFrom // function web_service_mailarchiver_serpro__tMessage_getFrom() { return this._from;} web_service_mailarchiver_serpro__tMessage.prototype.getFrom = web_service_mailarchiver_serpro__tMessage_getFrom; function web_service_mailarchiver_serpro__tMessage_setFrom(value) { this._from = value;} web_service_mailarchiver_serpro__tMessage.prototype.setFrom = web_service_mailarchiver_serpro__tMessage_setFrom; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getId // element get for id // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for id // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setId // function web_service_mailarchiver_serpro__tMessage_getId() { return this._id;} web_service_mailarchiver_serpro__tMessage.prototype.getId = web_service_mailarchiver_serpro__tMessage_getId; function web_service_mailarchiver_serpro__tMessage_setId(value) { this._id = value;} web_service_mailarchiver_serpro__tMessage.prototype.setId = web_service_mailarchiver_serpro__tMessage_setId; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getSize // element get for size // - element type is {http://www.w3.org/2001/XMLSchema}long // - required element // // element set for size // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setSize // function web_service_mailarchiver_serpro__tMessage_getSize() { return this._size;} web_service_mailarchiver_serpro__tMessage.prototype.getSize = web_service_mailarchiver_serpro__tMessage_getSize; function web_service_mailarchiver_serpro__tMessage_setSize(value) { this._size = value;} web_service_mailarchiver_serpro__tMessage.prototype.setSize = web_service_mailarchiver_serpro__tMessage_setSize; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getSubject // element get for subject // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for subject // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setSubject // function web_service_mailarchiver_serpro__tMessage_getSubject() { return this._subject;} web_service_mailarchiver_serpro__tMessage.prototype.getSubject = web_service_mailarchiver_serpro__tMessage_getSubject; function web_service_mailarchiver_serpro__tMessage_setSubject(value) { this._subject = value;} web_service_mailarchiver_serpro__tMessage.prototype.setSubject = web_service_mailarchiver_serpro__tMessage_setSubject; // // accessor is web_service_mailarchiver_serpro__tMessage.prototype.getTo // element get for to // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for to // setter function is is web_service_mailarchiver_serpro__tMessage.prototype.setTo // function web_service_mailarchiver_serpro__tMessage_getTo() { return this._to;} web_service_mailarchiver_serpro__tMessage.prototype.getTo = web_service_mailarchiver_serpro__tMessage_getTo; function web_service_mailarchiver_serpro__tMessage_setTo(value) { this._to = value;} web_service_mailarchiver_serpro__tMessage.prototype.setTo = web_service_mailarchiver_serpro__tMessage_setTo; // // Serialize {http://web.service.mailarchiver.serpro/}tMessage // function web_service_mailarchiver_serpro__tMessage_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._attachments != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._attachments); xml = xml + ''; } } // block for local variables { if (this._date != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._date); xml = xml + ''; } } // block for local variables { if (this._flags != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._flags); xml = xml + ''; } } // block for local variables { if (this._folderId != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._folderId); xml = xml + ''; } } // block for local variables { if (this._folderPath != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._folderPath); xml = xml + ''; } } // block for local variables { if (this._from != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._from); xml = xml + ''; } } // block for local variables { if (this._id != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._id); xml = xml + ''; } } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._size); xml = xml + ''; } // block for local variables { if (this._subject != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._subject); xml = xml + ''; } } // block for local variables { if (this._to != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._to); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tMessage.prototype.serialize = web_service_mailarchiver_serpro__tMessage_serialize; function web_service_mailarchiver_serpro__tMessage_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tMessage(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing attachments'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'attachments')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setAttachments(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing date'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'date')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setDate(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing flags'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'flags')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setFlags(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing folderId'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'folderId')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setFolderId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing folderPath'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'folderPath')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setFolderPath(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing from'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'from')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setFrom(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing id'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'id')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing size'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setSize(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing subject'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'subject')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setSubject(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing to'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'to')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setTo(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tMessageArray // function web_service_mailarchiver_serpro__tMessageArray () { this.typeMarker = 'web_service_mailarchiver_serpro__tMessageArray'; this._item = []; } // // accessor is web_service_mailarchiver_serpro__tMessageArray.prototype.getItem // element get for item // - element type is {http://web.service.mailarchiver.serpro/}tMessage // - required element // - array // - nillable // // element set for item // setter function is is web_service_mailarchiver_serpro__tMessageArray.prototype.setItem // function web_service_mailarchiver_serpro__tMessageArray_getItem() { return this._item;} web_service_mailarchiver_serpro__tMessageArray.prototype.getItem = web_service_mailarchiver_serpro__tMessageArray_getItem; function web_service_mailarchiver_serpro__tMessageArray_setItem(value) { this._item = value;} web_service_mailarchiver_serpro__tMessageArray.prototype.setItem = web_service_mailarchiver_serpro__tMessageArray_setItem; // // Serialize {http://web.service.mailarchiver.serpro/}tMessageArray // function web_service_mailarchiver_serpro__tMessageArray_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._item != null) { for (var ax = 0;ax < this._item.length;ax ++) { if (this._item[ax] == null) { xml = xml + ''; } else { xml = xml + this._item[ax].serialize(cxfjsutils, 'item', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tMessageArray.prototype.serialize = web_service_mailarchiver_serpro__tMessageArray_serialize; function web_service_mailarchiver_serpro__tMessageArray_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tMessageArray(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing item'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__tMessage_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')); newobject.setItem(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tFolderArray // function web_service_mailarchiver_serpro__tFolderArray () { this.typeMarker = 'web_service_mailarchiver_serpro__tFolderArray'; this._item = []; } // // accessor is web_service_mailarchiver_serpro__tFolderArray.prototype.getItem // element get for item // - element type is {http://web.service.mailarchiver.serpro/}tFolder // - required element // - array // - nillable // // element set for item // setter function is is web_service_mailarchiver_serpro__tFolderArray.prototype.setItem // function web_service_mailarchiver_serpro__tFolderArray_getItem() { return this._item;} web_service_mailarchiver_serpro__tFolderArray.prototype.getItem = web_service_mailarchiver_serpro__tFolderArray_getItem; function web_service_mailarchiver_serpro__tFolderArray_setItem(value) { this._item = value;} web_service_mailarchiver_serpro__tFolderArray.prototype.setItem = web_service_mailarchiver_serpro__tFolderArray_setItem; // // Serialize {http://web.service.mailarchiver.serpro/}tFolderArray // function web_service_mailarchiver_serpro__tFolderArray_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._item != null) { for (var ax = 0;ax < this._item.length;ax ++) { if (this._item[ax] == null) { xml = xml + ''; } else { xml = xml + this._item[ax].serialize(cxfjsutils, 'item', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tFolderArray.prototype.serialize = web_service_mailarchiver_serpro__tFolderArray_serialize; function web_service_mailarchiver_serpro__tFolderArray_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tFolderArray(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing item'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')); newobject.setItem(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}throwable // function web_service_mailarchiver_serpro__throwable () { this.typeMarker = 'web_service_mailarchiver_serpro__throwable'; this._stackTrace = []; } // // accessor is web_service_mailarchiver_serpro__throwable.prototype.getStackTrace // element get for stackTrace // - element type is {http://web.service.mailarchiver.serpro/}stackTraceElement // - required element // - array // - nillable // // element set for stackTrace // setter function is is web_service_mailarchiver_serpro__throwable.prototype.setStackTrace // function web_service_mailarchiver_serpro__throwable_getStackTrace() { return this._stackTrace;} web_service_mailarchiver_serpro__throwable.prototype.getStackTrace = web_service_mailarchiver_serpro__throwable_getStackTrace; function web_service_mailarchiver_serpro__throwable_setStackTrace(value) { this._stackTrace = value;} web_service_mailarchiver_serpro__throwable.prototype.setStackTrace = web_service_mailarchiver_serpro__throwable_setStackTrace; // // Serialize {http://web.service.mailarchiver.serpro/}throwable // function web_service_mailarchiver_serpro__throwable_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._stackTrace != null) { for (var ax = 0;ax < this._stackTrace.length;ax ++) { if (this._stackTrace[ax] == null) { xml = xml + ''; } else { xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__throwable.prototype.serialize = web_service_mailarchiver_serpro__throwable_serialize; function web_service_mailarchiver_serpro__throwable_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__throwable(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing stackTrace'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__stackTraceElement_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')); newobject.setStackTrace(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}stackTraceElement // function web_service_mailarchiver_serpro__stackTraceElement () { this.typeMarker = 'web_service_mailarchiver_serpro__stackTraceElement'; } // // Serialize {http://web.service.mailarchiver.serpro/}stackTraceElement // function web_service_mailarchiver_serpro__stackTraceElement_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__stackTraceElement.prototype.serialize = web_service_mailarchiver_serpro__stackTraceElement_serialize; function web_service_mailarchiver_serpro__stackTraceElement_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__stackTraceElement(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tAttachmentArray // function web_service_mailarchiver_serpro__tAttachmentArray () { this.typeMarker = 'web_service_mailarchiver_serpro__tAttachmentArray'; this._item = []; } // // accessor is web_service_mailarchiver_serpro__tAttachmentArray.prototype.getItem // element get for item // - element type is {http://web.service.mailarchiver.serpro/}tAttachment // - required element // - array // - nillable // // element set for item // setter function is is web_service_mailarchiver_serpro__tAttachmentArray.prototype.setItem // function web_service_mailarchiver_serpro__tAttachmentArray_getItem() { return this._item;} web_service_mailarchiver_serpro__tAttachmentArray.prototype.getItem = web_service_mailarchiver_serpro__tAttachmentArray_getItem; function web_service_mailarchiver_serpro__tAttachmentArray_setItem(value) { this._item = value;} web_service_mailarchiver_serpro__tAttachmentArray.prototype.setItem = web_service_mailarchiver_serpro__tAttachmentArray_setItem; // // Serialize {http://web.service.mailarchiver.serpro/}tAttachmentArray // function web_service_mailarchiver_serpro__tAttachmentArray_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._item != null) { for (var ax = 0;ax < this._item.length;ax ++) { if (this._item[ax] == null) { xml = xml + ''; } else { xml = xml + this._item[ax].serialize(cxfjsutils, 'item', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tAttachmentArray.prototype.serialize = web_service_mailarchiver_serpro__tAttachmentArray_serialize; function web_service_mailarchiver_serpro__tAttachmentArray_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tAttachmentArray(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing item'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__tAttachment_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')); newobject.setItem(item); var item = null; } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}tFolder // function web_service_mailarchiver_serpro__tFolder () { this.typeMarker = 'web_service_mailarchiver_serpro__tFolder'; this._folderCount = 0; this._id = null; this._messageCount = 0; this._name = null; this._parentId = null; this._path = null; } // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getFolderCount // element get for folderCount // - element type is {http://www.w3.org/2001/XMLSchema}int // - required element // // element set for folderCount // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setFolderCount // function web_service_mailarchiver_serpro__tFolder_getFolderCount() { return this._folderCount;} web_service_mailarchiver_serpro__tFolder.prototype.getFolderCount = web_service_mailarchiver_serpro__tFolder_getFolderCount; function web_service_mailarchiver_serpro__tFolder_setFolderCount(value) { this._folderCount = value;} web_service_mailarchiver_serpro__tFolder.prototype.setFolderCount = web_service_mailarchiver_serpro__tFolder_setFolderCount; // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getId // element get for id // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for id // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setId // function web_service_mailarchiver_serpro__tFolder_getId() { return this._id;} web_service_mailarchiver_serpro__tFolder.prototype.getId = web_service_mailarchiver_serpro__tFolder_getId; function web_service_mailarchiver_serpro__tFolder_setId(value) { this._id = value;} web_service_mailarchiver_serpro__tFolder.prototype.setId = web_service_mailarchiver_serpro__tFolder_setId; // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getMessageCount // element get for messageCount // - element type is {http://www.w3.org/2001/XMLSchema}int // - required element // // element set for messageCount // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setMessageCount // function web_service_mailarchiver_serpro__tFolder_getMessageCount() { return this._messageCount;} web_service_mailarchiver_serpro__tFolder.prototype.getMessageCount = web_service_mailarchiver_serpro__tFolder_getMessageCount; function web_service_mailarchiver_serpro__tFolder_setMessageCount(value) { this._messageCount = value;} web_service_mailarchiver_serpro__tFolder.prototype.setMessageCount = web_service_mailarchiver_serpro__tFolder_setMessageCount; // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getName // element get for name // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for name // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setName // function web_service_mailarchiver_serpro__tFolder_getName() { return this._name;} web_service_mailarchiver_serpro__tFolder.prototype.getName = web_service_mailarchiver_serpro__tFolder_getName; function web_service_mailarchiver_serpro__tFolder_setName(value) { this._name = value;} web_service_mailarchiver_serpro__tFolder.prototype.setName = web_service_mailarchiver_serpro__tFolder_setName; // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getParentId // element get for parentId // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for parentId // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setParentId // function web_service_mailarchiver_serpro__tFolder_getParentId() { return this._parentId;} web_service_mailarchiver_serpro__tFolder.prototype.getParentId = web_service_mailarchiver_serpro__tFolder_getParentId; function web_service_mailarchiver_serpro__tFolder_setParentId(value) { this._parentId = value;} web_service_mailarchiver_serpro__tFolder.prototype.setParentId = web_service_mailarchiver_serpro__tFolder_setParentId; // // accessor is web_service_mailarchiver_serpro__tFolder.prototype.getPath // element get for path // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for path // setter function is is web_service_mailarchiver_serpro__tFolder.prototype.setPath // function web_service_mailarchiver_serpro__tFolder_getPath() { return this._path;} web_service_mailarchiver_serpro__tFolder.prototype.getPath = web_service_mailarchiver_serpro__tFolder_getPath; function web_service_mailarchiver_serpro__tFolder_setPath(value) { this._path = value;} web_service_mailarchiver_serpro__tFolder.prototype.setPath = web_service_mailarchiver_serpro__tFolder_setPath; // // Serialize {http://web.service.mailarchiver.serpro/}tFolder // function web_service_mailarchiver_serpro__tFolder_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._folderCount); xml = xml + ''; } // block for local variables { if (this._id != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._id); xml = xml + ''; } } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._messageCount); xml = xml + ''; } // block for local variables { if (this._name != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._name); xml = xml + ''; } } // block for local variables { if (this._parentId != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._parentId); xml = xml + ''; } } // block for local variables { if (this._path != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._path); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__tFolder.prototype.serialize = web_service_mailarchiver_serpro__tFolder_serialize; function web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__tFolder(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing folderCount'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setFolderCount(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing id'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'id')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing messageCount'); var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = parseInt(value); } newobject.setMessageCount(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing name'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'name')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setName(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing parentId'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'parentId')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setParentId(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing path'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'path')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setPath(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}exception // function web_service_mailarchiver_serpro__exception () { this.typeMarker = 'web_service_mailarchiver_serpro__exception'; this._stackTrace = []; } // // accessor is web_service_mailarchiver_serpro__exception.prototype.getStackTrace // element get for stackTrace // - element type is {http://web.service.mailarchiver.serpro/}stackTraceElement // - required element // - array // - nillable // // element set for stackTrace // setter function is is web_service_mailarchiver_serpro__exception.prototype.setStackTrace // function web_service_mailarchiver_serpro__exception_getStackTrace() { return this._stackTrace;} web_service_mailarchiver_serpro__exception.prototype.getStackTrace = web_service_mailarchiver_serpro__exception_getStackTrace; function web_service_mailarchiver_serpro__exception_setStackTrace(value) { this._stackTrace = value;} web_service_mailarchiver_serpro__exception.prototype.setStackTrace = web_service_mailarchiver_serpro__exception_setStackTrace; // // Serialize {http://web.service.mailarchiver.serpro/}exception // function web_service_mailarchiver_serpro__exception_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._stackTrace != null) { for (var ax = 0;ax < this._stackTrace.length;ax ++) { if (this._stackTrace[ax] == null) { xml = xml + ''; } else { xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null); } } } } if (elementName != null) { xml = xml + ''; } return xml; } web_service_mailarchiver_serpro__exception.prototype.serialize = web_service_mailarchiver_serpro__exception_serialize; function web_service_mailarchiver_serpro__exception_deserialize (cxfjsutils, element) { var newobject = new web_service_mailarchiver_serpro__exception(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing stackTrace'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { arrayItem = web_service_mailarchiver_serpro__stackTraceElement_deserialize(cxfjsutils, curElement); } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'stackTrace')); newobject.setStackTrace(item); var item = null; } return newobject; } // // Definitions for schema: http://jaxb.dev.java.net/array // schema2.xsd // // // Constructor for XML Schema item {http://jaxb.dev.java.net/array}stringArray // function jaxb_dev_java_net_array_stringArray () { this.typeMarker = 'jaxb_dev_java_net_array_stringArray'; this._item = []; } // // accessor is jaxb_dev_java_net_array_stringArray.prototype.getItem // element get for item // - element type is {http://www.w3.org/2001/XMLSchema}string // - required element // - array // - nillable // // element set for item // setter function is is jaxb_dev_java_net_array_stringArray.prototype.setItem // function jaxb_dev_java_net_array_stringArray_getItem() { return this._item;} jaxb_dev_java_net_array_stringArray.prototype.getItem = jaxb_dev_java_net_array_stringArray_getItem; function jaxb_dev_java_net_array_stringArray_setItem(value) { this._item = value;} jaxb_dev_java_net_array_stringArray.prototype.setItem = jaxb_dev_java_net_array_stringArray_setItem; // // Serialize {http://jaxb.dev.java.net/array}stringArray // function jaxb_dev_java_net_array_stringArray_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { if (this._item != null) { for (var ax = 0;ax < this._item.length;ax ++) { if (this._item[ax] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._item[ax]); xml = xml + ''; } } } } if (elementName != null) { xml = xml + ''; } return xml; } jaxb_dev_java_net_array_stringArray.prototype.serialize = jaxb_dev_java_net_array_stringArray_serialize; function jaxb_dev_java_net_array_stringArray_deserialize (cxfjsutils, element) { var newobject = new jaxb_dev_java_net_array_stringArray(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing item'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')) { item = []; do { var arrayItem; var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); arrayItem = value; } item.push(arrayItem); curElement = cxfjsutils.getNextElementSibling(curElement); } while(curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'item')); newobject.setItem(item); var item = null; } return newobject; } // // Definitions for service: {http://web.service.mailarchiver.serpro/}ArchiveServices // // Javascript for {http://web.service.mailarchiver.serpro/}ArchiveServices function web_service_mailarchiver_serpro__ArchiveServices () { this.jsutils = new CxfApacheOrgUtil(); this.jsutils.interfaceObject = this; this.synchronous = false; this.url = 'http://127.0.0.1:5333/arcserv/ArchiveServices'; this.client = null; this.response = null; this.globalElementSerializers = []; this.globalElementDeserializers = []; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tAttachmentArray'] = web_service_mailarchiver_serpro__tAttachmentArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tAttachmentArray'] = web_service_mailarchiver_serpro__tAttachmentArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolderArray'] = web_service_mailarchiver_serpro__tFolderArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolderArray'] = web_service_mailarchiver_serpro__tFolderArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessageArray'] = web_service_mailarchiver_serpro__tMessageArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessageArray'] = web_service_mailarchiver_serpro__tMessageArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_deserialize; this.globalElementSerializers['{http://jaxb.dev.java.net/array}stringArray'] = jaxb_dev_java_net_array_stringArray_serialize; this.globalElementDeserializers['{http://jaxb.dev.java.net/array}stringArray'] = jaxb_dev_java_net_array_stringArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tAttachment'] = web_service_mailarchiver_serpro__tAttachment_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tAttachment'] = web_service_mailarchiver_serpro__tAttachment_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}faultContext'] = web_service_mailarchiver_serpro__faultContext_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}faultContext'] = web_service_mailarchiver_serpro__faultContext_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}Fault'] = web_service_mailarchiver_serpro__Fault_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tSession'] = web_service_mailarchiver_serpro__tSession_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}serviceFault'] = web_service_mailarchiver_serpro__serviceFault_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}serviceFault'] = web_service_mailarchiver_serpro__serviceFault_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tAttachment'] = web_service_mailarchiver_serpro__tAttachment_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tAttachment'] = web_service_mailarchiver_serpro__tAttachment_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}faultContextEntry'] = web_service_mailarchiver_serpro__faultContextEntry_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}faultContextEntry'] = web_service_mailarchiver_serpro__faultContextEntry_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessage'] = web_service_mailarchiver_serpro__tMessage_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tMessageArray'] = web_service_mailarchiver_serpro__tMessageArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tMessageArray'] = web_service_mailarchiver_serpro__tMessageArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolderArray'] = web_service_mailarchiver_serpro__tFolderArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolderArray'] = web_service_mailarchiver_serpro__tFolderArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}throwable'] = web_service_mailarchiver_serpro__throwable_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}throwable'] = web_service_mailarchiver_serpro__throwable_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}stackTraceElement'] = web_service_mailarchiver_serpro__stackTraceElement_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}stackTraceElement'] = web_service_mailarchiver_serpro__stackTraceElement_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tAttachmentArray'] = web_service_mailarchiver_serpro__tAttachmentArray_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tAttachmentArray'] = web_service_mailarchiver_serpro__tAttachmentArray_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}tFolder'] = web_service_mailarchiver_serpro__tFolder_deserialize; this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}exception'] = web_service_mailarchiver_serpro__exception_serialize; this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}exception'] = web_service_mailarchiver_serpro__exception_deserialize; this.globalElementSerializers['{http://jaxb.dev.java.net/array}stringArray'] = jaxb_dev_java_net_array_stringArray_serialize; this.globalElementDeserializers['{http://jaxb.dev.java.net/array}stringArray'] = jaxb_dev_java_net_array_stringArray_deserialize; } function web_service_mailarchiver_serpro__logout_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__logoutResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__logoutResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.logout_onsuccess = web_service_mailarchiver_serpro__logout_op_onsuccess; function web_service_mailarchiver_serpro__logout_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.logout_onerror = web_service_mailarchiver_serpro__logout_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}logout // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__logout_op(successCallback, errorCallback, sessionId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(1); args[0] = sessionId; xml = this.logout_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.logout_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.logout_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.logout = web_service_mailarchiver_serpro__logout_op; function web_service_mailarchiver_serpro__logout_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.logout_serializeInput = web_service_mailarchiver_serpro__logout_serializeInput; function web_service_mailarchiver_serpro__logoutResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__listMessages_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__listMessagesResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__listMessagesResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listMessages_onsuccess = web_service_mailarchiver_serpro__listMessages_op_onsuccess; function web_service_mailarchiver_serpro__listMessages_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listMessages_onerror = web_service_mailarchiver_serpro__listMessages_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}listMessages // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__listMessages_op(successCallback, errorCallback, sessionId, queryConfig) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = queryConfig; xml = this.listMessages_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.listMessages_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.listMessages_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.listMessages = web_service_mailarchiver_serpro__listMessages_op; function web_service_mailarchiver_serpro__listMessages_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.listMessages_serializeInput = web_service_mailarchiver_serpro__listMessages_serializeInput; function web_service_mailarchiver_serpro__listMessagesResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tMessageArray_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__setMessagesFlags_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.setMessagesFlags_onsuccess = web_service_mailarchiver_serpro__setMessagesFlags_op_onsuccess; function web_service_mailarchiver_serpro__setMessagesFlags_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.setMessagesFlags_onerror = web_service_mailarchiver_serpro__setMessagesFlags_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}setMessagesFlags // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - jaxb_dev_java_net_array_stringArray // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__setMessagesFlags_op(successCallback, errorCallback, sessionId, messagesId, flags) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = messagesId; args[2] = flags; xml = this.setMessagesFlags_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.setMessagesFlags_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.setMessagesFlags_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.setMessagesFlags = web_service_mailarchiver_serpro__setMessagesFlags_op; function web_service_mailarchiver_serpro__setMessagesFlags_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + args[1].serialize(cxfjsutils, 'jns0:messagesId', null); } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.setMessagesFlags_serializeInput = web_service_mailarchiver_serpro__setMessagesFlags_serializeInput; function web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__listFolders_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__listFoldersResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__listFoldersResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listFolders_onsuccess = web_service_mailarchiver_serpro__listFolders_op_onsuccess; function web_service_mailarchiver_serpro__listFolders_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listFolders_onerror = web_service_mailarchiver_serpro__listFolders_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}listFolders // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__listFolders_op(successCallback, errorCallback, sessionId, folderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = folderId; xml = this.listFolders_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.listFolders_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.listFolders_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.listFolders = web_service_mailarchiver_serpro__listFolders_op; function web_service_mailarchiver_serpro__listFolders_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.listFolders_serializeInput = web_service_mailarchiver_serpro__listFolders_serializeInput; function web_service_mailarchiver_serpro__listFoldersResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolderArray_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__createFolder_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__createFolderResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__createFolderResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.createFolder_onsuccess = web_service_mailarchiver_serpro__createFolder_op_onsuccess; function web_service_mailarchiver_serpro__createFolder_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.createFolder_onerror = web_service_mailarchiver_serpro__createFolder_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}createFolder // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__createFolder_op(successCallback, errorCallback, sessionId, parentFolderId, name) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = parentFolderId; args[2] = name; xml = this.createFolder_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.createFolder_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.createFolder_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.createFolder = web_service_mailarchiver_serpro__createFolder_op; function web_service_mailarchiver_serpro__createFolder_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.createFolder_serializeInput = web_service_mailarchiver_serpro__createFolder_serializeInput; function web_service_mailarchiver_serpro__createFolderResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__getMessageInfo_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__getMessageInfoResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__getMessageInfoResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageInfo_onsuccess = web_service_mailarchiver_serpro__getMessageInfo_op_onsuccess; function web_service_mailarchiver_serpro__getMessageInfo_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageInfo_onerror = web_service_mailarchiver_serpro__getMessageInfo_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}getMessageInfo // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__getMessageInfo_op(successCallback, errorCallback, sessionId, messageId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = messageId; xml = this.getMessageInfo_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.getMessageInfo_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.getMessageInfo_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageInfo = web_service_mailarchiver_serpro__getMessageInfo_op; function web_service_mailarchiver_serpro__getMessageInfo_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageInfo_serializeInput = web_service_mailarchiver_serpro__getMessageInfo_serializeInput; function web_service_mailarchiver_serpro__getMessageInfoResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tMessage_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__listAttachments_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__listAttachmentsResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__listAttachmentsResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listAttachments_onsuccess = web_service_mailarchiver_serpro__listAttachments_op_onsuccess; function web_service_mailarchiver_serpro__listAttachments_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.listAttachments_onerror = web_service_mailarchiver_serpro__listAttachments_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}listAttachments // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__listAttachments_op(successCallback, errorCallback, sessionId, messageId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = messageId; xml = this.listAttachments_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.listAttachments_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.listAttachments_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.listAttachments = web_service_mailarchiver_serpro__listAttachments_op; function web_service_mailarchiver_serpro__listAttachments_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.listAttachments_serializeInput = web_service_mailarchiver_serpro__listAttachments_serializeInput; function web_service_mailarchiver_serpro__listAttachmentsResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tAttachmentArray_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__getFolderInfo_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__getFolderInfoResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__getFolderInfoResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFolderInfo_onsuccess = web_service_mailarchiver_serpro__getFolderInfo_op_onsuccess; function web_service_mailarchiver_serpro__getFolderInfo_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFolderInfo_onerror = web_service_mailarchiver_serpro__getFolderInfo_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}getFolderInfo // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__getFolderInfo_op(successCallback, errorCallback, sessionId, folderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = folderId; xml = this.getFolderInfo_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.getFolderInfo_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.getFolderInfo_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFolderInfo = web_service_mailarchiver_serpro__getFolderInfo_op; function web_service_mailarchiver_serpro__getFolderInfo_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFolderInfo_serializeInput = web_service_mailarchiver_serpro__getFolderInfo_serializeInput; function web_service_mailarchiver_serpro__getFolderInfoResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__deleteFolder_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__deleteFolderResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__deleteFolderResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteFolder_onsuccess = web_service_mailarchiver_serpro__deleteFolder_op_onsuccess; function web_service_mailarchiver_serpro__deleteFolder_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteFolder_onerror = web_service_mailarchiver_serpro__deleteFolder_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}deleteFolder // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}boolean // function web_service_mailarchiver_serpro__deleteFolder_op(successCallback, errorCallback, sessionId, folderId, recursive) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = folderId; args[2] = recursive; xml = this.deleteFolder_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.deleteFolder_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.deleteFolder_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteFolder = web_service_mailarchiver_serpro__deleteFolder_op; function web_service_mailarchiver_serpro__deleteFolder_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteFolder_serializeInput = web_service_mailarchiver_serpro__deleteFolder_serializeInput; function web_service_mailarchiver_serpro__deleteFolderResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__deleteMessages_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__deleteMessagesResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__deleteMessagesResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteMessages_onsuccess = web_service_mailarchiver_serpro__deleteMessages_op_onsuccess; function web_service_mailarchiver_serpro__deleteMessages_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteMessages_onerror = web_service_mailarchiver_serpro__deleteMessages_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}deleteMessages // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - jaxb_dev_java_net_array_stringArray // function web_service_mailarchiver_serpro__deleteMessages_op(successCallback, errorCallback, sessionId, messagesId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = messagesId; xml = this.deleteMessages_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.deleteMessages_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.deleteMessages_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteMessages = web_service_mailarchiver_serpro__deleteMessages_op; function web_service_mailarchiver_serpro__deleteMessages_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + args[1].serialize(cxfjsutils, 'jns0:messagesId', null); } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.deleteMessages_serializeInput = web_service_mailarchiver_serpro__deleteMessages_serializeInput; function web_service_mailarchiver_serpro__deleteMessagesResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__getFaultInfo_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__getFaultInfoResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__getFaultInfoResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFaultInfo_onsuccess = web_service_mailarchiver_serpro__getFaultInfo_op_onsuccess; function web_service_mailarchiver_serpro__getFaultInfo_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFaultInfo_onerror = web_service_mailarchiver_serpro__getFaultInfo_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}getFaultInfo // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__getFaultInfo_op(successCallback, errorCallback, sessionId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(1); args[0] = sessionId; xml = this.getFaultInfo_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.getFaultInfo_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.getFaultInfo_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFaultInfo = web_service_mailarchiver_serpro__getFaultInfo_op; function web_service_mailarchiver_serpro__getFaultInfo_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.getFaultInfo_serializeInput = web_service_mailarchiver_serpro__getFaultInfo_serializeInput; function web_service_mailarchiver_serpro__getFaultInfoResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__Fault_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__renameFolder_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__renameFolderResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__renameFolderResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.renameFolder_onsuccess = web_service_mailarchiver_serpro__renameFolder_op_onsuccess; function web_service_mailarchiver_serpro__renameFolder_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.renameFolder_onerror = web_service_mailarchiver_serpro__renameFolder_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}renameFolder // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__renameFolder_op(successCallback, errorCallback, sessionId, folderId, newName) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = folderId; args[2] = newName; xml = this.renameFolder_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.renameFolder_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.renameFolder_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.renameFolder = web_service_mailarchiver_serpro__renameFolder_op; function web_service_mailarchiver_serpro__renameFolder_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.renameFolder_serializeInput = web_service_mailarchiver_serpro__renameFolder_serializeInput; function web_service_mailarchiver_serpro__renameFolderResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__moveMessages_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__moveMessagesResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__moveMessagesResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveMessages_onsuccess = web_service_mailarchiver_serpro__moveMessages_op_onsuccess; function web_service_mailarchiver_serpro__moveMessages_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveMessages_onerror = web_service_mailarchiver_serpro__moveMessages_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}moveMessages // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__moveMessages_op(successCallback, errorCallback, sessionId, messageId, folderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = messageId; args[2] = folderId; xml = this.moveMessages_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.moveMessages_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.moveMessages_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveMessages = web_service_mailarchiver_serpro__moveMessages_op; function web_service_mailarchiver_serpro__moveMessages_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveMessages_serializeInput = web_service_mailarchiver_serpro__moveMessages_serializeInput; function web_service_mailarchiver_serpro__moveMessagesResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__createAbsoluteFolder_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.createAbsoluteFolder_onsuccess = web_service_mailarchiver_serpro__createAbsoluteFolder_op_onsuccess; function web_service_mailarchiver_serpro__createAbsoluteFolder_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.createAbsoluteFolder_onerror = web_service_mailarchiver_serpro__createAbsoluteFolder_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}createAbsoluteFolder // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__createAbsoluteFolder_op(successCallback, errorCallback, sessionId, path) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = path; xml = this.createAbsoluteFolder_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.createAbsoluteFolder_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.createAbsoluteFolder_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.createAbsoluteFolder = web_service_mailarchiver_serpro__createAbsoluteFolder_op; function web_service_mailarchiver_serpro__createAbsoluteFolder_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.createAbsoluteFolder_serializeInput = web_service_mailarchiver_serpro__createAbsoluteFolder_serializeInput; function web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__archive_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__archiveResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__archiveResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.archive_onsuccess = web_service_mailarchiver_serpro__archive_op_onsuccess; function web_service_mailarchiver_serpro__archive_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.archive_onerror = web_service_mailarchiver_serpro__archive_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}archive // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__archive_op(successCallback, errorCallback, sessionId, message, folderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = message; args[2] = folderId; xml = this.archive_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.archive_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.archive_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.archive = web_service_mailarchiver_serpro__archive_op; function web_service_mailarchiver_serpro__archive_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.archive_serializeInput = web_service_mailarchiver_serpro__archive_serializeInput; function web_service_mailarchiver_serpro__archiveResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tMessage_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__getMessageBody_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__getMessageBodyResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__getMessageBodyResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageBody_onsuccess = web_service_mailarchiver_serpro__getMessageBody_op_onsuccess; function web_service_mailarchiver_serpro__getMessageBody_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageBody_onerror = web_service_mailarchiver_serpro__getMessageBody_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}getMessageBody // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__getMessageBody_op(successCallback, errorCallback, sessionId, messageId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = sessionId; args[1] = messageId; xml = this.getMessageBody_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.getMessageBody_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.getMessageBody_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageBody = web_service_mailarchiver_serpro__getMessageBody_op; function web_service_mailarchiver_serpro__getMessageBody_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.getMessageBody_serializeInput = web_service_mailarchiver_serpro__getMessageBody_serializeInput; function web_service_mailarchiver_serpro__getMessageBodyResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = returnText; return returnObject; } function web_service_mailarchiver_serpro__moveFolder_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__moveFolderResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__moveFolderResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveFolder_onsuccess = web_service_mailarchiver_serpro__moveFolder_op_onsuccess; function web_service_mailarchiver_serpro__moveFolder_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveFolder_onerror = web_service_mailarchiver_serpro__moveFolder_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}moveFolder // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__moveFolder_op(successCallback, errorCallback, sessionId, folderId, newParentFolderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(3); args[0] = sessionId; args[1] = folderId; args[2] = newParentFolderId; xml = this.moveFolder_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.moveFolder_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.moveFolder_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveFolder = web_service_mailarchiver_serpro__moveFolder_op; function web_service_mailarchiver_serpro__moveFolder_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } // block for local variables { if (args[2] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[2]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.moveFolder_serializeInput = web_service_mailarchiver_serpro__moveFolder_serializeInput; function web_service_mailarchiver_serpro__moveFolderResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tFolder_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__hello_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__helloResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__helloResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.hello_onsuccess = web_service_mailarchiver_serpro__hello_op_onsuccess; function web_service_mailarchiver_serpro__hello_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.hello_onerror = web_service_mailarchiver_serpro__hello_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}hello // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__hello_op(successCallback, errorCallback, guest) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(1); args[0] = guest; xml = this.hello_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.hello_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.hello_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.hello = web_service_mailarchiver_serpro__hello_op; function web_service_mailarchiver_serpro__hello_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.hello_serializeInput = web_service_mailarchiver_serpro__hello_serializeInput; function web_service_mailarchiver_serpro__helloResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = returnText; return returnObject; } function web_service_mailarchiver_serpro__copyMessages_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__copyMessagesResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__copyMessagesResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.copyMessages_onsuccess = web_service_mailarchiver_serpro__copyMessages_op_onsuccess; function web_service_mailarchiver_serpro__copyMessages_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.copyMessages_onerror = web_service_mailarchiver_serpro__copyMessages_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}copyMessages // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__copyMessages_op(successCallback, errorCallback, messageId, folderId) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = messageId; args[1] = folderId; xml = this.copyMessages_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.copyMessages_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.copyMessages_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.copyMessages = web_service_mailarchiver_serpro__copyMessages_op; function web_service_mailarchiver_serpro__copyMessages_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.copyMessages_serializeInput = web_service_mailarchiver_serpro__copyMessages_serializeInput; function web_service_mailarchiver_serpro__copyMessagesResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = parseInt(returnText); return returnObject; } function web_service_mailarchiver_serpro__login_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__loginResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__loginResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.login_onsuccess = web_service_mailarchiver_serpro__login_op_onsuccess; function web_service_mailarchiver_serpro__login_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.login_onerror = web_service_mailarchiver_serpro__login_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}login // - bare operation. Parameters: // - type {http://www.w3.org/2001/XMLSchema}string // - type {http://www.w3.org/2001/XMLSchema}string // function web_service_mailarchiver_serpro__login_op(successCallback, errorCallback, userId, password) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = userId; args[1] = password; xml = this.login_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.login_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.login_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.login = web_service_mailarchiver_serpro__login_op; function web_service_mailarchiver_serpro__login_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); // block for local variables { if (args[0] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[0]); xml = xml + ''; } } // block for local variables { if (args[1] == null) { xml = xml + ''; } else { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(args[1]); xml = xml + ''; } } xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.login_serializeInput = web_service_mailarchiver_serpro__login_serializeInput; function web_service_mailarchiver_serpro__loginResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = web_service_mailarchiver_serpro__tSession_deserialize (cxfjsutils, partElement); return returnObject; } function web_service_mailarchiver_serpro__getState_op_onsuccess(client, responseXml) { if (client.user_onsuccess) { var responseObject = null; var element = responseXml.documentElement; this.jsutils.trace('responseXml: ' + this.jsutils.traceElementName(element)); element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('first element child: ' + this.jsutils.traceElementName(element)); while (!this.jsutils.isNodeNamedNS(element, 'http://schemas.xmlsoap.org/soap/envelope/', 'Body')) { element = this.jsutils.getNextElementSibling(element); if (element == null) { throw 'No env:Body in message.' } } element = this.jsutils.getFirstElementChild(element); this.jsutils.trace('part element: ' + this.jsutils.traceElementName(element)); this.jsutils.trace('calling web_service_mailarchiver_serpro__getStateResponse_deserializeResponse'); responseObject = web_service_mailarchiver_serpro__getStateResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getState_onsuccess = web_service_mailarchiver_serpro__getState_op_onsuccess; function web_service_mailarchiver_serpro__getState_op_onerror(client) { if (client.user_onerror) { var httpStatus; var httpStatusText; try { httpStatus = client.req.status; httpStatusText = client.req.statusText; } catch(e) { httpStatus = -1; httpStatusText = 'Error opening connection to server'; } client.user_onerror(httpStatus, httpStatusText); } } web_service_mailarchiver_serpro__ArchiveServices.prototype.getState_onerror = web_service_mailarchiver_serpro__getState_op_onerror; // // Operation {http://web.service.mailarchiver.serpro/}getState // - bare operation. Parameters: // function web_service_mailarchiver_serpro__getState_op(successCallback, errorCallback) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(0); xml = this.getState_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.getState_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.getState_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } web_service_mailarchiver_serpro__ArchiveServices.prototype.getState = web_service_mailarchiver_serpro__getState_op; function web_service_mailarchiver_serpro__getState_serializeInput(cxfjsutils, args) { var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' "); xml = xml + cxfjsutils.endSoap11Message(); return xml; } web_service_mailarchiver_serpro__ArchiveServices.prototype.getState_serializeInput = web_service_mailarchiver_serpro__getState_serializeInput; function web_service_mailarchiver_serpro__getStateResponse_deserializeResponse(cxfjsutils, partElement) { var returnText = cxfjsutils.getNodeText(partElement); var returnObject = returnText; return returnObject; } function web_service_mailarchiver_serpro__ArchiveServices_web_service_mailarchiver_serpro__DefaultArchiveServicesPort () { this.url = 'http://127.0.0.1:5333/arcserv/ArchiveServices'; } web_service_mailarchiver_serpro__ArchiveServices_web_service_mailarchiver_serpro__DefaultArchiveServicesPort.prototype = new web_service_mailarchiver_serpro__ArchiveServices;