How to retrieve a Solomon Order Record Object


ctDynamicsSLOrders.orders ordersService = new ctDynamicsSLOrders.orders();
ctDynamicsSLOrders.ctDynamicsSLHeader oHeader = new ctDynamicsSLOrders.ctDynamicsSLHeader();
oHeader.licenseExpiration = "myLicenseExpirateDate"; //leave blank if no expiration date; oHeader.licenseKey = "myLicenseKey";
oHeader.licenseName = "myCompanyName";
oHeader.siteKey = "encryptionKey"; oHeader.siteID = "mySiteID";
oHeader.cpnyID = "mySolomonCpnyID";
oHeader.softwareName = "CTAPI";
ordersService.ctDynamicsSLHeaderValue = oHeader;
ordersService.Url = "http://localhost/ctDynamicsSL/orders.asmx";

ctDynamicsSLOrders.order oOrder = ordersService.getOrder(ordNbr);
System.Diagnostics.Debug.WriteLine(oOrder.CustID);
//You now have an order object populated with the solomon order