The following is a trivial example (in VB.NET) to illustrate the problem I am having:
***********************************
Dim oAuthClient As New AuthenticationService.AuthenticationClient()
' create object to hold the token
Dim adminToken As New AuthenticationService.OTAuthentication()
adminToken.AuthenticationToken = oAuthClient.AuthenticateUser("Admin", "AdminPassword")
Me.lblExpiration.Text = oAuthClient.GetSessionExpirationDate(adminToken)
*************************************
I am new to using Web Services and am simply trying to get a small example up and running. In this case, I am just trying to use the Authentication service to authenticate the admin user, store the token and display the expiration date of the token. My connection to the service seems ok, all my Visual Studio referneces seem to have been created just fine.
The user seems to be correctly authenticated and the token is generated, however anytime I go to use the OTAuthentication object (adminToken in this case) anywhere, I receive an error back from the service saying 'the parameter is incorrect'. Can't seem to get past this simple step. This seems to happen for me with any funtion call that requires a paramter of type OTAuthenticaiton. Any help would be appreciated.