IService..::..ChangeCurrentWarehouse Method

Changes the currently logged warehouse

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

Syntax


[OperationContractAttribute]
[WebGetAttribute]
void ChangeCurrentWarehouse(
	string LogicalWarehouseID
)
<OperationContractAttribute> _
<WebGetAttribute> _
Sub ChangeCurrentWarehouse ( _
	LogicalWarehouseID As String _
)
[OperationContractAttribute]
[WebGetAttribute]
void ChangeCurrentWarehouse(
	String^ LogicalWarehouseID
)

Parameters

LogicalWarehouseID
Type: String
The LogicalWarehouseID.

Examples


Logon and then change the current warehouse
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")

  jiwaService.ChangeCurrentWarehouse("ZZZZZZZZZZ0000000000")


  jiwaService.Logoff()
  jiwaService.Close()