IService..::..GetCurrentUser Method
Gets the current user.
Namespace:
JiwaFinancials.Jiwa.JiwaWebService.WCFAssembly: JiwaWebService (in JiwaWebService.exe)
Syntax
[OperationContractAttribute] [WebGetAttribute] Staff GetCurrentUser()
<OperationContractAttribute> _ <WebGetAttribute> _ Function GetCurrentUser As Staff
[OperationContractAttribute] [WebGetAttribute] Staff^ GetCurrentUser()
Return Value
JiwaFinancials.Jiwa.JiwaApplication.Entities.Staff.StaffExamples
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 staff As JiwaWebServiceReference.Staff = jiwaService.GetCurrentUser() Console.WriteLine(staff.UserName) jiwaService.Logoff() jiwaService.Close()