IService..::..Logon Method
Logs on with the specified user name and password. Calling the Logon will establish a session, all subsequent calls must be with the same session.
Namespace:
JiwaFinancials.Jiwa.JiwaWebService.WCFAssembly: JiwaWebService (in JiwaWebService.exe)
Syntax
[OperationContractAttribute] [WebInvokeAttribute] void Logon( string UserName, string Password )
<OperationContractAttribute> _ <WebInvokeAttribute> _ Sub Logon ( _ UserName As String, _ Password As String _ )
[OperationContractAttribute] [WebInvokeAttribute] void Logon( String^ UserName, String^ Password )
Examples
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") 'Do some operations jiwaService.Logoff() jiwaService.Close()