UsersService


Click here for a complete list of operations.

GetUserByName

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
sWSUserName:
sWSPassword:
username:

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_users_module.asmx HTTP/1.1
Host: kbcsony.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://users.tvinci.com/GetUserByName"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetUserByName xmlns="http://users.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <username>string</username>
    </GetUserByName>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetUserByNameResponse xmlns="http://users.tvinci.com/">
      <GetUserByNameResult>
        <resp>
          <Code>int</Code>
          <Message>string</Message>
          <Args>
            <KeyValuePair xsi:nil="true" />
            <KeyValuePair xsi:nil="true" />
          </Args>
        </resp>
        <user>
          <m_user>
            <m_oBasicData xsi:nil="true" />
            <m_domianID>int</m_domianID>
            <m_sSiteGUID>string</m_sSiteGUID>
            <m_isDomainMaster>boolean</m_isDomainMaster>
            <m_oDynamicData xsi:nil="true" />
            <m_eUserState>Unknown or Activated or SingleSignIn or DoubleSignIn or LoggedOut</m_eUserState>
            <m_eSuspendState>OK or Suspended</m_eSuspendState>
            <m_nSSOOperatorID>int</m_nSSOOperatorID>
            <IsActivationGracePeriod>boolean</IsActivationGracePeriod>
          </m_user>
          <m_RespStatus>OK or UserExists or UserDoesNotExist or WrongPasswordOrUserName or InsideLockTime or NotImplementedYet or UserNotActivated or UserAllreadyLoggedIn or UserDoubleLogIn or SessionLoggedOut or DeviceNotRegistered or ErrorOnSendingMail or UserEmailAlreadyExists or ErrorOnUpdatingUserType or UserTypeNotExist or UserNotMasterApproved or ErrorOnInitUser or ErrorOnSaveUser or UserNotIndDomain or TokenNotFound or UserAlreadyMasterApproved or UserWithNoDomain or InternalError or LoginServerDown or UserSuspended or UserCreatedWithNoRole or ExternalIdAlreadyExists or ExternalError or PasswordPolicyViolation or PasswordExpired</m_RespStatus>
          <m_userInstanceID>string</m_userInstanceID>
          <ExternalCode>int</ExternalCode>
          <ExternalMessage>string</ExternalMessage>
        </user>
      </GetUserByNameResult>
    </GetUserByNameResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_users_module.asmx HTTP/1.1
Host: kbcsony.com
Content-Type: application/soap+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>
    <GetUserByName xmlns="http://users.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <username>string</username>
    </GetUserByName>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+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>
    <GetUserByNameResponse xmlns="http://users.tvinci.com/">
      <GetUserByNameResult>
        <resp>
          <Code>int</Code>
          <Message>string</Message>
          <Args>
            <KeyValuePair xsi:nil="true" />
            <KeyValuePair xsi:nil="true" />
          </Args>
        </resp>
        <user>
          <m_user>
            <m_oBasicData xsi:nil="true" />
            <m_domianID>int</m_domianID>
            <m_sSiteGUID>string</m_sSiteGUID>
            <m_isDomainMaster>boolean</m_isDomainMaster>
            <m_oDynamicData xsi:nil="true" />
            <m_eUserState>Unknown or Activated or SingleSignIn or DoubleSignIn or LoggedOut</m_eUserState>
            <m_eSuspendState>OK or Suspended</m_eSuspendState>
            <m_nSSOOperatorID>int</m_nSSOOperatorID>
            <IsActivationGracePeriod>boolean</IsActivationGracePeriod>
          </m_user>
          <m_RespStatus>OK or UserExists or UserDoesNotExist or WrongPasswordOrUserName or InsideLockTime or NotImplementedYet or UserNotActivated or UserAllreadyLoggedIn or UserDoubleLogIn or SessionLoggedOut or DeviceNotRegistered or ErrorOnSendingMail or UserEmailAlreadyExists or ErrorOnUpdatingUserType or UserTypeNotExist or UserNotMasterApproved or ErrorOnInitUser or ErrorOnSaveUser or UserNotIndDomain or TokenNotFound or UserAlreadyMasterApproved or UserWithNoDomain or InternalError or LoginServerDown or UserSuspended or UserCreatedWithNoRole or ExternalIdAlreadyExists or ExternalError or PasswordPolicyViolation or PasswordExpired</m_RespStatus>
          <m_userInstanceID>string</m_userInstanceID>
          <ExternalCode>int</ExternalCode>
          <ExternalMessage>string</ExternalMessage>
        </user>
      </GetUserByNameResult>
    </GetUserByNameResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /restful_v5_2_8/ws_users_module.asmx/GetUserByName HTTP/1.1
Host: kbcsony.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

sWSUserName=string&sWSPassword=string&username=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<UserResponse xmlns="http://users.tvinci.com/">
  <resp>
    <Code>int</Code>
    <Message>string</Message>
    <Args>
      <KeyValuePair>
        <key>string</key>
        <value>string</value>
      </KeyValuePair>
      <KeyValuePair>
        <key>string</key>
        <value>string</value>
      </KeyValuePair>
    </Args>
  </resp>
  <user>
    <m_user>
      <m_oBasicData>
        <m_sFirstName>string</m_sFirstName>
        <m_sLastName>string</m_sLastName>
        <m_sUserName>string</m_sUserName>
        <m_sEmail>string</m_sEmail>
        <m_sAddress>string</m_sAddress>
        <m_sCity>string</m_sCity>
        <m_Country d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <m_sZip>string</m_sZip>
        <m_sPhone>string</m_sPhone>
        <m_sFacebookID>string</m_sFacebookID>
        <m_sFacebookImage>string</m_sFacebookImage>
        <m_sFacebookToken>string</m_sFacebookToken>
        <m_sAffiliateCode>string</m_sAffiliateCode>
        <m_CoGuid>string</m_CoGuid>
        <m_UserType d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <RoleIds d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CreateDate>dateTime</CreateDate>
        <UpdateDate>dateTime</UpdateDate>
        <LastLoginDate>dateTime</LastLoginDate>
        <FailedLoginCount>int</FailedLoginCount>
        <m_State d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <m_bIsFacebookImagePermitted>boolean</m_bIsFacebookImagePermitted>
        <m_ExternalToken>string</m_ExternalToken>
        <m_sTwitterToken>string</m_sTwitterToken>
        <m_sTwitterTokenSecret>string</m_sTwitterTokenSecret>
      </m_oBasicData>
      <m_domianID>int</m_domianID>
      <m_sSiteGUID>string</m_sSiteGUID>
      <m_isDomainMaster>boolean</m_isDomainMaster>
      <m_oDynamicData>
        <m_sUserData d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <UserId>int</UserId>
      </m_oDynamicData>
      <m_eUserState>Unknown or Activated or SingleSignIn or DoubleSignIn or LoggedOut</m_eUserState>
      <m_eSuspendState>OK or Suspended</m_eSuspendState>
      <m_nSSOOperatorID>int</m_nSSOOperatorID>
      <IsActivationGracePeriod>boolean</IsActivationGracePeriod>
    </m_user>
    <m_RespStatus>OK or UserExists or UserDoesNotExist or WrongPasswordOrUserName or InsideLockTime or NotImplementedYet or UserNotActivated or UserAllreadyLoggedIn or UserDoubleLogIn or SessionLoggedOut or DeviceNotRegistered or ErrorOnSendingMail or UserEmailAlreadyExists or ErrorOnUpdatingUserType or UserTypeNotExist or UserNotMasterApproved or ErrorOnInitUser or ErrorOnSaveUser or UserNotIndDomain or TokenNotFound or UserAlreadyMasterApproved or UserWithNoDomain or InternalError or LoginServerDown or UserSuspended or UserCreatedWithNoRole or ExternalIdAlreadyExists or ExternalError or PasswordPolicyViolation or PasswordExpired</m_RespStatus>
    <m_userInstanceID>string</m_userInstanceID>
    <ExternalCode>int</ExternalCode>
    <ExternalMessage>string</ExternalMessage>
  </user>
</UserResponse>