public void RegisterBlockedAmountForTransaction(string companyCode, string transactionCode, decimal transactionNumber, int transactionLineId, decimal blockedValue) { try { var cmd = new CommandRequest { SessionId = session.SessionId, Command = new RegisterBlockedAmountForTransaction { CompanyCode = companyCode, TransactionCode = transactionCode, TransactionNumber = transactionNumber, TransactionLineId = transactionLineId, BlockedValue = blockedValue } }; var transactionBlockedValueClient = clientFactory.CreateTransactionBlockedValueClient(session.ClusterUrl); transactionBlockedValueClient.Process(session.SessionId, cmd.Command); Console.WriteLine("Blocked value successfully registered."); } catch (FaultException <TransactionBlockedValueServiceFault> e) { Console.WriteLine("Failed to register blocked value:"); Console.WriteLine("Code: {0}", e.Code); Console.WriteLine("Message: {0}", e.Message); } }