IService..::..SaveInventoryCategory Method
Saves the inventory category.
Namespace:
JiwaFinancials.Jiwa.JiwaWebService.WCFAssembly: JiwaWebService (in JiwaWebService.exe)
Syntax
[OperationContractAttribute] [WebGetAttribute] Category SaveInventoryCategory( Category Category )
<OperationContractAttribute> _ <WebGetAttribute> _ Function SaveInventoryCategory ( _ Category As Category _ ) As Category
[OperationContractAttribute] [WebGetAttribute] Category^ SaveInventoryCategory( Category^ Category )
Parameters
- Category
- Type: JiwaFinancials.Jiwa.JiwaApplication.Entities.Inventory..::..Category
The category.
Return Value
JiwaFinancials.Jiwa.JiwaApplication.Entities.Inventory.CategoryExamples
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 newCat As New JiwaWebServiceReference.Category newCat.Description = "new category 1" newCat.CategoryNo = 1 newCat = jiwaService.SaveInventoryCategory(newCat) Console.WriteLine(newCat.RecID) jiwaService.Logoff() jiwaService.Close()