How to retrieve a Solomon Customer Record Object


ctDynamicsSLCustomers.customers customersService  = new ctDynamicsSLCustomers.customers();
ctDynamicsSLCustomers.ctDynamicsSLHeader cHeader = new ctDynamicsSLCustomers.ctDynamicsSLHeader();
cHeader.licenseExpiration = "myLicenseExpirateDate"; //leave blank if no expiration date;
cHeader.licenseKey = "myLicenseKey";
cHeader.licenseName = "myCompanyName";
cHeader.siteKey = "encryptionKey";
cHeader.siteID = "mySiteID";
cHeader.cpnyID = "mySolomonCpnyID";
cHeader.softwareName = "CTAPI";
customersService.ctDynamicsSLHeaderValue = cHeader;
customersService.Url = "
http://localhost/ctDynamicsSL/customers.asmx";
   
ctDynamicsSLCustomers.customer oCustomer = customersService.getCustomer(custID);
System.Diagnostics.Debug.WriteLine(oCustomer.Name);
//You now have a customer object populated with the solomon customer