IService..::..GetInventoryClassifications Method

Gets the inventory classifications.

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

Syntax


<OperationContractAttribute> _
<WebGetAttribute> _
Function GetInventoryClassifications As List(Of Classification)
[OperationContractAttribute]
[WebGetAttribute]
List<Classification^>^ GetInventoryClassifications()

Return Value

System.Collections.Generic.List(Of JiwaFinancials.Jiwa.JiwaApplication.Entities.Inventory.Classification)

Examples


Get a list of inventory classifications, and iterate through the results.
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 inventoryClassifications As List(Of JiwaWebServiceReference.Classification) = jiwaService.GetInventoryClassifications()

  For Each item As JiwaWebServiceReference.Classification In inventoryClassifications
      Console.WriteLine(item.Description)
  Next

  jiwaService.Logoff()
  jiwaService.Close()