IService..::..GetChangedDebtorTransactions Method

Gets all debtor transactions changed since the provided date, for a given Debtor.

Namespace:  JiwaFinancials.Jiwa.JiwaWebService.WCF
Assembly:  JiwaWebService (in JiwaWebService.exe)

Syntax


[OperationContractAttribute]
[WebGetAttribute]
List<DebtorTransaction> GetChangedDebtorTransactions(
	string DebtorID,
	DateTime StartDate
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetChangedDebtorTransactions ( _
	DebtorID As String, _
	StartDate As DateTime _
) As List(Of DebtorTransaction)
[OperationContractAttribute]
[WebGetAttribute]
List<DebtorTransaction^>^ GetChangedDebtorTransactions(
	String^ DebtorID, 
	DateTime^ StartDate
)

Parameters

DebtorID
Type: String
The DebtorID.
StartDate
Type: DateTime
Any debtor transactions changed at or after this date will be returned.

Return Value

System.Collections.Generic.List(Of JiwaFinancials.Jiwa.Entities.Debtor.Transaction).

Examples


Gets the all the transactions for a specific debtor that have changed since Jan 29 2014 and iterates through the results, outputting the InvRemitNo. field.
VB.NET
Dim binding As System.ServiceModel.WSHttpBinding = New System.ServiceModel.WSHttpBinding()
  binding.MaxReceivedMessageSize = 50000000
  binding.ReaderQuotas.MaxArrayLength = 50000000
  binding.ReaderQuotas.MaxStringContentLength = 50000000
  Dim jiwaService As JiwaWebServiceReference.ServiceClient = New JiwaWebServiceReference.ServiceClient(binding, New ServiceModel.EndpointAddress("http://localhost:8001/jiwa7/services/7.0"))
  jiwaService.Logon("Admin", "password")

  Dim debtorTransactions As List(Of JiwaWebServiceReference.DebtorTransaction) = jiwaService.GetChangedDebtorTransactions("0000000061000000001V", "2014-01-29")

  For Each item As JiwaWebServiceReference.DebtorTransaction In debtorTransactions
      Console.WriteLine(item.InvRemitNo)
  Next

  jiwaService.Logoff()
  jiwaService.Close()