authorizationTicket - Authentication string returned by AuthService.asmx.
xmlDoc - XML document containing the new OC's information
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Missing required fields: Name, Addr, City</error> <error>Invalid XML Document</error> ... </result>
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Company Name is not specified.</error> <error>Could not find matching Originating Company</error> ... </result>
<result status="OK"/>The XML result has the following format for an unsuccessful result:
<result status="Error"> <error>Company Name is not specified.</error> <error>Could not find matching Originating Company</error> ... </result>
string userName = "user"; string password = "password"; AuthService authService = new AuthService(); string authorizationTicket = authService.GetUserAuthTicket(userName, password); OriginatingCompany oc = new OriginatingCompany(); string csvResult = oc.ExportContactInformationOfAllOriginatingCompanies(authorizationTicket);
string userName = "user"; string password = "password"; string companyName = "companyName"; AuthService authService = new AuthService(); string sTicket = authService.GetUserAuthTicket(userName, password); OriginatingCompany oc = new OriginatingCompany(); string csvResult = oc.GetUsersOfOriginatingCompanies(authorizationTicket, companyName);