IService..::..GetInventoryItemFromUPC Method

Gets the inventory item from a UPC code.

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

Syntax


[OperationContractAttribute]
[WebGetAttribute]
Inventory GetInventoryItemFromUPC(
	string PartNo
)
<OperationContractAttribute> _
<WebGetAttribute> _
Function GetInventoryItemFromUPC ( _
	PartNo As String _
) As Inventory
[OperationContractAttribute]
[WebGetAttribute]
Inventory^ GetInventoryItemFromUPC(
	String^ PartNo
)

Parameters

PartNo
Type: String
The part no.

Return Value

JiwaFinancials.Jiwa.JiwaInventory.XML.Inventory

Examples


Get the an inventory item, given the inventoryid, debtorid, warehouseid, date and quantity.
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.GetInventoryItemFromUPC("52438231")
  jiwaService.Logoff()
  jiwaService.Close()