Created
July 1, 2016 17:15
-
-
Save MikeLarned/51463ade6ddce6e209c916446f066d26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var auth = new RequestAuthentication | |
{ | |
Item = new XDDSAuthType | |
{ | |
RequesterID = new UIDType | |
{ | |
aliasType = OpenTextAccount.AliasType, | |
Value = _rootAccount.Username | |
}, | |
Password = _rootAccount.Password | |
} | |
}; | |
var request = new Request(); | |
var response = new Response(); | |
var userInfoRequest = new UserInfoRequest(); | |
var userInfoResult = new UserInfoResult(); | |
request.ReceiverKey = _service.Url; | |
request.Authentication = auth; | |
_service.RequestValue = request; | |
_service.ResponseValue = response; | |
var userAlias = new UserAliasType | |
{ | |
Item = _account.UserId.ToString() // Uint of user id | |
}; | |
userInfoRequest.UserAlias = userAlias; | |
try | |
{ | |
userInfoResult = _service.UserInfo(userInfoRequest); | |
} | |
catch (Exception exception) | |
{ | |
throw exception; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment