AWS Examples

<back to all web services

GetUserInfo

GetUserInfoResponse Parameters:
NameParameterData TypeRequiredDescription
SessionformAuthUserSessionNo
UserAuthformUserAuthNo
UserAuthDetailsformList<UserAuthDetails>No
ResponseStatusformResponseStatusNo
AuthUserSession Parameters:
NameParameterData TypeRequiredDescription
ReferrerUrlformstringNo
IdformstringNo
UserAuthIdformstringNo
UserAuthNameformstringNo
UserNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
FacebookUserNameformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
RequestTokenSecretformstringNo
CreatedAtformDateTimeNo
LastModifiedformDateTimeNo
RolesformList<string>No
PermissionsformList<string>No
IsAuthenticatedformboolNo
FromTokenformboolNo
ProfileUrlformstringNo
SequenceformstringNo
TagformlongNo
ProviderOAuthAccessformList<IAuthTokens>No
IAuthTokens Parameters:
NameParameterData TypeRequiredDescription
ProviderformstringNo
UserIdformstringNo
AccessTokenformstringNo
AccessTokenSecretformstringNo
RefreshTokenformstringNo
RefreshTokenExpiryformDateTime?No
RequestTokenformstringNo
RequestTokenSecretformstringNo
ItemsformDictionary<string, string>No
UserAuth Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
EmailformstringNo
PrimaryEmailformstringNo
PhoneNumberformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
CompanyformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
FullNameformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
SaltformstringNo
PasswordHashformstringNo
DigestHa1HashformstringNo
RolesformList<string>No
PermissionsformList<string>No
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
InvalidLoginAttemptsformintNo
LastLoginAttemptformDateTime?No
LockedDateformDateTime?No
RecoveryTokenformstringNo
RefIdformint?No
RefIdStrformstringNo
MetaformDictionary<string, string>No
UserAuthDetails Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserAuthIdformintNo
ProviderformstringNo
UserIdformstringNo
UserNameformstringNo
FullNameformstringNo
DisplayNameformstringNo
FirstNameformstringNo
LastNameformstringNo
CompanyformstringNo
EmailformstringNo
PhoneNumberformstringNo
BirthDateformDateTime?No
BirthDateRawformstringNo
AddressformstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
CountryformstringNo
CultureformstringNo
GenderformstringNo
LanguageformstringNo
MailAddressformstringNo
NicknameformstringNo
PostalCodeformstringNo
TimeZoneformstringNo
RefreshTokenformstringNo
RefreshTokenExpiryformDateTime?No
RequestTokenformstringNo
RequestTokenSecretformstringNo
ItemsformDictionary<string, string>No
AccessTokenformstringNo
AccessTokenSecretformstringNo
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo
RefIdformint?No
RefIdStrformstringNo
MetaformDictionary<string, string>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap12 suffix or ?format=soap12

HTTP + SOAP12

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap12 HTTP/1.1 
Host: awsapps.servicestack.net 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<GetUserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AwsAuth" />

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<GetUserInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AwsAuth">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Session xmlns:d2p1="http://schemas.datacontract.org/2004/07/ServiceStack">
    <d2p1:ReferrerUrl>String</d2p1:ReferrerUrl>
    <d2p1:Id>String</d2p1:Id>
    <d2p1:UserAuthId>String</d2p1:UserAuthId>
    <d2p1:UserAuthName>String</d2p1:UserAuthName>
    <d2p1:UserName>String</d2p1:UserName>
    <d2p1:TwitterUserId>String</d2p1:TwitterUserId>
    <d2p1:TwitterScreenName>String</d2p1:TwitterScreenName>
    <d2p1:FacebookUserId>String</d2p1:FacebookUserId>
    <d2p1:FacebookUserName>String</d2p1:FacebookUserName>
    <d2p1:FirstName>String</d2p1:FirstName>
    <d2p1:LastName>String</d2p1:LastName>
    <d2p1:DisplayName>String</d2p1:DisplayName>
    <d2p1:Company>String</d2p1:Company>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:PrimaryEmail>String</d2p1:PrimaryEmail>
    <d2p1:PhoneNumber>String</d2p1:PhoneNumber>
    <d2p1:BirthDate>0001-01-01T00:00:00</d2p1:BirthDate>
    <d2p1:BirthDateRaw>String</d2p1:BirthDateRaw>
    <d2p1:Address>String</d2p1:Address>
    <d2p1:Address2>String</d2p1:Address2>
    <d2p1:City>String</d2p1:City>
    <d2p1:State>String</d2p1:State>
    <d2p1:Country>String</d2p1:Country>
    <d2p1:Culture>String</d2p1:Culture>
    <d2p1:FullName>String</d2p1:FullName>
    <d2p1:Gender>String</d2p1:Gender>
    <d2p1:Language>String</d2p1:Language>
    <d2p1:MailAddress>String</d2p1:MailAddress>
    <d2p1:Nickname>String</d2p1:Nickname>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:TimeZone>String</d2p1:TimeZone>
    <d2p1:RequestTokenSecret>String</d2p1:RequestTokenSecret>
    <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
    <d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
    <d2p1:Roles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:Roles>
    <d2p1:Permissions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:Permissions>
    <d2p1:IsAuthenticated>false</d2p1:IsAuthenticated>
    <d2p1:FromToken>false</d2p1:FromToken>
    <d2p1:ProfileUrl>String</d2p1:ProfileUrl>
    <d2p1:Sequence>String</d2p1:Sequence>
    <d2p1:Tag>0</d2p1:Tag>
    <d2p1:ProviderOAuthAccess xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType i:nil="true" />
    </d2p1:ProviderOAuthAccess>
  </Session>
  <UserAuth xmlns:d2p1="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:Address>String</d2p1:Address>
    <d2p1:Address2>String</d2p1:Address2>
    <d2p1:BirthDate>0001-01-01T00:00:00</d2p1:BirthDate>
    <d2p1:BirthDateRaw>String</d2p1:BirthDateRaw>
    <d2p1:City>String</d2p1:City>
    <d2p1:Company>String</d2p1:Company>
    <d2p1:Country>String</d2p1:Country>
    <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
    <d2p1:Culture>String</d2p1:Culture>
    <d2p1:DigestHa1Hash>String</d2p1:DigestHa1Hash>
    <d2p1:DisplayName>String</d2p1:DisplayName>
    <d2p1:Email>String</d2p1:Email>
    <d2p1:FirstName>String</d2p1:FirstName>
    <d2p1:FullName>String</d2p1:FullName>
    <d2p1:Gender>String</d2p1:Gender>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:InvalidLoginAttempts>0</d2p1:InvalidLoginAttempts>
    <d2p1:Language>String</d2p1:Language>
    <d2p1:LastLoginAttempt>0001-01-01T00:00:00</d2p1:LastLoginAttempt>
    <d2p1:LastName>String</d2p1:LastName>
    <d2p1:LockedDate>0001-01-01T00:00:00</d2p1:LockedDate>
    <d2p1:MailAddress>String</d2p1:MailAddress>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
    <d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
    <d2p1:Nickname>String</d2p1:Nickname>
    <d2p1:PasswordHash>String</d2p1:PasswordHash>
    <d2p1:Permissions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:Permissions>
    <d2p1:PhoneNumber>String</d2p1:PhoneNumber>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:PrimaryEmail>String</d2p1:PrimaryEmail>
    <d2p1:RecoveryToken>String</d2p1:RecoveryToken>
    <d2p1:RefId>0</d2p1:RefId>
    <d2p1:RefIdStr>String</d2p1:RefIdStr>
    <d2p1:Roles xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:Roles>
    <d2p1:Salt>String</d2p1:Salt>
    <d2p1:State>String</d2p1:State>
    <d2p1:TimeZone>String</d2p1:TimeZone>
    <d2p1:UserName>String</d2p1:UserName>
  </UserAuth>
  <UserAuthDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/ServiceStack.Auth">
    <d2p1:UserAuthDetails>
      <d2p1:AccessToken>String</d2p1:AccessToken>
      <d2p1:AccessTokenSecret>String</d2p1:AccessTokenSecret>
      <d2p1:Address>String</d2p1:Address>
      <d2p1:Address2>String</d2p1:Address2>
      <d2p1:BirthDate>0001-01-01T00:00:00</d2p1:BirthDate>
      <d2p1:BirthDateRaw>String</d2p1:BirthDateRaw>
      <d2p1:City>String</d2p1:City>
      <d2p1:Company>String</d2p1:Company>
      <d2p1:Country>String</d2p1:Country>
      <d2p1:CreatedDate>0001-01-01T00:00:00</d2p1:CreatedDate>
      <d2p1:Culture>String</d2p1:Culture>
      <d2p1:DisplayName>String</d2p1:DisplayName>
      <d2p1:Email>String</d2p1:Email>
      <d2p1:FirstName>String</d2p1:FirstName>
      <d2p1:FullName>String</d2p1:FullName>
      <d2p1:Gender>String</d2p1:Gender>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:Items xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Items>
      <d2p1:Language>String</d2p1:Language>
      <d2p1:LastName>String</d2p1:LastName>
      <d2p1:MailAddress>String</d2p1:MailAddress>
      <d2p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d2p1:Meta>
      <d2p1:ModifiedDate>0001-01-01T00:00:00</d2p1:ModifiedDate>
      <d2p1:Nickname>String</d2p1:Nickname>
      <d2p1:PhoneNumber>String</d2p1:PhoneNumber>
      <d2p1:PostalCode>String</d2p1:PostalCode>
      <d2p1:Provider>String</d2p1:Provider>
      <d2p1:RefId>0</d2p1:RefId>
      <d2p1:RefIdStr>String</d2p1:RefIdStr>
      <d2p1:RefreshToken>String</d2p1:RefreshToken>
      <d2p1:RefreshTokenExpiry>0001-01-01T00:00:00</d2p1:RefreshTokenExpiry>
      <d2p1:RequestToken>String</d2p1:RequestToken>
      <d2p1:RequestTokenSecret>String</d2p1:RequestTokenSecret>
      <d2p1:State>String</d2p1:State>
      <d2p1:TimeZone>String</d2p1:TimeZone>
      <d2p1:UserAuthId>0</d2p1:UserAuthId>
      <d2p1:UserId>String</d2p1:UserId>
      <d2p1:UserName>String</d2p1:UserName>
    </d2p1:UserAuthDetails>
  </UserAuthDetails>
</GetUserInfoResponse>

    </soap12:Body>
</soap12:Envelope>