// // Definitions for schema: http://ws.safemode.pt/ // http://localhost:8080/safemode/safemode-ws/utilizador?xsd=1 // // // Constructor for XML Schema item {http://ws.safemode.pt/}recoverPasswordResponse // function ws_safemode_pt__recoverPasswordResponse () { this.typeMarker = 'ws_safemode_pt__recoverPasswordResponse'; this._return = ''; } // // accessor is ws_safemode_pt__recoverPasswordResponse.prototype.getReturn // element get for return // - element type is {http://www.w3.org/2001/XMLSchema}boolean // - required element // // element set for return // setter function is is ws_safemode_pt__recoverPasswordResponse.prototype.setReturn // function ws_safemode_pt__recoverPasswordResponse_getReturn() { return this._return;} ws_safemode_pt__recoverPasswordResponse.prototype.getReturn = ws_safemode_pt__recoverPasswordResponse_getReturn; function ws_safemode_pt__recoverPasswordResponse_setReturn(value) { this._return = value;} ws_safemode_pt__recoverPasswordResponse.prototype.setReturn = ws_safemode_pt__recoverPasswordResponse_setReturn; // // Serialize {http://ws.safemode.pt/}recoverPasswordResponse // function ws_safemode_pt__recoverPasswordResponse_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._return); xml = xml + ''; } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__recoverPasswordResponse.prototype.serialize = ws_safemode_pt__recoverPasswordResponse_serialize; function ws_safemode_pt__recoverPasswordResponse_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__recoverPasswordResponse(); 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 = (value == 'true'); } newobject.setReturn(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } return newobject; } // // Constructor for XML Schema item {http://ws.safemode.pt/}recoverPassword // function ws_safemode_pt__recoverPassword () { this.typeMarker = 'ws_safemode_pt__recoverPassword'; this._username = null; this._token = null; this._password = null; this._passwordRepeat = null; } // // accessor is ws_safemode_pt__recoverPassword.prototype.getUsername // element get for username // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for username // setter function is is ws_safemode_pt__recoverPassword.prototype.setUsername // function ws_safemode_pt__recoverPassword_getUsername() { return this._username;} ws_safemode_pt__recoverPassword.prototype.getUsername = ws_safemode_pt__recoverPassword_getUsername; function ws_safemode_pt__recoverPassword_setUsername(value) { this._username = value;} ws_safemode_pt__recoverPassword.prototype.setUsername = ws_safemode_pt__recoverPassword_setUsername; // // accessor is ws_safemode_pt__recoverPassword.prototype.getToken // element get for token // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for token // setter function is is ws_safemode_pt__recoverPassword.prototype.setToken // function ws_safemode_pt__recoverPassword_getToken() { return this._token;} ws_safemode_pt__recoverPassword.prototype.getToken = ws_safemode_pt__recoverPassword_getToken; function ws_safemode_pt__recoverPassword_setToken(value) { this._token = value;} ws_safemode_pt__recoverPassword.prototype.setToken = ws_safemode_pt__recoverPassword_setToken; // // accessor is ws_safemode_pt__recoverPassword.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 ws_safemode_pt__recoverPassword.prototype.setPassword // function ws_safemode_pt__recoverPassword_getPassword() { return this._password;} ws_safemode_pt__recoverPassword.prototype.getPassword = ws_safemode_pt__recoverPassword_getPassword; function ws_safemode_pt__recoverPassword_setPassword(value) { this._password = value;} ws_safemode_pt__recoverPassword.prototype.setPassword = ws_safemode_pt__recoverPassword_setPassword; // // accessor is ws_safemode_pt__recoverPassword.prototype.getPasswordRepeat // element get for passwordRepeat // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for passwordRepeat // setter function is is ws_safemode_pt__recoverPassword.prototype.setPasswordRepeat // function ws_safemode_pt__recoverPassword_getPasswordRepeat() { return this._passwordRepeat;} ws_safemode_pt__recoverPassword.prototype.getPasswordRepeat = ws_safemode_pt__recoverPassword_getPasswordRepeat; function ws_safemode_pt__recoverPassword_setPasswordRepeat(value) { this._passwordRepeat = value;} ws_safemode_pt__recoverPassword.prototype.setPasswordRepeat = ws_safemode_pt__recoverPassword_setPasswordRepeat; // // Serialize {http://ws.safemode.pt/}recoverPassword // function ws_safemode_pt__recoverPassword_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._username != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._username); xml = xml + ''; } } // block for local variables { if (this._token != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._token); xml = xml + ''; } } // block for local variables { if (this._password != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._password); xml = xml + ''; } } // block for local variables { if (this._passwordRepeat != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._passwordRepeat); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__recoverPassword.prototype.serialize = ws_safemode_pt__recoverPassword_serialize; function ws_safemode_pt__recoverPassword_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__recoverPassword(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing username'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'username')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setUsername(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing token'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'token')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setToken(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); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing passwordRepeat'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'passwordRepeat')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setPasswordRepeat(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://ws.safemode.pt/}sendEmailResponse // function ws_safemode_pt__sendEmailResponse () { this.typeMarker = 'ws_safemode_pt__sendEmailResponse'; this._return = null; } // // accessor is ws_safemode_pt__sendEmailResponse.prototype.getReturn // element get for return // - element type is {http://www.w3.org/2001/XMLSchema}int // - optional element // // element set for return // setter function is is ws_safemode_pt__sendEmailResponse.prototype.setReturn // function ws_safemode_pt__sendEmailResponse_getReturn() { return this._return;} ws_safemode_pt__sendEmailResponse.prototype.getReturn = ws_safemode_pt__sendEmailResponse_getReturn; function ws_safemode_pt__sendEmailResponse_setReturn(value) { this._return = value;} ws_safemode_pt__sendEmailResponse.prototype.setReturn = ws_safemode_pt__sendEmailResponse_setReturn; // // Serialize {http://ws.safemode.pt/}sendEmailResponse // function ws_safemode_pt__sendEmailResponse_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 + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._return); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__sendEmailResponse.prototype.serialize = ws_safemode_pt__sendEmailResponse_serialize; function ws_safemode_pt__sendEmailResponse_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__sendEmailResponse(); 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 = parseInt(value); } newobject.setReturn(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://ws.safemode.pt/}verificarEmail // function ws_safemode_pt__verificarEmail () { this.typeMarker = 'ws_safemode_pt__verificarEmail'; this._username = null; this._email = null; } // // accessor is ws_safemode_pt__verificarEmail.prototype.getUsername // element get for username // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for username // setter function is is ws_safemode_pt__verificarEmail.prototype.setUsername // function ws_safemode_pt__verificarEmail_getUsername() { return this._username;} ws_safemode_pt__verificarEmail.prototype.getUsername = ws_safemode_pt__verificarEmail_getUsername; function ws_safemode_pt__verificarEmail_setUsername(value) { this._username = value;} ws_safemode_pt__verificarEmail.prototype.setUsername = ws_safemode_pt__verificarEmail_setUsername; // // accessor is ws_safemode_pt__verificarEmail.prototype.getEmail // element get for email // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for email // setter function is is ws_safemode_pt__verificarEmail.prototype.setEmail // function ws_safemode_pt__verificarEmail_getEmail() { return this._email;} ws_safemode_pt__verificarEmail.prototype.getEmail = ws_safemode_pt__verificarEmail_getEmail; function ws_safemode_pt__verificarEmail_setEmail(value) { this._email = value;} ws_safemode_pt__verificarEmail.prototype.setEmail = ws_safemode_pt__verificarEmail_setEmail; // // Serialize {http://ws.safemode.pt/}verificarEmail // function ws_safemode_pt__verificarEmail_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._username != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._username); xml = xml + ''; } } // block for local variables { if (this._email != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._email); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__verificarEmail.prototype.serialize = ws_safemode_pt__verificarEmail_serialize; function ws_safemode_pt__verificarEmail_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__verificarEmail(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing username'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'username')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setUsername(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing email'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'email')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setEmail(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Constructor for XML Schema item {http://ws.safemode.pt/}verificarEmailResponse // function ws_safemode_pt__verificarEmailResponse () { this.typeMarker = 'ws_safemode_pt__verificarEmailResponse'; this._return = ''; } // // accessor is ws_safemode_pt__verificarEmailResponse.prototype.getReturn // element get for return // - element type is {http://www.w3.org/2001/XMLSchema}boolean // - required element // // element set for return // setter function is is ws_safemode_pt__verificarEmailResponse.prototype.setReturn // function ws_safemode_pt__verificarEmailResponse_getReturn() { return this._return;} ws_safemode_pt__verificarEmailResponse.prototype.getReturn = ws_safemode_pt__verificarEmailResponse_getReturn; function ws_safemode_pt__verificarEmailResponse_setReturn(value) { this._return = value;} ws_safemode_pt__verificarEmailResponse.prototype.setReturn = ws_safemode_pt__verificarEmailResponse_setReturn; // // Serialize {http://ws.safemode.pt/}verificarEmailResponse // function ws_safemode_pt__verificarEmailResponse_serialize(cxfjsutils, elementName, extraNamespaces) { var xml = ''; if (elementName != null) { xml = xml + '<'; xml = xml + elementName; if (extraNamespaces) { xml = xml + ' ' + extraNamespaces; } xml = xml + '>'; } // block for local variables { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._return); xml = xml + ''; } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__verificarEmailResponse.prototype.serialize = ws_safemode_pt__verificarEmailResponse_serialize; function ws_safemode_pt__verificarEmailResponse_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__verificarEmailResponse(); 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 = (value == 'true'); } newobject.setReturn(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } return newobject; } // // Constructor for XML Schema item {http://ws.safemode.pt/}sendEmail // function ws_safemode_pt__sendEmail () { this.typeMarker = 'ws_safemode_pt__sendEmail'; this._username = null; } // // accessor is ws_safemode_pt__sendEmail.prototype.getUsername // element get for username // - element type is {http://www.w3.org/2001/XMLSchema}string // - optional element // // element set for username // setter function is is ws_safemode_pt__sendEmail.prototype.setUsername // function ws_safemode_pt__sendEmail_getUsername() { return this._username;} ws_safemode_pt__sendEmail.prototype.getUsername = ws_safemode_pt__sendEmail_getUsername; function ws_safemode_pt__sendEmail_setUsername(value) { this._username = value;} ws_safemode_pt__sendEmail.prototype.setUsername = ws_safemode_pt__sendEmail_setUsername; // // Serialize {http://ws.safemode.pt/}sendEmail // function ws_safemode_pt__sendEmail_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._username != null) { xml = xml + ''; xml = xml + cxfjsutils.escapeXmlEntities(this._username); xml = xml + ''; } } if (elementName != null) { xml = xml + ''; } return xml; } ws_safemode_pt__sendEmail.prototype.serialize = ws_safemode_pt__sendEmail_serialize; function ws_safemode_pt__sendEmail_deserialize (cxfjsutils, element) { var newobject = new ws_safemode_pt__sendEmail(); cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element)); var curElement = cxfjsutils.getFirstElementChild(element); var item; cxfjsutils.trace('curElement: ' + cxfjsutils.traceElementName(curElement)); cxfjsutils.trace('processing username'); if (curElement != null && cxfjsutils.isNodeNamedNS(curElement, '', 'username')) { var value = null; if (!cxfjsutils.isElementNil(curElement)) { value = cxfjsutils.getNodeText(curElement); item = value; } newobject.setUsername(item); var item = null; if (curElement != null) { curElement = cxfjsutils.getNextElementSibling(curElement); } } return newobject; } // // Definitions for schema: null // http://localhost:8080/safemode/safemode-ws/utilizador?wsdl=1#types1 // // // Definitions for service: {http://impl.ws.safemode.pt/}UtilizadorWSImplService // // Javascript for {http://ws.safemode.pt/}UtilizadoresWS function ws_safemode_pt__UtilizadoresWS () { this.jsutils = new CxfApacheOrgUtil(); this.jsutils.interfaceObject = this; this.synchronous = false; this.url = null; this.client = null; this.response = null; this.globalElementSerializers = []; this.globalElementDeserializers = []; this.globalElementSerializers['{http://ws.safemode.pt/}recoverPasswordResponse'] = ws_safemode_pt__recoverPasswordResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}recoverPasswordResponse'] = ws_safemode_pt__recoverPasswordResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}sendEmailResponse'] = ws_safemode_pt__sendEmailResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}sendEmailResponse'] = ws_safemode_pt__sendEmailResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}recoverPassword'] = ws_safemode_pt__recoverPassword_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}recoverPassword'] = ws_safemode_pt__recoverPassword_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}verificarEmail'] = ws_safemode_pt__verificarEmail_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}verificarEmail'] = ws_safemode_pt__verificarEmail_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}verificarEmailResponse'] = ws_safemode_pt__verificarEmailResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}verificarEmailResponse'] = ws_safemode_pt__verificarEmailResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}sendEmail'] = ws_safemode_pt__sendEmail_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}sendEmail'] = ws_safemode_pt__sendEmail_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}recoverPasswordResponse'] = ws_safemode_pt__recoverPasswordResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}recoverPasswordResponse'] = ws_safemode_pt__recoverPasswordResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}recoverPassword'] = ws_safemode_pt__recoverPassword_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}recoverPassword'] = ws_safemode_pt__recoverPassword_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}sendEmailResponse'] = ws_safemode_pt__sendEmailResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}sendEmailResponse'] = ws_safemode_pt__sendEmailResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}verificarEmail'] = ws_safemode_pt__verificarEmail_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}verificarEmail'] = ws_safemode_pt__verificarEmail_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}verificarEmailResponse'] = ws_safemode_pt__verificarEmailResponse_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}verificarEmailResponse'] = ws_safemode_pt__verificarEmailResponse_deserialize; this.globalElementSerializers['{http://ws.safemode.pt/}sendEmail'] = ws_safemode_pt__sendEmail_serialize; this.globalElementDeserializers['{http://ws.safemode.pt/}sendEmail'] = ws_safemode_pt__sendEmail_deserialize; } function ws_safemode_pt__verificarEmail_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 ws_safemode_pt__verificarEmailResponse_deserializeResponse'); responseObject = ws_safemode_pt__verificarEmailResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } ws_safemode_pt__UtilizadoresWS.prototype.verificarEmail_onsuccess = ws_safemode_pt__verificarEmail_op_onsuccess; function ws_safemode_pt__verificarEmail_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); } } ws_safemode_pt__UtilizadoresWS.prototype.verificarEmail_onerror = ws_safemode_pt__verificarEmail_op_onerror; // // Operation {http://ws.safemode.pt/}verificarEmail // Wrapped operation. // parameter username // - simple type {http://www.w3.org/2001/XMLSchema}string// parameter email // - simple type {http://www.w3.org/2001/XMLSchema}string// function ws_safemode_pt__verificarEmail_op(successCallback, errorCallback, username, email) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(2); args[0] = username; args[1] = email; xml = this.verificarEmail_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.verificarEmail_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.verificarEmail_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } ws_safemode_pt__UtilizadoresWS.prototype.verificarEmail = ws_safemode_pt__verificarEmail_op; function ws_safemode_pt__verificarEmail_serializeInput(cxfjsutils, args) { var wrapperObj = new ws_safemode_pt__verificarEmail(); wrapperObj.setUsername(args[0]); wrapperObj.setEmail(args[1]); var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://ws.safemode.pt/' "); // block for local variables { xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:verificarEmail', null); } xml = xml + cxfjsutils.endSoap11Message(); return xml; } ws_safemode_pt__UtilizadoresWS.prototype.verificarEmail_serializeInput = ws_safemode_pt__verificarEmail_serializeInput; function ws_safemode_pt__verificarEmailResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = ws_safemode_pt__verificarEmailResponse_deserialize (cxfjsutils, partElement); return returnObject; } function ws_safemode_pt__sendEmail_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 ws_safemode_pt__sendEmailResponse_deserializeResponse'); responseObject = ws_safemode_pt__sendEmailResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } ws_safemode_pt__UtilizadoresWS.prototype.sendEmail_onsuccess = ws_safemode_pt__sendEmail_op_onsuccess; function ws_safemode_pt__sendEmail_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); } } ws_safemode_pt__UtilizadoresWS.prototype.sendEmail_onerror = ws_safemode_pt__sendEmail_op_onerror; // // Operation {http://ws.safemode.pt/}sendEmail // Wrapped operation. // parameter username // - simple type {http://www.w3.org/2001/XMLSchema}string// function ws_safemode_pt__sendEmail_op(successCallback, errorCallback, username) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(1); args[0] = username; xml = this.sendEmail_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.sendEmail_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.sendEmail_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } ws_safemode_pt__UtilizadoresWS.prototype.sendEmail = ws_safemode_pt__sendEmail_op; function ws_safemode_pt__sendEmail_serializeInput(cxfjsutils, args) { var wrapperObj = new ws_safemode_pt__sendEmail(); wrapperObj.setUsername(args[0]); var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://ws.safemode.pt/' "); // block for local variables { xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:sendEmail', null); } xml = xml + cxfjsutils.endSoap11Message(); return xml; } ws_safemode_pt__UtilizadoresWS.prototype.sendEmail_serializeInput = ws_safemode_pt__sendEmail_serializeInput; function ws_safemode_pt__sendEmailResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = ws_safemode_pt__sendEmailResponse_deserialize (cxfjsutils, partElement); return returnObject; } function ws_safemode_pt__recoverPassword_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 ws_safemode_pt__recoverPasswordResponse_deserializeResponse'); responseObject = ws_safemode_pt__recoverPasswordResponse_deserializeResponse(this.jsutils, element); client.user_onsuccess(responseObject); } } ws_safemode_pt__UtilizadoresWS.prototype.recoverPassword_onsuccess = ws_safemode_pt__recoverPassword_op_onsuccess; function ws_safemode_pt__recoverPassword_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); } } ws_safemode_pt__UtilizadoresWS.prototype.recoverPassword_onerror = ws_safemode_pt__recoverPassword_op_onerror; // // Operation {http://ws.safemode.pt/}recoverPassword // Wrapped operation. // parameter username // - simple type {http://www.w3.org/2001/XMLSchema}string// parameter token // - simple type {http://www.w3.org/2001/XMLSchema}string// parameter password // - simple type {http://www.w3.org/2001/XMLSchema}string// parameter passwordRepeat // - simple type {http://www.w3.org/2001/XMLSchema}string// function ws_safemode_pt__recoverPassword_op(successCallback, errorCallback, username, token, password, passwordRepeat) { this.client = new CxfApacheOrgClient(this.jsutils); var xml = null; var args = new Array(4); args[0] = username; args[1] = token; args[2] = password; args[3] = passwordRepeat; xml = this.recoverPassword_serializeInput(this.jsutils, args); this.client.user_onsuccess = successCallback; this.client.user_onerror = errorCallback; var closureThis = this; this.client.onsuccess = function(client, responseXml) { closureThis.recoverPassword_onsuccess(client, responseXml); }; this.client.onerror = function(client) { closureThis.recoverPassword_onerror(client); }; var requestHeaders = []; requestHeaders['SOAPAction'] = ''; this.jsutils.trace('synchronous = ' + this.synchronous); this.client.request(this.url, xml, null, this.synchronous, requestHeaders); } ws_safemode_pt__UtilizadoresWS.prototype.recoverPassword = ws_safemode_pt__recoverPassword_op; function ws_safemode_pt__recoverPassword_serializeInput(cxfjsutils, args) { var wrapperObj = new ws_safemode_pt__recoverPassword(); wrapperObj.setUsername(args[0]); wrapperObj.setToken(args[1]); wrapperObj.setPassword(args[2]); wrapperObj.setPasswordRepeat(args[3]); var xml; xml = cxfjsutils.beginSoap11Message("xmlns:jns0='http://ws.safemode.pt/' "); // block for local variables { xml = xml + wrapperObj.serialize(cxfjsutils, 'jns0:recoverPassword', null); } xml = xml + cxfjsutils.endSoap11Message(); return xml; } ws_safemode_pt__UtilizadoresWS.prototype.recoverPassword_serializeInput = ws_safemode_pt__recoverPassword_serializeInput; function ws_safemode_pt__recoverPasswordResponse_deserializeResponse(cxfjsutils, partElement) { var returnObject = ws_safemode_pt__recoverPasswordResponse_deserialize (cxfjsutils, partElement); return returnObject; } function ws_safemode_pt__UtilizadoresWS_impl_ws_safemode_pt__UtilizadorWSImplPort () { this.url = '/safemode/safemode-ws/utilizador'; } ws_safemode_pt__UtilizadoresWS_impl_ws_safemode_pt__UtilizadorWSImplPort.prototype = new ws_safemode_pt__UtilizadoresWS;