IService..::..GetInventoryItems Method

Gets all the inventory items.

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

Syntax


Return Value

System.Collections.Generic.List(Of JiwaFinancials.Jiwa.JiwaInventory.XML.Inventory)

Examples


Get a list of all inventory items, 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 items = jiwaService.GetInventoryItems()
  For Each item As JiwaWebServiceReference.Inventory In items
      Console.WriteLine(item.PartNo)
  Next

  jiwaService.Logoff()
  jiwaService.Close()