//
// Definitions for schema: http://web.service.mailarchiver.serpro/
//  schema1.xsd
//
//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}createAbsoluteFolder
//
function web_service_mailarchiver_serpro__createAbsoluteFolder () {
    this.typeMarker = 'web_service_mailarchiver_serpro__createAbsoluteFolder';
    this._sessionId = null;
    this._path = null;
}

//
// accessor is web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.setSessionId
//
function web_service_mailarchiver_serpro__createAbsoluteFolder_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.getSessionId = web_service_mailarchiver_serpro__createAbsoluteFolder_getSessionId;

function web_service_mailarchiver_serpro__createAbsoluteFolder_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.setSessionId = web_service_mailarchiver_serpro__createAbsoluteFolder_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__createAbsoluteFolder.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__createAbsoluteFolder.prototype.setPath
//
function web_service_mailarchiver_serpro__createAbsoluteFolder_getPath() { return this._path;}

web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.getPath = web_service_mailarchiver_serpro__createAbsoluteFolder_getPath;

function web_service_mailarchiver_serpro__createAbsoluteFolder_setPath(value) { this._path = value;}

web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.setPath = web_service_mailarchiver_serpro__createAbsoluteFolder_setPath;
//
// Serialize {http://web.service.mailarchiver.serpro/}createAbsoluteFolder
//
function web_service_mailarchiver_serpro__createAbsoluteFolder_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._path != null) {
      xml = xml + '<path>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._path);
      xml = xml + '</path>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__createAbsoluteFolder.prototype.serialize = web_service_mailarchiver_serpro__createAbsoluteFolder_serialize;

function web_service_mailarchiver_serpro__createAbsoluteFolder_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__createAbsoluteFolder();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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/}archiveResponse
//
function web_service_mailarchiver_serpro__archiveResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__archiveResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__archiveResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tMessage
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__archiveResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__archiveResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__archiveResponse.prototype.getReturn = web_service_mailarchiver_serpro__archiveResponse_getReturn;

function web_service_mailarchiver_serpro__archiveResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__archiveResponse.prototype.setReturn = web_service_mailarchiver_serpro__archiveResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}archiveResponse
//
function web_service_mailarchiver_serpro__archiveResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__archiveResponse.prototype.serialize = web_service_mailarchiver_serpro__archiveResponse_serialize;

function web_service_mailarchiver_serpro__archiveResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__archiveResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tMessage_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}helloResponse
//
function web_service_mailarchiver_serpro__helloResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__helloResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__helloResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__helloResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__helloResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__helloResponse.prototype.getReturn = web_service_mailarchiver_serpro__helloResponse_getReturn;

function web_service_mailarchiver_serpro__helloResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__helloResponse.prototype.setReturn = web_service_mailarchiver_serpro__helloResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}helloResponse
//
function web_service_mailarchiver_serpro__helloResponse_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._return != null) {
      xml = xml + '<return>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._return);
      xml = xml + '</return>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__helloResponse.prototype.serialize = web_service_mailarchiver_serpro__helloResponse_serialize;

function web_service_mailarchiver_serpro__helloResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__helloResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getMessageInfo
//
function web_service_mailarchiver_serpro__getMessageInfo () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getMessageInfo';
    this._sessionId = null;
    this._messageId = null;
}

//
// accessor is web_service_mailarchiver_serpro__getMessageInfo.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__getMessageInfo.prototype.setSessionId
//
function web_service_mailarchiver_serpro__getMessageInfo_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__getMessageInfo.prototype.getSessionId = web_service_mailarchiver_serpro__getMessageInfo_getSessionId;

function web_service_mailarchiver_serpro__getMessageInfo_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__getMessageInfo.prototype.setSessionId = web_service_mailarchiver_serpro__getMessageInfo_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__getMessageInfo.prototype.getMessageId
// element get for messageId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for messageId
// setter function is is web_service_mailarchiver_serpro__getMessageInfo.prototype.setMessageId
//
function web_service_mailarchiver_serpro__getMessageInfo_getMessageId() { return this._messageId;}

web_service_mailarchiver_serpro__getMessageInfo.prototype.getMessageId = web_service_mailarchiver_serpro__getMessageInfo_getMessageId;

function web_service_mailarchiver_serpro__getMessageInfo_setMessageId(value) { this._messageId = value;}

web_service_mailarchiver_serpro__getMessageInfo.prototype.setMessageId = web_service_mailarchiver_serpro__getMessageInfo_setMessageId;
//
// Serialize {http://web.service.mailarchiver.serpro/}getMessageInfo
//
function web_service_mailarchiver_serpro__getMessageInfo_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messageId != null) {
      xml = xml + '<messageId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._messageId);
      xml = xml + '</messageId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getMessageInfo.prototype.serialize = web_service_mailarchiver_serpro__getMessageInfo_serialize;

function web_service_mailarchiver_serpro__getMessageInfo_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getMessageInfo();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messageId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messageId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setMessageId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// 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 + '<ctxEntry xsi:nil=\'true\'/>';
       } else {
        xml = xml + this._ctxEntry[ax].serialize(cxfjsutils, 'ctxEntry', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}getFaultInfo
//
function web_service_mailarchiver_serpro__getFaultInfo () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getFaultInfo';
    this._sessionId = null;
}

//
// accessor is web_service_mailarchiver_serpro__getFaultInfo.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__getFaultInfo.prototype.setSessionId
//
function web_service_mailarchiver_serpro__getFaultInfo_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__getFaultInfo.prototype.getSessionId = web_service_mailarchiver_serpro__getFaultInfo_getSessionId;

function web_service_mailarchiver_serpro__getFaultInfo_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__getFaultInfo.prototype.setSessionId = web_service_mailarchiver_serpro__getFaultInfo_setSessionId;
//
// Serialize {http://web.service.mailarchiver.serpro/}getFaultInfo
//
function web_service_mailarchiver_serpro__getFaultInfo_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getFaultInfo.prototype.serialize = web_service_mailarchiver_serpro__getFaultInfo_serialize;

function web_service_mailarchiver_serpro__getFaultInfo_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getFaultInfo();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse
//
function web_service_mailarchiver_serpro__createAbsoluteFolderResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__createAbsoluteFolderResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__createAbsoluteFolderResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__createAbsoluteFolderResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__createAbsoluteFolderResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__createAbsoluteFolderResponse.prototype.getReturn = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_getReturn;

function web_service_mailarchiver_serpro__createAbsoluteFolderResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__createAbsoluteFolderResponse.prototype.setReturn = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse
//
function web_service_mailarchiver_serpro__createAbsoluteFolderResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__createAbsoluteFolderResponse.prototype.serialize = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_serialize;

function web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__createAbsoluteFolderResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}login
//
function web_service_mailarchiver_serpro__login () {
    this.typeMarker = 'web_service_mailarchiver_serpro__login';
    this._userId = null;
    this._password = null;
}

//
// accessor is web_service_mailarchiver_serpro__login.prototype.getUserId
// element get for userId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for userId
// setter function is is web_service_mailarchiver_serpro__login.prototype.setUserId
//
function web_service_mailarchiver_serpro__login_getUserId() { return this._userId;}

web_service_mailarchiver_serpro__login.prototype.getUserId = web_service_mailarchiver_serpro__login_getUserId;

function web_service_mailarchiver_serpro__login_setUserId(value) { this._userId = value;}

web_service_mailarchiver_serpro__login.prototype.setUserId = web_service_mailarchiver_serpro__login_setUserId;
//
// accessor is web_service_mailarchiver_serpro__login.prototype.getPassword
// element get for password
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for password
// setter function is is web_service_mailarchiver_serpro__login.prototype.setPassword
//
function web_service_mailarchiver_serpro__login_getPassword() { return this._password;}

web_service_mailarchiver_serpro__login.prototype.getPassword = web_service_mailarchiver_serpro__login_getPassword;

function web_service_mailarchiver_serpro__login_setPassword(value) { this._password = value;}

web_service_mailarchiver_serpro__login.prototype.setPassword = web_service_mailarchiver_serpro__login_setPassword;
//
// Serialize {http://web.service.mailarchiver.serpro/}login
//
function web_service_mailarchiver_serpro__login_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._userId != null) {
      xml = xml + '<userId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._userId);
      xml = xml + '</userId>';
     }
    }
    // block for local variables
    {
     if (this._password != null) {
      xml = xml + '<password>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._password);
      xml = xml + '</password>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__login.prototype.serialize = web_service_mailarchiver_serpro__login_serialize;

function web_service_mailarchiver_serpro__login_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__login();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing userId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'userId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setUserId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing password');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'password')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setPassword(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}logoutResponse
//
function web_service_mailarchiver_serpro__logoutResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__logoutResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__logoutResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__logoutResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__logoutResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__logoutResponse.prototype.getReturn = web_service_mailarchiver_serpro__logoutResponse_getReturn;

function web_service_mailarchiver_serpro__logoutResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__logoutResponse.prototype.setReturn = web_service_mailarchiver_serpro__logoutResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}logoutResponse
//
function web_service_mailarchiver_serpro__logoutResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__logoutResponse.prototype.serialize = web_service_mailarchiver_serpro__logoutResponse_serialize;

function web_service_mailarchiver_serpro__logoutResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__logoutResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getMessageBody
//
function web_service_mailarchiver_serpro__getMessageBody () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getMessageBody';
    this._sessionId = null;
    this._messageId = null;
}

//
// accessor is web_service_mailarchiver_serpro__getMessageBody.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__getMessageBody.prototype.setSessionId
//
function web_service_mailarchiver_serpro__getMessageBody_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__getMessageBody.prototype.getSessionId = web_service_mailarchiver_serpro__getMessageBody_getSessionId;

function web_service_mailarchiver_serpro__getMessageBody_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__getMessageBody.prototype.setSessionId = web_service_mailarchiver_serpro__getMessageBody_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__getMessageBody.prototype.getMessageId
// element get for messageId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for messageId
// setter function is is web_service_mailarchiver_serpro__getMessageBody.prototype.setMessageId
//
function web_service_mailarchiver_serpro__getMessageBody_getMessageId() { return this._messageId;}

web_service_mailarchiver_serpro__getMessageBody.prototype.getMessageId = web_service_mailarchiver_serpro__getMessageBody_getMessageId;

function web_service_mailarchiver_serpro__getMessageBody_setMessageId(value) { this._messageId = value;}

web_service_mailarchiver_serpro__getMessageBody.prototype.setMessageId = web_service_mailarchiver_serpro__getMessageBody_setMessageId;
//
// Serialize {http://web.service.mailarchiver.serpro/}getMessageBody
//
function web_service_mailarchiver_serpro__getMessageBody_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messageId != null) {
      xml = xml + '<messageId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._messageId);
      xml = xml + '</messageId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getMessageBody.prototype.serialize = web_service_mailarchiver_serpro__getMessageBody_serialize;

function web_service_mailarchiver_serpro__getMessageBody_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getMessageBody();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messageId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messageId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setMessageId(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 + '<expiration>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._expiration);
     xml = xml + '</expiration>';
    }
    // block for local variables
    {
     if (this._id != null) {
      xml = xml + '<id>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._id);
      xml = xml + '</id>';
     }
    }
    // block for local variables
    {
     xml = xml + '<permissions>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._permissions);
     xml = xml + '</permissions>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}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 + '<contentType>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._contentType);
      xml = xml + '</contentType>';
     }
    }
    // block for local variables
    {
     if (this._id != null) {
      xml = xml + '<id>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._id);
      xml = xml + '</id>';
     }
    }
    // block for local variables
    {
     if (this._name != null) {
      xml = xml + '<name>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._name);
      xml = xml + '</name>';
     }
    }
    // block for local variables
    {
     xml = xml + '<size>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._size);
     xml = xml + '</size>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}getFaultInfoResponse
//
function web_service_mailarchiver_serpro__getFaultInfoResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getFaultInfoResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__getFaultInfoResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}Fault
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__getFaultInfoResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__getFaultInfoResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__getFaultInfoResponse.prototype.getReturn = web_service_mailarchiver_serpro__getFaultInfoResponse_getReturn;

function web_service_mailarchiver_serpro__getFaultInfoResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__getFaultInfoResponse.prototype.setReturn = web_service_mailarchiver_serpro__getFaultInfoResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}getFaultInfoResponse
//
function web_service_mailarchiver_serpro__getFaultInfoResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getFaultInfoResponse.prototype.serialize = web_service_mailarchiver_serpro__getFaultInfoResponse_serialize;

function web_service_mailarchiver_serpro__getFaultInfoResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getFaultInfoResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__Fault_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}createFolder
//
function web_service_mailarchiver_serpro__createFolder () {
    this.typeMarker = 'web_service_mailarchiver_serpro__createFolder';
    this._sessionId = null;
    this._parentFolderId = null;
    this._name = null;
}

//
// accessor is web_service_mailarchiver_serpro__createFolder.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__createFolder.prototype.setSessionId
//
function web_service_mailarchiver_serpro__createFolder_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__createFolder.prototype.getSessionId = web_service_mailarchiver_serpro__createFolder_getSessionId;

function web_service_mailarchiver_serpro__createFolder_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__createFolder.prototype.setSessionId = web_service_mailarchiver_serpro__createFolder_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__createFolder.prototype.getParentFolderId
// element get for parentFolderId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for parentFolderId
// setter function is is web_service_mailarchiver_serpro__createFolder.prototype.setParentFolderId
//
function web_service_mailarchiver_serpro__createFolder_getParentFolderId() { return this._parentFolderId;}

web_service_mailarchiver_serpro__createFolder.prototype.getParentFolderId = web_service_mailarchiver_serpro__createFolder_getParentFolderId;

function web_service_mailarchiver_serpro__createFolder_setParentFolderId(value) { this._parentFolderId = value;}

web_service_mailarchiver_serpro__createFolder.prototype.setParentFolderId = web_service_mailarchiver_serpro__createFolder_setParentFolderId;
//
// accessor is web_service_mailarchiver_serpro__createFolder.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__createFolder.prototype.setName
//
function web_service_mailarchiver_serpro__createFolder_getName() { return this._name;}

web_service_mailarchiver_serpro__createFolder.prototype.getName = web_service_mailarchiver_serpro__createFolder_getName;

function web_service_mailarchiver_serpro__createFolder_setName(value) { this._name = value;}

web_service_mailarchiver_serpro__createFolder.prototype.setName = web_service_mailarchiver_serpro__createFolder_setName;
//
// Serialize {http://web.service.mailarchiver.serpro/}createFolder
//
function web_service_mailarchiver_serpro__createFolder_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._parentFolderId != null) {
      xml = xml + '<parentFolderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._parentFolderId);
      xml = xml + '</parentFolderId>';
     }
    }
    // block for local variables
    {
     if (this._name != null) {
      xml = xml + '<name>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._name);
      xml = xml + '</name>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__createFolder.prototype.serialize = web_service_mailarchiver_serpro__createFolder_serialize;

function web_service_mailarchiver_serpro__createFolder_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__createFolder();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing parentFolderId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'parentFolderId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setParentFolderId(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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}listMessages
//
function web_service_mailarchiver_serpro__listMessages () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listMessages';
    this._sessionId = null;
    this._queryConfig = null;
}

//
// accessor is web_service_mailarchiver_serpro__listMessages.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__listMessages.prototype.setSessionId
//
function web_service_mailarchiver_serpro__listMessages_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__listMessages.prototype.getSessionId = web_service_mailarchiver_serpro__listMessages_getSessionId;

function web_service_mailarchiver_serpro__listMessages_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__listMessages.prototype.setSessionId = web_service_mailarchiver_serpro__listMessages_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__listMessages.prototype.getQueryConfig
// element get for queryConfig
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for queryConfig
// setter function is is web_service_mailarchiver_serpro__listMessages.prototype.setQueryConfig
//
function web_service_mailarchiver_serpro__listMessages_getQueryConfig() { return this._queryConfig;}

web_service_mailarchiver_serpro__listMessages.prototype.getQueryConfig = web_service_mailarchiver_serpro__listMessages_getQueryConfig;

function web_service_mailarchiver_serpro__listMessages_setQueryConfig(value) { this._queryConfig = value;}

web_service_mailarchiver_serpro__listMessages.prototype.setQueryConfig = web_service_mailarchiver_serpro__listMessages_setQueryConfig;
//
// Serialize {http://web.service.mailarchiver.serpro/}listMessages
//
function web_service_mailarchiver_serpro__listMessages_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._queryConfig != null) {
      xml = xml + '<queryConfig>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._queryConfig);
      xml = xml + '</queryConfig>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listMessages.prototype.serialize = web_service_mailarchiver_serpro__listMessages_serialize;

function web_service_mailarchiver_serpro__listMessages_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listMessages();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing queryConfig');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'queryConfig')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setQueryConfig(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}createFolderResponse
//
function web_service_mailarchiver_serpro__createFolderResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__createFolderResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__createFolderResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__createFolderResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__createFolderResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__createFolderResponse.prototype.getReturn = web_service_mailarchiver_serpro__createFolderResponse_getReturn;

function web_service_mailarchiver_serpro__createFolderResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__createFolderResponse.prototype.setReturn = web_service_mailarchiver_serpro__createFolderResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}createFolderResponse
//
function web_service_mailarchiver_serpro__createFolderResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__createFolderResponse.prototype.serialize = web_service_mailarchiver_serpro__createFolderResponse_serialize;

function web_service_mailarchiver_serpro__createFolderResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__createFolderResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getMessageInfoResponse
//
function web_service_mailarchiver_serpro__getMessageInfoResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getMessageInfoResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__getMessageInfoResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tMessage
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__getMessageInfoResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__getMessageInfoResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__getMessageInfoResponse.prototype.getReturn = web_service_mailarchiver_serpro__getMessageInfoResponse_getReturn;

function web_service_mailarchiver_serpro__getMessageInfoResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__getMessageInfoResponse.prototype.setReturn = web_service_mailarchiver_serpro__getMessageInfoResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}getMessageInfoResponse
//
function web_service_mailarchiver_serpro__getMessageInfoResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getMessageInfoResponse.prototype.serialize = web_service_mailarchiver_serpro__getMessageInfoResponse_serialize;

function web_service_mailarchiver_serpro__getMessageInfoResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getMessageInfoResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tMessage_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}setMessagesFlags
//
function web_service_mailarchiver_serpro__setMessagesFlags () {
    this.typeMarker = 'web_service_mailarchiver_serpro__setMessagesFlags';
    this._sessionId = null;
    this._messagesId = [];
    this._flags = null;
}

//
// accessor is web_service_mailarchiver_serpro__setMessagesFlags.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__setMessagesFlags.prototype.setSessionId
//
function web_service_mailarchiver_serpro__setMessagesFlags_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.getSessionId = web_service_mailarchiver_serpro__setMessagesFlags_getSessionId;

function web_service_mailarchiver_serpro__setMessagesFlags_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.setSessionId = web_service_mailarchiver_serpro__setMessagesFlags_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__setMessagesFlags.prototype.getMessagesId
// element get for messagesId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - required element
// - array
//
// element set for messagesId
// setter function is is web_service_mailarchiver_serpro__setMessagesFlags.prototype.setMessagesId
//
function web_service_mailarchiver_serpro__setMessagesFlags_getMessagesId() { return this._messagesId;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.getMessagesId = web_service_mailarchiver_serpro__setMessagesFlags_getMessagesId;

function web_service_mailarchiver_serpro__setMessagesFlags_setMessagesId(value) { this._messagesId = value;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.setMessagesId = web_service_mailarchiver_serpro__setMessagesFlags_setMessagesId;
//
// accessor is web_service_mailarchiver_serpro__setMessagesFlags.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__setMessagesFlags.prototype.setFlags
//
function web_service_mailarchiver_serpro__setMessagesFlags_getFlags() { return this._flags;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.getFlags = web_service_mailarchiver_serpro__setMessagesFlags_getFlags;

function web_service_mailarchiver_serpro__setMessagesFlags_setFlags(value) { this._flags = value;}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.setFlags = web_service_mailarchiver_serpro__setMessagesFlags_setFlags;
//
// Serialize {http://web.service.mailarchiver.serpro/}setMessagesFlags
//
function web_service_mailarchiver_serpro__setMessagesFlags_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messagesId != null) {
      for (var ax = 0;ax < this._messagesId.length;ax ++) {
       if (this._messagesId[ax] == null) {
        xml = xml + '<messagesId/>';
       } else {
        xml = xml + '<messagesId>';
        xml = xml + cxfjsutils.escapeXmlEntities(this._messagesId[ax]);
        xml = xml + '</messagesId>';
       }
      }
     }
    }
    // block for local variables
    {
     if (this._flags != null) {
      xml = xml + '<flags>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._flags);
      xml = xml + '</flags>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__setMessagesFlags.prototype.serialize = web_service_mailarchiver_serpro__setMessagesFlags_serialize;

function web_service_mailarchiver_serpro__setMessagesFlags_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__setMessagesFlags();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messagesId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messagesId')) {
     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, '', 'messagesId'));
     newobject.setMessagesId(item);
     var item = null;
    }
    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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getFolderInfoResponse
//
function web_service_mailarchiver_serpro__getFolderInfoResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getFolderInfoResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__getFolderInfoResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__getFolderInfoResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__getFolderInfoResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__getFolderInfoResponse.prototype.getReturn = web_service_mailarchiver_serpro__getFolderInfoResponse_getReturn;

function web_service_mailarchiver_serpro__getFolderInfoResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__getFolderInfoResponse.prototype.setReturn = web_service_mailarchiver_serpro__getFolderInfoResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}getFolderInfoResponse
//
function web_service_mailarchiver_serpro__getFolderInfoResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getFolderInfoResponse.prototype.serialize = web_service_mailarchiver_serpro__getFolderInfoResponse_serialize;

function web_service_mailarchiver_serpro__getFolderInfoResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getFolderInfoResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}listAttachments
//
function web_service_mailarchiver_serpro__listAttachments () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listAttachments';
    this._sessionId = null;
    this._messageId = null;
}

//
// accessor is web_service_mailarchiver_serpro__listAttachments.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__listAttachments.prototype.setSessionId
//
function web_service_mailarchiver_serpro__listAttachments_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__listAttachments.prototype.getSessionId = web_service_mailarchiver_serpro__listAttachments_getSessionId;

function web_service_mailarchiver_serpro__listAttachments_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__listAttachments.prototype.setSessionId = web_service_mailarchiver_serpro__listAttachments_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__listAttachments.prototype.getMessageId
// element get for messageId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for messageId
// setter function is is web_service_mailarchiver_serpro__listAttachments.prototype.setMessageId
//
function web_service_mailarchiver_serpro__listAttachments_getMessageId() { return this._messageId;}

web_service_mailarchiver_serpro__listAttachments.prototype.getMessageId = web_service_mailarchiver_serpro__listAttachments_getMessageId;

function web_service_mailarchiver_serpro__listAttachments_setMessageId(value) { this._messageId = value;}

web_service_mailarchiver_serpro__listAttachments.prototype.setMessageId = web_service_mailarchiver_serpro__listAttachments_setMessageId;
//
// Serialize {http://web.service.mailarchiver.serpro/}listAttachments
//
function web_service_mailarchiver_serpro__listAttachments_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messageId != null) {
      xml = xml + '<messageId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._messageId);
      xml = xml + '</messageId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listAttachments.prototype.serialize = web_service_mailarchiver_serpro__listAttachments_serialize;

function web_service_mailarchiver_serpro__listAttachments_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listAttachments();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messageId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messageId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setMessageId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}deleteMessagesResponse
//
function web_service_mailarchiver_serpro__deleteMessagesResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__deleteMessagesResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__deleteMessagesResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__deleteMessagesResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__deleteMessagesResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__deleteMessagesResponse.prototype.getReturn = web_service_mailarchiver_serpro__deleteMessagesResponse_getReturn;

function web_service_mailarchiver_serpro__deleteMessagesResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__deleteMessagesResponse.prototype.setReturn = web_service_mailarchiver_serpro__deleteMessagesResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}deleteMessagesResponse
//
function web_service_mailarchiver_serpro__deleteMessagesResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__deleteMessagesResponse.prototype.serialize = web_service_mailarchiver_serpro__deleteMessagesResponse_serialize;

function web_service_mailarchiver_serpro__deleteMessagesResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__deleteMessagesResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getState
//
function web_service_mailarchiver_serpro__getState () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getState';
}

//
// Serialize {http://web.service.mailarchiver.serpro/}getState
//
function web_service_mailarchiver_serpro__getState_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 + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getState.prototype.serialize = web_service_mailarchiver_serpro__getState_serialize;

function web_service_mailarchiver_serpro__getState_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getState();
    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/}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 + '<stackTrace xsi:nil=\'true\'/>';
       } else {
        xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}archive
//
function web_service_mailarchiver_serpro__archive () {
    this.typeMarker = 'web_service_mailarchiver_serpro__archive';
    this._sessionId = null;
    this._message = null;
    this._folderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__archive.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__archive.prototype.setSessionId
//
function web_service_mailarchiver_serpro__archive_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__archive.prototype.getSessionId = web_service_mailarchiver_serpro__archive_getSessionId;

function web_service_mailarchiver_serpro__archive_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__archive.prototype.setSessionId = web_service_mailarchiver_serpro__archive_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__archive.prototype.getMessage
// element get for message
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for message
// setter function is is web_service_mailarchiver_serpro__archive.prototype.setMessage
//
function web_service_mailarchiver_serpro__archive_getMessage() { return this._message;}

web_service_mailarchiver_serpro__archive.prototype.getMessage = web_service_mailarchiver_serpro__archive_getMessage;

function web_service_mailarchiver_serpro__archive_setMessage(value) { this._message = value;}

web_service_mailarchiver_serpro__archive.prototype.setMessage = web_service_mailarchiver_serpro__archive_setMessage;
//
// accessor is web_service_mailarchiver_serpro__archive.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__archive.prototype.setFolderId
//
function web_service_mailarchiver_serpro__archive_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__archive.prototype.getFolderId = web_service_mailarchiver_serpro__archive_getFolderId;

function web_service_mailarchiver_serpro__archive_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__archive.prototype.setFolderId = web_service_mailarchiver_serpro__archive_setFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}archive
//
function web_service_mailarchiver_serpro__archive_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._message != null) {
      xml = xml + '<message>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._message);
      xml = xml + '</message>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__archive.prototype.serialize = web_service_mailarchiver_serpro__archive_serialize;

function web_service_mailarchiver_serpro__archive_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__archive();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing message');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'message')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setMessage(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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}renameFolder
//
function web_service_mailarchiver_serpro__renameFolder () {
    this.typeMarker = 'web_service_mailarchiver_serpro__renameFolder';
    this._sessionId = null;
    this._folderId = null;
    this._newName = null;
}

//
// accessor is web_service_mailarchiver_serpro__renameFolder.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__renameFolder.prototype.setSessionId
//
function web_service_mailarchiver_serpro__renameFolder_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__renameFolder.prototype.getSessionId = web_service_mailarchiver_serpro__renameFolder_getSessionId;

function web_service_mailarchiver_serpro__renameFolder_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__renameFolder.prototype.setSessionId = web_service_mailarchiver_serpro__renameFolder_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__renameFolder.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__renameFolder.prototype.setFolderId
//
function web_service_mailarchiver_serpro__renameFolder_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__renameFolder.prototype.getFolderId = web_service_mailarchiver_serpro__renameFolder_getFolderId;

function web_service_mailarchiver_serpro__renameFolder_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__renameFolder.prototype.setFolderId = web_service_mailarchiver_serpro__renameFolder_setFolderId;
//
// accessor is web_service_mailarchiver_serpro__renameFolder.prototype.getNewName
// element get for newName
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for newName
// setter function is is web_service_mailarchiver_serpro__renameFolder.prototype.setNewName
//
function web_service_mailarchiver_serpro__renameFolder_getNewName() { return this._newName;}

web_service_mailarchiver_serpro__renameFolder.prototype.getNewName = web_service_mailarchiver_serpro__renameFolder_getNewName;

function web_service_mailarchiver_serpro__renameFolder_setNewName(value) { this._newName = value;}

web_service_mailarchiver_serpro__renameFolder.prototype.setNewName = web_service_mailarchiver_serpro__renameFolder_setNewName;
//
// Serialize {http://web.service.mailarchiver.serpro/}renameFolder
//
function web_service_mailarchiver_serpro__renameFolder_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    // block for local variables
    {
     if (this._newName != null) {
      xml = xml + '<newName>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._newName);
      xml = xml + '</newName>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__renameFolder.prototype.serialize = web_service_mailarchiver_serpro__renameFolder_serialize;

function web_service_mailarchiver_serpro__renameFolder_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__renameFolder();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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 newName');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'newName')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setNewName(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}renameFolderResponse
//
function web_service_mailarchiver_serpro__renameFolderResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__renameFolderResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__renameFolderResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__renameFolderResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__renameFolderResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__renameFolderResponse.prototype.getReturn = web_service_mailarchiver_serpro__renameFolderResponse_getReturn;

function web_service_mailarchiver_serpro__renameFolderResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__renameFolderResponse.prototype.setReturn = web_service_mailarchiver_serpro__renameFolderResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}renameFolderResponse
//
function web_service_mailarchiver_serpro__renameFolderResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__renameFolderResponse.prototype.serialize = web_service_mailarchiver_serpro__renameFolderResponse_serialize;

function web_service_mailarchiver_serpro__renameFolderResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__renameFolderResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(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 + '<stackTrace xsi:nil=\'true\'/>';
       } else {
        xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}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 + '<soapFaultCode>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultCode);
      xml = xml + '</soapFaultCode>';
     }
    }
    // block for local variables
    {
     if (this._soapFaultSubCode != null) {
      xml = xml + '<soapFaultSubCode>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultSubCode);
      xml = xml + '</soapFaultSubCode>';
     }
    }
    // block for local variables
    {
     if (this._soapFaultString != null) {
      xml = xml + '<soapFaultString>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultString);
      xml = xml + '</soapFaultString>';
     }
    }
    // block for local variables
    {
     if (this._soapFaultActor != null) {
      xml = xml + '<soapFaultActor>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._soapFaultActor);
      xml = xml + '</soapFaultActor>';
     }
    }
    // 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 + '<stackTrace>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._stackTrace);
      xml = xml + '</stackTrace>';
     }
    }
    // block for local variables
    {
     if (this._causeClass != null) {
      xml = xml + '<causeClass>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._causeClass);
      xml = xml + '</causeClass>';
     }
    }
    // block for local variables
    {
     if (this._causeMessage != null) {
      xml = xml + '<causeMessage>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._causeMessage);
      xml = xml + '</causeMessage>';
     }
    }
    // block for local variables
    {
     if (this._causeStackTrace != null) {
      xml = xml + '<causeStackTrace>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._causeStackTrace);
      xml = xml + '</causeStackTrace>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}copyMessages
//
function web_service_mailarchiver_serpro__copyMessages () {
    this.typeMarker = 'web_service_mailarchiver_serpro__copyMessages';
    this._messageId = [];
    this._folderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__copyMessages.prototype.getMessageId
// element get for messageId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - required element
// - array
//
// element set for messageId
// setter function is is web_service_mailarchiver_serpro__copyMessages.prototype.setMessageId
//
function web_service_mailarchiver_serpro__copyMessages_getMessageId() { return this._messageId;}

web_service_mailarchiver_serpro__copyMessages.prototype.getMessageId = web_service_mailarchiver_serpro__copyMessages_getMessageId;

function web_service_mailarchiver_serpro__copyMessages_setMessageId(value) { this._messageId = value;}

web_service_mailarchiver_serpro__copyMessages.prototype.setMessageId = web_service_mailarchiver_serpro__copyMessages_setMessageId;
//
// accessor is web_service_mailarchiver_serpro__copyMessages.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__copyMessages.prototype.setFolderId
//
function web_service_mailarchiver_serpro__copyMessages_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__copyMessages.prototype.getFolderId = web_service_mailarchiver_serpro__copyMessages_getFolderId;

function web_service_mailarchiver_serpro__copyMessages_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__copyMessages.prototype.setFolderId = web_service_mailarchiver_serpro__copyMessages_setFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}copyMessages
//
function web_service_mailarchiver_serpro__copyMessages_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._messageId != null) {
      for (var ax = 0;ax < this._messageId.length;ax ++) {
       if (this._messageId[ax] == null) {
        xml = xml + '<messageId/>';
       } else {
        xml = xml + '<messageId>';
        xml = xml + cxfjsutils.escapeXmlEntities(this._messageId[ax]);
        xml = xml + '</messageId>';
       }
      }
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__copyMessages.prototype.serialize = web_service_mailarchiver_serpro__copyMessages_serialize;

function web_service_mailarchiver_serpro__copyMessages_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__copyMessages();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messageId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messageId')) {
     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, '', 'messageId'));
     newobject.setMessageId(item);
     var item = null;
    }
    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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}hello
//
function web_service_mailarchiver_serpro__hello () {
    this.typeMarker = 'web_service_mailarchiver_serpro__hello';
    this._guest = null;
}

//
// accessor is web_service_mailarchiver_serpro__hello.prototype.getGuest
// element get for guest
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for guest
// setter function is is web_service_mailarchiver_serpro__hello.prototype.setGuest
//
function web_service_mailarchiver_serpro__hello_getGuest() { return this._guest;}

web_service_mailarchiver_serpro__hello.prototype.getGuest = web_service_mailarchiver_serpro__hello_getGuest;

function web_service_mailarchiver_serpro__hello_setGuest(value) { this._guest = value;}

web_service_mailarchiver_serpro__hello.prototype.setGuest = web_service_mailarchiver_serpro__hello_setGuest;
//
// Serialize {http://web.service.mailarchiver.serpro/}hello
//
function web_service_mailarchiver_serpro__hello_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._guest != null) {
      xml = xml + '<guest>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._guest);
      xml = xml + '</guest>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__hello.prototype.serialize = web_service_mailarchiver_serpro__hello_serialize;

function web_service_mailarchiver_serpro__hello_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__hello();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing guest');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'guest')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setGuest(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}logout
//
function web_service_mailarchiver_serpro__logout () {
    this.typeMarker = 'web_service_mailarchiver_serpro__logout';
    this._sessionId = null;
}

//
// accessor is web_service_mailarchiver_serpro__logout.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__logout.prototype.setSessionId
//
function web_service_mailarchiver_serpro__logout_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__logout.prototype.getSessionId = web_service_mailarchiver_serpro__logout_getSessionId;

function web_service_mailarchiver_serpro__logout_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__logout.prototype.setSessionId = web_service_mailarchiver_serpro__logout_setSessionId;
//
// Serialize {http://web.service.mailarchiver.serpro/}logout
//
function web_service_mailarchiver_serpro__logout_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__logout.prototype.serialize = web_service_mailarchiver_serpro__logout_serialize;

function web_service_mailarchiver_serpro__logout_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__logout();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}deleteFolderResponse
//
function web_service_mailarchiver_serpro__deleteFolderResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__deleteFolderResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__deleteFolderResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__deleteFolderResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__deleteFolderResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__deleteFolderResponse.prototype.getReturn = web_service_mailarchiver_serpro__deleteFolderResponse_getReturn;

function web_service_mailarchiver_serpro__deleteFolderResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__deleteFolderResponse.prototype.setReturn = web_service_mailarchiver_serpro__deleteFolderResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}deleteFolderResponse
//
function web_service_mailarchiver_serpro__deleteFolderResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__deleteFolderResponse.prototype.serialize = web_service_mailarchiver_serpro__deleteFolderResponse_serialize;

function web_service_mailarchiver_serpro__deleteFolderResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__deleteFolderResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}listAttachmentsResponse
//
function web_service_mailarchiver_serpro__listAttachmentsResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listAttachmentsResponse';
    this._return = [];
}

//
// accessor is web_service_mailarchiver_serpro__listAttachmentsResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tAttachment
// - required element
// - array
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__listAttachmentsResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__listAttachmentsResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__listAttachmentsResponse.prototype.getReturn = web_service_mailarchiver_serpro__listAttachmentsResponse_getReturn;

function web_service_mailarchiver_serpro__listAttachmentsResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__listAttachmentsResponse.prototype.setReturn = web_service_mailarchiver_serpro__listAttachmentsResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}listAttachmentsResponse
//
function web_service_mailarchiver_serpro__listAttachmentsResponse_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._return != null) {
      for (var ax = 0;ax < this._return.length;ax ++) {
       if (this._return[ax] == null) {
        xml = xml + '<return/>';
       } else {
        xml = xml + this._return[ax].serialize(cxfjsutils, 'return', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listAttachmentsResponse.prototype.serialize = web_service_mailarchiver_serpro__listAttachmentsResponse_serialize;

function web_service_mailarchiver_serpro__listAttachmentsResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listAttachmentsResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     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, '', 'return'));
     newobject.setReturn(item);
     var item = null;
    }
    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 + '<attachments>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._attachments);
      xml = xml + '</attachments>';
     }
    }
    // block for local variables
    {
     if (this._date != null) {
      xml = xml + '<date>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._date);
      xml = xml + '</date>';
     }
    }
    // block for local variables
    {
     if (this._flags != null) {
      xml = xml + '<flags>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._flags);
      xml = xml + '</flags>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    // block for local variables
    {
     if (this._folderPath != null) {
      xml = xml + '<folderPath>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderPath);
      xml = xml + '</folderPath>';
     }
    }
    // block for local variables
    {
     if (this._from != null) {
      xml = xml + '<from>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._from);
      xml = xml + '</from>';
     }
    }
    // block for local variables
    {
     if (this._id != null) {
      xml = xml + '<id>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._id);
      xml = xml + '</id>';
     }
    }
    // block for local variables
    {
     xml = xml + '<size>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._size);
     xml = xml + '</size>';
    }
    // block for local variables
    {
     if (this._subject != null) {
      xml = xml + '<subject>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._subject);
      xml = xml + '</subject>';
     }
    }
    // block for local variables
    {
     if (this._to != null) {
      xml = xml + '<to>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._to);
      xml = xml + '</to>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}copyMessagesResponse
//
function web_service_mailarchiver_serpro__copyMessagesResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__copyMessagesResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__copyMessagesResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__copyMessagesResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__copyMessagesResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__copyMessagesResponse.prototype.getReturn = web_service_mailarchiver_serpro__copyMessagesResponse_getReturn;

function web_service_mailarchiver_serpro__copyMessagesResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__copyMessagesResponse.prototype.setReturn = web_service_mailarchiver_serpro__copyMessagesResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}copyMessagesResponse
//
function web_service_mailarchiver_serpro__copyMessagesResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__copyMessagesResponse.prototype.serialize = web_service_mailarchiver_serpro__copyMessagesResponse_serialize;

function web_service_mailarchiver_serpro__copyMessagesResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__copyMessagesResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse
//
function web_service_mailarchiver_serpro__setMessagesFlagsResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__setMessagesFlagsResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__setMessagesFlagsResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__setMessagesFlagsResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__setMessagesFlagsResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__setMessagesFlagsResponse.prototype.getReturn = web_service_mailarchiver_serpro__setMessagesFlagsResponse_getReturn;

function web_service_mailarchiver_serpro__setMessagesFlagsResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__setMessagesFlagsResponse.prototype.setReturn = web_service_mailarchiver_serpro__setMessagesFlagsResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse
//
function web_service_mailarchiver_serpro__setMessagesFlagsResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__setMessagesFlagsResponse.prototype.serialize = web_service_mailarchiver_serpro__setMessagesFlagsResponse_serialize;

function web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__setMessagesFlagsResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    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 + '<stackTrace xsi:nil=\'true\'/>';
       } else {
        xml = xml + this._stackTrace[ax].serialize(cxfjsutils, 'stackTrace', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}listFoldersResponse
//
function web_service_mailarchiver_serpro__listFoldersResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listFoldersResponse';
    this._return = [];
}

//
// accessor is web_service_mailarchiver_serpro__listFoldersResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - required element
// - array
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__listFoldersResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__listFoldersResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__listFoldersResponse.prototype.getReturn = web_service_mailarchiver_serpro__listFoldersResponse_getReturn;

function web_service_mailarchiver_serpro__listFoldersResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__listFoldersResponse.prototype.setReturn = web_service_mailarchiver_serpro__listFoldersResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}listFoldersResponse
//
function web_service_mailarchiver_serpro__listFoldersResponse_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._return != null) {
      for (var ax = 0;ax < this._return.length;ax ++) {
       if (this._return[ax] == null) {
        xml = xml + '<return/>';
       } else {
        xml = xml + this._return[ax].serialize(cxfjsutils, 'return', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listFoldersResponse.prototype.serialize = web_service_mailarchiver_serpro__listFoldersResponse_serialize;

function web_service_mailarchiver_serpro__listFoldersResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listFoldersResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     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, '', 'return'));
     newobject.setReturn(item);
     var item = null;
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}moveMessagesResponse
//
function web_service_mailarchiver_serpro__moveMessagesResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__moveMessagesResponse';
    this._return = 0;
}

//
// accessor is web_service_mailarchiver_serpro__moveMessagesResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}int
// - required element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__moveMessagesResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__moveMessagesResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__moveMessagesResponse.prototype.getReturn = web_service_mailarchiver_serpro__moveMessagesResponse_getReturn;

function web_service_mailarchiver_serpro__moveMessagesResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__moveMessagesResponse.prototype.setReturn = web_service_mailarchiver_serpro__moveMessagesResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}moveMessagesResponse
//
function web_service_mailarchiver_serpro__moveMessagesResponse_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 + '<return>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._return);
     xml = xml + '</return>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__moveMessagesResponse.prototype.serialize = web_service_mailarchiver_serpro__moveMessagesResponse_serialize;

function web_service_mailarchiver_serpro__moveMessagesResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__moveMessagesResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = parseInt(value);
    }
    newobject.setReturn(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}loginResponse
//
function web_service_mailarchiver_serpro__loginResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__loginResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__loginResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tSession
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__loginResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__loginResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__loginResponse.prototype.getReturn = web_service_mailarchiver_serpro__loginResponse_getReturn;

function web_service_mailarchiver_serpro__loginResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__loginResponse.prototype.setReturn = web_service_mailarchiver_serpro__loginResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}loginResponse
//
function web_service_mailarchiver_serpro__loginResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__loginResponse.prototype.serialize = web_service_mailarchiver_serpro__loginResponse_serialize;

function web_service_mailarchiver_serpro__loginResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__loginResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tSession_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}listMessagesResponse
//
function web_service_mailarchiver_serpro__listMessagesResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listMessagesResponse';
    this._return = [];
}

//
// accessor is web_service_mailarchiver_serpro__listMessagesResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tMessage
// - required element
// - array
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__listMessagesResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__listMessagesResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__listMessagesResponse.prototype.getReturn = web_service_mailarchiver_serpro__listMessagesResponse_getReturn;

function web_service_mailarchiver_serpro__listMessagesResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__listMessagesResponse.prototype.setReturn = web_service_mailarchiver_serpro__listMessagesResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}listMessagesResponse
//
function web_service_mailarchiver_serpro__listMessagesResponse_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._return != null) {
      for (var ax = 0;ax < this._return.length;ax ++) {
       if (this._return[ax] == null) {
        xml = xml + '<return/>';
       } else {
        xml = xml + this._return[ax].serialize(cxfjsutils, 'return', null);
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listMessagesResponse.prototype.serialize = web_service_mailarchiver_serpro__listMessagesResponse_serialize;

function web_service_mailarchiver_serpro__listMessagesResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listMessagesResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     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, '', 'return'));
     newobject.setReturn(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 + '<folderCount>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._folderCount);
     xml = xml + '</folderCount>';
    }
    // block for local variables
    {
     if (this._id != null) {
      xml = xml + '<id>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._id);
      xml = xml + '</id>';
     }
    }
    // block for local variables
    {
     xml = xml + '<messageCount>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._messageCount);
     xml = xml + '</messageCount>';
    }
    // block for local variables
    {
     if (this._name != null) {
      xml = xml + '<name>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._name);
      xml = xml + '</name>';
     }
    }
    // block for local variables
    {
     if (this._parentId != null) {
      xml = xml + '<parentId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._parentId);
      xml = xml + '</parentId>';
     }
    }
    // block for local variables
    {
     if (this._path != null) {
      xml = xml + '<path>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._path);
      xml = xml + '</path>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}getMessageBodyResponse
//
function web_service_mailarchiver_serpro__getMessageBodyResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getMessageBodyResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__getMessageBodyResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__getMessageBodyResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__getMessageBodyResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__getMessageBodyResponse.prototype.getReturn = web_service_mailarchiver_serpro__getMessageBodyResponse_getReturn;

function web_service_mailarchiver_serpro__getMessageBodyResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__getMessageBodyResponse.prototype.setReturn = web_service_mailarchiver_serpro__getMessageBodyResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}getMessageBodyResponse
//
function web_service_mailarchiver_serpro__getMessageBodyResponse_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._return != null) {
      xml = xml + '<return>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._return);
      xml = xml + '</return>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getMessageBodyResponse.prototype.serialize = web_service_mailarchiver_serpro__getMessageBodyResponse_serialize;

function web_service_mailarchiver_serpro__getMessageBodyResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getMessageBodyResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getStateResponse
//
function web_service_mailarchiver_serpro__getStateResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getStateResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__getStateResponse.prototype.getReturn
// element get for return
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__getStateResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__getStateResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__getStateResponse.prototype.getReturn = web_service_mailarchiver_serpro__getStateResponse_getReturn;

function web_service_mailarchiver_serpro__getStateResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__getStateResponse.prototype.setReturn = web_service_mailarchiver_serpro__getStateResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}getStateResponse
//
function web_service_mailarchiver_serpro__getStateResponse_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._return != null) {
      xml = xml + '<return>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._return);
      xml = xml + '</return>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getStateResponse.prototype.serialize = web_service_mailarchiver_serpro__getStateResponse_serialize;

function web_service_mailarchiver_serpro__getStateResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getStateResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}moveMessages
//
function web_service_mailarchiver_serpro__moveMessages () {
    this.typeMarker = 'web_service_mailarchiver_serpro__moveMessages';
    this._sessionId = null;
    this._messageId = [];
    this._folderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__moveMessages.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__moveMessages.prototype.setSessionId
//
function web_service_mailarchiver_serpro__moveMessages_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__moveMessages.prototype.getSessionId = web_service_mailarchiver_serpro__moveMessages_getSessionId;

function web_service_mailarchiver_serpro__moveMessages_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__moveMessages.prototype.setSessionId = web_service_mailarchiver_serpro__moveMessages_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__moveMessages.prototype.getMessageId
// element get for messageId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - required element
// - array
//
// element set for messageId
// setter function is is web_service_mailarchiver_serpro__moveMessages.prototype.setMessageId
//
function web_service_mailarchiver_serpro__moveMessages_getMessageId() { return this._messageId;}

web_service_mailarchiver_serpro__moveMessages.prototype.getMessageId = web_service_mailarchiver_serpro__moveMessages_getMessageId;

function web_service_mailarchiver_serpro__moveMessages_setMessageId(value) { this._messageId = value;}

web_service_mailarchiver_serpro__moveMessages.prototype.setMessageId = web_service_mailarchiver_serpro__moveMessages_setMessageId;
//
// accessor is web_service_mailarchiver_serpro__moveMessages.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__moveMessages.prototype.setFolderId
//
function web_service_mailarchiver_serpro__moveMessages_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__moveMessages.prototype.getFolderId = web_service_mailarchiver_serpro__moveMessages_getFolderId;

function web_service_mailarchiver_serpro__moveMessages_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__moveMessages.prototype.setFolderId = web_service_mailarchiver_serpro__moveMessages_setFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}moveMessages
//
function web_service_mailarchiver_serpro__moveMessages_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messageId != null) {
      for (var ax = 0;ax < this._messageId.length;ax ++) {
       if (this._messageId[ax] == null) {
        xml = xml + '<messageId/>';
       } else {
        xml = xml + '<messageId>';
        xml = xml + cxfjsutils.escapeXmlEntities(this._messageId[ax]);
        xml = xml + '</messageId>';
       }
      }
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__moveMessages.prototype.serialize = web_service_mailarchiver_serpro__moveMessages_serialize;

function web_service_mailarchiver_serpro__moveMessages_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__moveMessages();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messageId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messageId')) {
     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, '', 'messageId'));
     newobject.setMessageId(item);
     var item = null;
    }
    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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}listFolders
//
function web_service_mailarchiver_serpro__listFolders () {
    this.typeMarker = 'web_service_mailarchiver_serpro__listFolders';
    this._sessionId = null;
    this._folderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__listFolders.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__listFolders.prototype.setSessionId
//
function web_service_mailarchiver_serpro__listFolders_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__listFolders.prototype.getSessionId = web_service_mailarchiver_serpro__listFolders_getSessionId;

function web_service_mailarchiver_serpro__listFolders_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__listFolders.prototype.setSessionId = web_service_mailarchiver_serpro__listFolders_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__listFolders.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__listFolders.prototype.setFolderId
//
function web_service_mailarchiver_serpro__listFolders_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__listFolders.prototype.getFolderId = web_service_mailarchiver_serpro__listFolders_getFolderId;

function web_service_mailarchiver_serpro__listFolders_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__listFolders.prototype.setFolderId = web_service_mailarchiver_serpro__listFolders_setFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}listFolders
//
function web_service_mailarchiver_serpro__listFolders_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__listFolders.prototype.serialize = web_service_mailarchiver_serpro__listFolders_serialize;

function web_service_mailarchiver_serpro__listFolders_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__listFolders();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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);
     }
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}deleteMessages
//
function web_service_mailarchiver_serpro__deleteMessages () {
    this.typeMarker = 'web_service_mailarchiver_serpro__deleteMessages';
    this._sessionId = null;
    this._messagesId = [];
}

//
// accessor is web_service_mailarchiver_serpro__deleteMessages.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__deleteMessages.prototype.setSessionId
//
function web_service_mailarchiver_serpro__deleteMessages_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__deleteMessages.prototype.getSessionId = web_service_mailarchiver_serpro__deleteMessages_getSessionId;

function web_service_mailarchiver_serpro__deleteMessages_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__deleteMessages.prototype.setSessionId = web_service_mailarchiver_serpro__deleteMessages_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__deleteMessages.prototype.getMessagesId
// element get for messagesId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - required element
// - array
//
// element set for messagesId
// setter function is is web_service_mailarchiver_serpro__deleteMessages.prototype.setMessagesId
//
function web_service_mailarchiver_serpro__deleteMessages_getMessagesId() { return this._messagesId;}

web_service_mailarchiver_serpro__deleteMessages.prototype.getMessagesId = web_service_mailarchiver_serpro__deleteMessages_getMessagesId;

function web_service_mailarchiver_serpro__deleteMessages_setMessagesId(value) { this._messagesId = value;}

web_service_mailarchiver_serpro__deleteMessages.prototype.setMessagesId = web_service_mailarchiver_serpro__deleteMessages_setMessagesId;
//
// Serialize {http://web.service.mailarchiver.serpro/}deleteMessages
//
function web_service_mailarchiver_serpro__deleteMessages_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._messagesId != null) {
      for (var ax = 0;ax < this._messagesId.length;ax ++) {
       if (this._messagesId[ax] == null) {
        xml = xml + '<messagesId/>';
       } else {
        xml = xml + '<messagesId>';
        xml = xml + cxfjsutils.escapeXmlEntities(this._messagesId[ax]);
        xml = xml + '</messagesId>';
       }
      }
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__deleteMessages.prototype.serialize = web_service_mailarchiver_serpro__deleteMessages_serialize;

function web_service_mailarchiver_serpro__deleteMessages_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__deleteMessages();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing messagesId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'messagesId')) {
     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, '', 'messagesId'));
     newobject.setMessagesId(item);
     var item = null;
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}deleteFolder
//
function web_service_mailarchiver_serpro__deleteFolder () {
    this.typeMarker = 'web_service_mailarchiver_serpro__deleteFolder';
    this._sessionId = null;
    this._folderId = null;
    this._recursive = '';
}

//
// accessor is web_service_mailarchiver_serpro__deleteFolder.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__deleteFolder.prototype.setSessionId
//
function web_service_mailarchiver_serpro__deleteFolder_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__deleteFolder.prototype.getSessionId = web_service_mailarchiver_serpro__deleteFolder_getSessionId;

function web_service_mailarchiver_serpro__deleteFolder_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__deleteFolder.prototype.setSessionId = web_service_mailarchiver_serpro__deleteFolder_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__deleteFolder.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__deleteFolder.prototype.setFolderId
//
function web_service_mailarchiver_serpro__deleteFolder_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__deleteFolder.prototype.getFolderId = web_service_mailarchiver_serpro__deleteFolder_getFolderId;

function web_service_mailarchiver_serpro__deleteFolder_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__deleteFolder.prototype.setFolderId = web_service_mailarchiver_serpro__deleteFolder_setFolderId;
//
// accessor is web_service_mailarchiver_serpro__deleteFolder.prototype.getRecursive
// element get for recursive
// - element type is {http://www.w3.org/2001/XMLSchema}boolean
// - required element
//
// element set for recursive
// setter function is is web_service_mailarchiver_serpro__deleteFolder.prototype.setRecursive
//
function web_service_mailarchiver_serpro__deleteFolder_getRecursive() { return this._recursive;}

web_service_mailarchiver_serpro__deleteFolder.prototype.getRecursive = web_service_mailarchiver_serpro__deleteFolder_getRecursive;

function web_service_mailarchiver_serpro__deleteFolder_setRecursive(value) { this._recursive = value;}

web_service_mailarchiver_serpro__deleteFolder.prototype.setRecursive = web_service_mailarchiver_serpro__deleteFolder_setRecursive;
//
// Serialize {http://web.service.mailarchiver.serpro/}deleteFolder
//
function web_service_mailarchiver_serpro__deleteFolder_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    // block for local variables
    {
     xml = xml + '<recursive>';
     xml = xml + cxfjsutils.escapeXmlEntities(this._recursive);
     xml = xml + '</recursive>';
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__deleteFolder.prototype.serialize = web_service_mailarchiver_serpro__deleteFolder_serialize;

function web_service_mailarchiver_serpro__deleteFolder_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__deleteFolder();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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 recursive');
    var value = null;
    if (!cxfjsutils.isElementNil(curElement)) {
     value = cxfjsutils.getNodeText(curElement);
     item = (value == 'true');
    }
    newobject.setRecursive(item);
    var item = null;
    if (curElement != null) {
     curElement = cxfjsutils.getNextElementSibling(curElement);
    }
    return newobject;
}

//
// Constructor for XML Schema item {http://web.service.mailarchiver.serpro/}getFolderInfo
//
function web_service_mailarchiver_serpro__getFolderInfo () {
    this.typeMarker = 'web_service_mailarchiver_serpro__getFolderInfo';
    this._sessionId = null;
    this._folderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__getFolderInfo.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__getFolderInfo.prototype.setSessionId
//
function web_service_mailarchiver_serpro__getFolderInfo_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__getFolderInfo.prototype.getSessionId = web_service_mailarchiver_serpro__getFolderInfo_getSessionId;

function web_service_mailarchiver_serpro__getFolderInfo_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__getFolderInfo.prototype.setSessionId = web_service_mailarchiver_serpro__getFolderInfo_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__getFolderInfo.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__getFolderInfo.prototype.setFolderId
//
function web_service_mailarchiver_serpro__getFolderInfo_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__getFolderInfo.prototype.getFolderId = web_service_mailarchiver_serpro__getFolderInfo_getFolderId;

function web_service_mailarchiver_serpro__getFolderInfo_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__getFolderInfo.prototype.setFolderId = web_service_mailarchiver_serpro__getFolderInfo_setFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}getFolderInfo
//
function web_service_mailarchiver_serpro__getFolderInfo_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__getFolderInfo.prototype.serialize = web_service_mailarchiver_serpro__getFolderInfo_serialize;

function web_service_mailarchiver_serpro__getFolderInfo_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__getFolderInfo();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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);
     }
    }
    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 + '<key>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._key);
      xml = xml + '</key>';
     }
    }
    // block for local variables
    {
     if (this._value != null) {
      xml = xml + '<value>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._value);
      xml = xml + '</value>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     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/}moveFolderResponse
//
function web_service_mailarchiver_serpro__moveFolderResponse () {
    this.typeMarker = 'web_service_mailarchiver_serpro__moveFolderResponse';
    this._return = null;
}

//
// accessor is web_service_mailarchiver_serpro__moveFolderResponse.prototype.getReturn
// element get for return
// - element type is {http://web.service.mailarchiver.serpro/}tFolder
// - optional element
//
// element set for return
// setter function is is web_service_mailarchiver_serpro__moveFolderResponse.prototype.setReturn
//
function web_service_mailarchiver_serpro__moveFolderResponse_getReturn() { return this._return;}

web_service_mailarchiver_serpro__moveFolderResponse.prototype.getReturn = web_service_mailarchiver_serpro__moveFolderResponse_getReturn;

function web_service_mailarchiver_serpro__moveFolderResponse_setReturn(value) { this._return = value;}

web_service_mailarchiver_serpro__moveFolderResponse.prototype.setReturn = web_service_mailarchiver_serpro__moveFolderResponse_setReturn;
//
// Serialize {http://web.service.mailarchiver.serpro/}moveFolderResponse
//
function web_service_mailarchiver_serpro__moveFolderResponse_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._return != null) {
      xml = xml + this._return.serialize(cxfjsutils, 'return', null);
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__moveFolderResponse.prototype.serialize = web_service_mailarchiver_serpro__moveFolderResponse_serialize;

function web_service_mailarchiver_serpro__moveFolderResponse_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__moveFolderResponse();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing return');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'return')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      item = web_service_mailarchiver_serpro__tFolder_deserialize(cxfjsutils, curElement);
     }
     newobject.setReturn(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    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 + '</';
     xml = xml + elementName;
     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/}moveFolder
//
function web_service_mailarchiver_serpro__moveFolder () {
    this.typeMarker = 'web_service_mailarchiver_serpro__moveFolder';
    this._sessionId = null;
    this._folderId = null;
    this._newParentFolderId = null;
}

//
// accessor is web_service_mailarchiver_serpro__moveFolder.prototype.getSessionId
// element get for sessionId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for sessionId
// setter function is is web_service_mailarchiver_serpro__moveFolder.prototype.setSessionId
//
function web_service_mailarchiver_serpro__moveFolder_getSessionId() { return this._sessionId;}

web_service_mailarchiver_serpro__moveFolder.prototype.getSessionId = web_service_mailarchiver_serpro__moveFolder_getSessionId;

function web_service_mailarchiver_serpro__moveFolder_setSessionId(value) { this._sessionId = value;}

web_service_mailarchiver_serpro__moveFolder.prototype.setSessionId = web_service_mailarchiver_serpro__moveFolder_setSessionId;
//
// accessor is web_service_mailarchiver_serpro__moveFolder.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__moveFolder.prototype.setFolderId
//
function web_service_mailarchiver_serpro__moveFolder_getFolderId() { return this._folderId;}

web_service_mailarchiver_serpro__moveFolder.prototype.getFolderId = web_service_mailarchiver_serpro__moveFolder_getFolderId;

function web_service_mailarchiver_serpro__moveFolder_setFolderId(value) { this._folderId = value;}

web_service_mailarchiver_serpro__moveFolder.prototype.setFolderId = web_service_mailarchiver_serpro__moveFolder_setFolderId;
//
// accessor is web_service_mailarchiver_serpro__moveFolder.prototype.getNewParentFolderId
// element get for newParentFolderId
// - element type is {http://www.w3.org/2001/XMLSchema}string
// - optional element
//
// element set for newParentFolderId
// setter function is is web_service_mailarchiver_serpro__moveFolder.prototype.setNewParentFolderId
//
function web_service_mailarchiver_serpro__moveFolder_getNewParentFolderId() { return this._newParentFolderId;}

web_service_mailarchiver_serpro__moveFolder.prototype.getNewParentFolderId = web_service_mailarchiver_serpro__moveFolder_getNewParentFolderId;

function web_service_mailarchiver_serpro__moveFolder_setNewParentFolderId(value) { this._newParentFolderId = value;}

web_service_mailarchiver_serpro__moveFolder.prototype.setNewParentFolderId = web_service_mailarchiver_serpro__moveFolder_setNewParentFolderId;
//
// Serialize {http://web.service.mailarchiver.serpro/}moveFolder
//
function web_service_mailarchiver_serpro__moveFolder_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._sessionId != null) {
      xml = xml + '<sessionId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._sessionId);
      xml = xml + '</sessionId>';
     }
    }
    // block for local variables
    {
     if (this._folderId != null) {
      xml = xml + '<folderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._folderId);
      xml = xml + '</folderId>';
     }
    }
    // block for local variables
    {
     if (this._newParentFolderId != null) {
      xml = xml + '<newParentFolderId>';
      xml = xml + cxfjsutils.escapeXmlEntities(this._newParentFolderId);
      xml = xml + '</newParentFolderId>';
     }
    }
    if (elementName != null) {
     xml = xml + '</';
     xml = xml + elementName;
     xml = xml + '>';
    }
    return xml;
}

web_service_mailarchiver_serpro__moveFolder.prototype.serialize = web_service_mailarchiver_serpro__moveFolder_serialize;

function web_service_mailarchiver_serpro__moveFolder_deserialize (cxfjsutils, element) {
    var newobject = new web_service_mailarchiver_serpro__moveFolder();
    cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
    var curElement = cxfjsutils.getFirstElementChild(element);
    var item;
    cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement));
    cxfjsutils.trace('processing sessionId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'sessionId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setSessionId(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 newParentFolderId');
    if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'newParentFolderId')) {
     var value = null;
     if (!cxfjsutils.isElementNil(curElement)) {
      value = cxfjsutils.getNodeText(curElement);
      item = value;
     }
     newobject.setNewParentFolderId(item);
     var item = null;
     if (curElement != null) {
      curElement = cxfjsutils.getNextElementSibling(curElement);
     }
    }
    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/}createAbsoluteFolder'] = web_service_mailarchiver_serpro__createAbsoluteFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolder'] = web_service_mailarchiver_serpro__createAbsoluteFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}archive'] = web_service_mailarchiver_serpro__archive_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}archive'] = web_service_mailarchiver_serpro__archive_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}archiveResponse'] = web_service_mailarchiver_serpro__archiveResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}archiveResponse'] = web_service_mailarchiver_serpro__archiveResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}renameFolder'] = web_service_mailarchiver_serpro__renameFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}renameFolder'] = web_service_mailarchiver_serpro__renameFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}renameFolderResponse'] = web_service_mailarchiver_serpro__renameFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}renameFolderResponse'] = web_service_mailarchiver_serpro__renameFolderResponse_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/}copyMessages'] = web_service_mailarchiver_serpro__copyMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}copyMessages'] = web_service_mailarchiver_serpro__copyMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}hello'] = web_service_mailarchiver_serpro__hello_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}hello'] = web_service_mailarchiver_serpro__hello_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}logout'] = web_service_mailarchiver_serpro__logout_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}logout'] = web_service_mailarchiver_serpro__logout_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}helloResponse'] = web_service_mailarchiver_serpro__helloResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}helloResponse'] = web_service_mailarchiver_serpro__helloResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listAttachmentsResponse'] = web_service_mailarchiver_serpro__listAttachmentsResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listAttachmentsResponse'] = web_service_mailarchiver_serpro__listAttachmentsResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteFolderResponse'] = web_service_mailarchiver_serpro__deleteFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteFolderResponse'] = web_service_mailarchiver_serpro__deleteFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageInfo'] = web_service_mailarchiver_serpro__getMessageInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageInfo'] = web_service_mailarchiver_serpro__getMessageInfo_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}copyMessagesResponse'] = web_service_mailarchiver_serpro__copyMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}copyMessagesResponse'] = web_service_mailarchiver_serpro__copyMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse'] = web_service_mailarchiver_serpro__setMessagesFlagsResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse'] = web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveMessagesResponse'] = web_service_mailarchiver_serpro__moveMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveMessagesResponse'] = web_service_mailarchiver_serpro__moveMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listFoldersResponse'] = web_service_mailarchiver_serpro__listFoldersResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listFoldersResponse'] = web_service_mailarchiver_serpro__listFoldersResponse_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/}loginResponse'] = web_service_mailarchiver_serpro__loginResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}loginResponse'] = web_service_mailarchiver_serpro__loginResponse_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/}listMessagesResponse'] = web_service_mailarchiver_serpro__listMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listMessagesResponse'] = web_service_mailarchiver_serpro__listMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageBodyResponse'] = web_service_mailarchiver_serpro__getMessageBodyResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageBodyResponse'] = web_service_mailarchiver_serpro__getMessageBodyResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse'] = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse'] = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFaultInfo'] = web_service_mailarchiver_serpro__getFaultInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFaultInfo'] = web_service_mailarchiver_serpro__getFaultInfo_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getStateResponse'] = web_service_mailarchiver_serpro__getStateResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getStateResponse'] = web_service_mailarchiver_serpro__getStateResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}login'] = web_service_mailarchiver_serpro__login_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}login'] = web_service_mailarchiver_serpro__login_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}logoutResponse'] = web_service_mailarchiver_serpro__logoutResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}logoutResponse'] = web_service_mailarchiver_serpro__logoutResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageBody'] = web_service_mailarchiver_serpro__getMessageBody_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageBody'] = web_service_mailarchiver_serpro__getMessageBody_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveMessages'] = web_service_mailarchiver_serpro__moveMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveMessages'] = web_service_mailarchiver_serpro__moveMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listFolders'] = web_service_mailarchiver_serpro__listFolders_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listFolders'] = web_service_mailarchiver_serpro__listFolders_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteMessages'] = web_service_mailarchiver_serpro__deleteMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteMessages'] = web_service_mailarchiver_serpro__deleteMessages_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/}deleteFolder'] = web_service_mailarchiver_serpro__deleteFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteFolder'] = web_service_mailarchiver_serpro__deleteFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFaultInfoResponse'] = web_service_mailarchiver_serpro__getFaultInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFaultInfoResponse'] = web_service_mailarchiver_serpro__getFaultInfoResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFolderInfo'] = web_service_mailarchiver_serpro__getFolderInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFolderInfo'] = web_service_mailarchiver_serpro__getFolderInfo_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createFolder'] = web_service_mailarchiver_serpro__createFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createFolder'] = web_service_mailarchiver_serpro__createFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listMessages'] = web_service_mailarchiver_serpro__listMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listMessages'] = web_service_mailarchiver_serpro__listMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createFolderResponse'] = web_service_mailarchiver_serpro__createFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createFolderResponse'] = web_service_mailarchiver_serpro__createFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}setMessagesFlags'] = web_service_mailarchiver_serpro__setMessagesFlags_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}setMessagesFlags'] = web_service_mailarchiver_serpro__setMessagesFlags_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageInfoResponse'] = web_service_mailarchiver_serpro__getMessageInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageInfoResponse'] = web_service_mailarchiver_serpro__getMessageInfoResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveFolderResponse'] = web_service_mailarchiver_serpro__moveFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveFolderResponse'] = web_service_mailarchiver_serpro__moveFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveFolder'] = web_service_mailarchiver_serpro__moveFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveFolder'] = web_service_mailarchiver_serpro__moveFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listAttachments'] = web_service_mailarchiver_serpro__listAttachments_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listAttachments'] = web_service_mailarchiver_serpro__listAttachments_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getState'] = web_service_mailarchiver_serpro__getState_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getState'] = web_service_mailarchiver_serpro__getState_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteMessagesResponse'] = web_service_mailarchiver_serpro__deleteMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteMessagesResponse'] = web_service_mailarchiver_serpro__deleteMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFolderInfoResponse'] = web_service_mailarchiver_serpro__getFolderInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFolderInfoResponse'] = web_service_mailarchiver_serpro__getFolderInfoResponse_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/}createAbsoluteFolder'] = web_service_mailarchiver_serpro__createAbsoluteFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolder'] = web_service_mailarchiver_serpro__createAbsoluteFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}archiveResponse'] = web_service_mailarchiver_serpro__archiveResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}archiveResponse'] = web_service_mailarchiver_serpro__archiveResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}helloResponse'] = web_service_mailarchiver_serpro__helloResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}helloResponse'] = web_service_mailarchiver_serpro__helloResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageInfo'] = web_service_mailarchiver_serpro__getMessageInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageInfo'] = web_service_mailarchiver_serpro__getMessageInfo_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/}getFaultInfo'] = web_service_mailarchiver_serpro__getFaultInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFaultInfo'] = web_service_mailarchiver_serpro__getFaultInfo_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse'] = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createAbsoluteFolderResponse'] = web_service_mailarchiver_serpro__createAbsoluteFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}login'] = web_service_mailarchiver_serpro__login_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}login'] = web_service_mailarchiver_serpro__login_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}logoutResponse'] = web_service_mailarchiver_serpro__logoutResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}logoutResponse'] = web_service_mailarchiver_serpro__logoutResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageBody'] = web_service_mailarchiver_serpro__getMessageBody_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageBody'] = web_service_mailarchiver_serpro__getMessageBody_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/}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/}getFaultInfoResponse'] = web_service_mailarchiver_serpro__getFaultInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFaultInfoResponse'] = web_service_mailarchiver_serpro__getFaultInfoResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createFolder'] = web_service_mailarchiver_serpro__createFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createFolder'] = web_service_mailarchiver_serpro__createFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listMessages'] = web_service_mailarchiver_serpro__listMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listMessages'] = web_service_mailarchiver_serpro__listMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}createFolderResponse'] = web_service_mailarchiver_serpro__createFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}createFolderResponse'] = web_service_mailarchiver_serpro__createFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getMessageInfoResponse'] = web_service_mailarchiver_serpro__getMessageInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageInfoResponse'] = web_service_mailarchiver_serpro__getMessageInfoResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}setMessagesFlags'] = web_service_mailarchiver_serpro__setMessagesFlags_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}setMessagesFlags'] = web_service_mailarchiver_serpro__setMessagesFlags_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFolderInfoResponse'] = web_service_mailarchiver_serpro__getFolderInfoResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFolderInfoResponse'] = web_service_mailarchiver_serpro__getFolderInfoResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listAttachments'] = web_service_mailarchiver_serpro__listAttachments_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listAttachments'] = web_service_mailarchiver_serpro__listAttachments_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteMessagesResponse'] = web_service_mailarchiver_serpro__deleteMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteMessagesResponse'] = web_service_mailarchiver_serpro__deleteMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getState'] = web_service_mailarchiver_serpro__getState_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getState'] = web_service_mailarchiver_serpro__getState_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://web.service.mailarchiver.serpro/}archive'] = web_service_mailarchiver_serpro__archive_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}archive'] = web_service_mailarchiver_serpro__archive_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}renameFolder'] = web_service_mailarchiver_serpro__renameFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}renameFolder'] = web_service_mailarchiver_serpro__renameFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}renameFolderResponse'] = web_service_mailarchiver_serpro__renameFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}renameFolderResponse'] = web_service_mailarchiver_serpro__renameFolderResponse_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/}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/}copyMessages'] = web_service_mailarchiver_serpro__copyMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}copyMessages'] = web_service_mailarchiver_serpro__copyMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}hello'] = web_service_mailarchiver_serpro__hello_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}hello'] = web_service_mailarchiver_serpro__hello_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}logout'] = web_service_mailarchiver_serpro__logout_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}logout'] = web_service_mailarchiver_serpro__logout_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteFolderResponse'] = web_service_mailarchiver_serpro__deleteFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteFolderResponse'] = web_service_mailarchiver_serpro__deleteFolderResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listAttachmentsResponse'] = web_service_mailarchiver_serpro__listAttachmentsResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listAttachmentsResponse'] = web_service_mailarchiver_serpro__listAttachmentsResponse_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/}copyMessagesResponse'] = web_service_mailarchiver_serpro__copyMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}copyMessagesResponse'] = web_service_mailarchiver_serpro__copyMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse'] = web_service_mailarchiver_serpro__setMessagesFlagsResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}setMessagesFlagsResponse'] = web_service_mailarchiver_serpro__setMessagesFlagsResponse_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/}listFoldersResponse'] = web_service_mailarchiver_serpro__listFoldersResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listFoldersResponse'] = web_service_mailarchiver_serpro__listFoldersResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveMessagesResponse'] = web_service_mailarchiver_serpro__moveMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveMessagesResponse'] = web_service_mailarchiver_serpro__moveMessagesResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}loginResponse'] = web_service_mailarchiver_serpro__loginResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}loginResponse'] = web_service_mailarchiver_serpro__loginResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listMessagesResponse'] = web_service_mailarchiver_serpro__listMessagesResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listMessagesResponse'] = web_service_mailarchiver_serpro__listMessagesResponse_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/}getMessageBodyResponse'] = web_service_mailarchiver_serpro__getMessageBodyResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getMessageBodyResponse'] = web_service_mailarchiver_serpro__getMessageBodyResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getStateResponse'] = web_service_mailarchiver_serpro__getStateResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getStateResponse'] = web_service_mailarchiver_serpro__getStateResponse_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}moveMessages'] = web_service_mailarchiver_serpro__moveMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveMessages'] = web_service_mailarchiver_serpro__moveMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}listFolders'] = web_service_mailarchiver_serpro__listFolders_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}listFolders'] = web_service_mailarchiver_serpro__listFolders_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteMessages'] = web_service_mailarchiver_serpro__deleteMessages_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteMessages'] = web_service_mailarchiver_serpro__deleteMessages_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}deleteFolder'] = web_service_mailarchiver_serpro__deleteFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}deleteFolder'] = web_service_mailarchiver_serpro__deleteFolder_deserialize;
    this.globalElementSerializers['{http://web.service.mailarchiver.serpro/}getFolderInfo'] = web_service_mailarchiver_serpro__getFolderInfo_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}getFolderInfo'] = web_service_mailarchiver_serpro__getFolderInfo_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/}moveFolderResponse'] = web_service_mailarchiver_serpro__moveFolderResponse_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveFolderResponse'] = web_service_mailarchiver_serpro__moveFolderResponse_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/}moveFolder'] = web_service_mailarchiver_serpro__moveFolder_serialize;
    this.globalElementDeserializers['{http://web.service.mailarchiver.serpro/}moveFolder'] = web_service_mailarchiver_serpro__moveFolder_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
// Wrapped operation.
// parameter sessionId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__logout();
    wrapperObj.setSessionId(args[0]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:logout', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__logoutResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter queryConfig
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__listMessages();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setQueryConfig(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:listMessages', null);
    }
    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__listMessagesResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messagesId
// - array
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter flags
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__setMessagesFlags();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessagesId(args[1]);
    wrapperObj.setFlags(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:setMessagesFlags', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__setMessagesFlagsResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__listFolders();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setFolderId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:listFolders', null);
    }
    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__listFoldersResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter parentFolderId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter name
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__createFolder();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setParentFolderId(args[1]);
    wrapperObj.setName(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:createFolder', null);
    }
    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__createFolderResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messageId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__getMessageInfo();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessageId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:getMessageInfo', null);
    }
    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__getMessageInfoResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messageId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__listAttachments();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessageId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:listAttachments', null);
    }
    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__listAttachmentsResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__getFolderInfo();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setFolderId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:getFolderInfo', null);
    }
    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__getFolderInfoResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter recursive
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__deleteFolder();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setFolderId(args[1]);
    wrapperObj.setRecursive(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:deleteFolder', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__deleteFolderResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messagesId
// - array
// - simple type {http://www.w3.org/2001/XMLSchema}string//
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 wrapperObj = new web_service_mailarchiver_serpro__deleteMessages();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessagesId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:deleteMessages', 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 returnObject = web_service_mailarchiver_serpro__deleteMessagesResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__getFaultInfo();
    wrapperObj.setSessionId(args[0]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:getFaultInfo', null);
    }
    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__getFaultInfoResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter newName
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__renameFolder();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setFolderId(args[1]);
    wrapperObj.setNewName(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:renameFolder', null);
    }
    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__renameFolderResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messageId
// - array
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__moveMessages();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessageId(args[1]);
    wrapperObj.setFolderId(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:moveMessages', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__moveMessagesResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter path
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__createAbsoluteFolder();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setPath(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:createAbsoluteFolder', null);
    }
    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__createAbsoluteFolderResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter message
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__archive();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessage(args[1]);
    wrapperObj.setFolderId(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:archive', null);
    }
    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__archiveResponse_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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter messageId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__getMessageBody();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setMessageId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:getMessageBody', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__getMessageBodyResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter sessionId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter newParentFolderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__moveFolder();
    wrapperObj.setSessionId(args[0]);
    wrapperObj.setFolderId(args[1]);
    wrapperObj.setNewParentFolderId(args[2]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:moveFolder', null);
    }
    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__moveFolderResponse_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
// Wrapped operation.
// parameter guest
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__hello();
    wrapperObj.setGuest(args[0]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:hello', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__helloResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter messageId
// - array
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter folderId
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__copyMessages();
    wrapperObj.setMessageId(args[0]);
    wrapperObj.setFolderId(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:copyMessages', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__copyMessagesResponse_deserialize (cxfjsutils, partElement);

    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
// Wrapped operation.
// parameter userId
// - simple type {http://www.w3.org/2001/XMLSchema}string// parameter password
// - simple 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 wrapperObj = new web_service_mailarchiver_serpro__login();
    wrapperObj.setUserId(args[0]);
    wrapperObj.setPassword(args[1]);
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:login', null);
    }
    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__loginResponse_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
// Wrapped operation.
//
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 wrapperObj = new web_service_mailarchiver_serpro__getState();
    var xml;
    xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://web.service.mailarchiver.serpro/' ");
    // block for local variables
    {
     xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:getState', null);
    }
    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 returnObject = web_service_mailarchiver_serpro__getStateResponse_deserialize (cxfjsutils, partElement);

    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;