IService..::..GetDebtors Method

Gets a list of all the debtors.

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

Syntax


Examples


Gets the all the debtors and iterates through the list and outputs the debtor name.
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 debtors As List(Of JiwaWebServiceReference.Debtor1) = jiwaService.GetDebtors

  For Each item As JiwaWebServiceReference.Debtor1 In debtors
      Console.WriteLine(item.Name)
  Next

  jiwaService.Logoff()
  jiwaService.Close()