IService..::..GetChangedInventoryItems Method

Gets the inventory items which have changed since the provided date.

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

Syntax


[OperationContractAttribute]
[WebGetAttribute]
List<Inventory> GetChangedInventoryItems(
	DateTime StartDate
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetChangedInventoryItems ( _
	StartDate As DateTime _
) As List(Of Inventory)
[OperationContractAttribute]
[WebGetAttribute]
List<Inventory^>^ GetChangedInventoryItems(
	DateTime^ StartDate
)

Parameters

StartDate
Type: DateTime
Any items changed at or after this date will be returned.

Return Value

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

Examples


Get a list of all inventory items changed since the provided date, 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.GetChangedInventoryItems("2014-01-29")
  For Each item As JiwaWebServiceReference.Inventory In items
      Console.WriteLine(item.PartNo)
  Next

  jiwaService.Logoff()
  jiwaService.Close()