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.WCF
Assembly:  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
)

Parameters

UserName
Type: String
Jiwa username.
Password
Type: String
Jiwa password.

Examples


Logs on, establishing a session.
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()