public static void getAllCategory() { CodeServiceClient client = new CodeServiceClient(); AuthHeader authHeader = new AuthHeader(); HeaderUtil.loadHeader(authHeader); CategoryType[] result = null; ResHeader resHeader = client.getAllCategory(authHeader, out result); Console.WriteLine("CodeService.getAllCategory(): "); ObjectDumper.WriteResponse(resHeader, result); }
public static async Task <int> CallCodeService() { var service = new CodeServiceClient(); var header = new MessageHeader() { MessageID = "101", TransactionID = "101", SenderID = "101", SenderApplication = "Debug", ReceiverID = "101", ReceiverApplication = "Effica", CharacterSet = "UTF-16" }; var common = new LisCommon() { ContractKey = ContractKey, UserId = UserId, CallingSystem = CallingSystem, CallingUserId = UserId }; // Initialize Request var req = new CodeReq() { CodeSetId = CodeSet.KHPalv }; // Structure for return data var rsp = new IntegrationCodeService(); service.GetCodeService(ref header, common, req, out rsp); return(0); }