IService..::..GetInventoryItem Method

Gets an inventory item, given the InventoryID

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

Syntax


[OperationContractAttribute]
[WebGetAttribute]
Inventory GetInventoryItem(
	string InventoryID
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetInventoryItem ( _
	InventoryID As String _
) As Inventory
[OperationContractAttribute]
[WebGetAttribute]
Inventory^ GetInventoryItem(
	String^ InventoryID
)

Parameters

InventoryID
Type: String
The inventory identifier.

Return Value

JiwaFinancials.Jiwa.JiwaInventory.XML.Inventory

Examples


Gets an inventory item, given the inventoryid.
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 inventoryItem = jiwaService.GetInventoryItem("000000000K00000000BQ")
  jiwaService.Logoff()
  jiwaService.Close()