sTicket - Authentication string returned by AuthService.asmx.
xmlDoc - XML document containing the new user's information
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Missing required fields: First Name, Last Name</error> <error>Invalid Email format</error> ... </result>
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Branch not found</error> <error>Invalid Email format</error> ... </result>
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Password must contain at least 1 number and 1 letter</error> </result>
string userName = "user"; string password = "password"; string newPassword = "newPassword"; string customerCode="pmlxxxx"; AuthService authService = new AuthService(); string sTicket = authService.GetPmlUserAuthTicket(userName, password, customerCode); PmlUser pmlUser = new PmlUser(); string xmlResult = pmlUser.ChangePassword(sTicket, newPassword);
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Password must contain at least 1 number and 1 letter</error> </result>
string customerCode = "pmlxxxx"; string userName = "user"; string oldPassword = "password"; string newPassword = "newPassword"; PmlUser pmlUser = new PmlUser(); string xmlResult = pmlUser.ChangePasswordWithoutAuthTicket(customerCode, userName, oldPassword, newPassword);
string userName = "user"; string password = "password"; AuthService authService = new AuthService(); string sTicket = authService.GetUserAuthTicket(userName, password); PmlUser pmlUser = new PmlUser(); string csvResult = pmlUser.ExportContactInformationOfAllPmlUsers(sTicket);
string userName = "user"; string password = "password"; AuthService authService = new AuthService(); string sTicket = authService.GetUserAuthTicket(userName, password); string pmlUserLoginName = "loginName"; PmlUser pmlUser = new PmlUser(); string csvResult = pmlUser.ExportPMLUserInformation(sTicket, pmlUserLoginName);
string userName = "user"; string password = "password"; AuthService authService = new AuthService(); string sTicket = authService.GetUserAuthTicket(userName, password); PmlUser pmlUser = new PmlUser(); string csvResult = pmlUser.ExportRelationshipInformationOfPmlUser(sTicket, "PMLUserName");