UsersService


Click here for a complete list of operations.

SetUserData

Test

The test form is only available for requests from the local machine.

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/SetUserData"

<?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>
    <SetUserData xmlns="http://users.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <sSiteGUID>string</sSiteGUID>
      <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>
          <m_nObjecrtID>int</m_nObjecrtID>
          <m_sCountryName>string</m_sCountryName>
          <m_sCountryCode>string</m_sCountryCode>
        </m_Country>
        <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>
          <ID>int</ID>
          <Description>string</Description>
          <IsDefault>boolean</IsDefault>
        </m_UserType>
        <RoleIds>
          <long>long</long>
          <long>long</long>
        </RoleIds>
        <CreateDate>dateTime</CreateDate>
        <UpdateDate>dateTime</UpdateDate>
        <LastLoginDate>dateTime</LastLoginDate>
        <FailedLoginCount>int</FailedLoginCount>
        <m_State>
          <m_nObjecrtID>int</m_nObjecrtID>
          <m_sStateName>string</m_sStateName>
          <m_sStateCode>string</m_sStateCode>
          <m_Country>
            <m_nObjecrtID>int</m_nObjecrtID>
            <m_sCountryName>string</m_sCountryName>
            <m_sCountryCode>string</m_sCountryCode>
          </m_Country>
        </m_State>
        <m_bIsFacebookImagePermitted>boolean</m_bIsFacebookImagePermitted>
        <m_ExternalToken>string</m_ExternalToken>
        <m_sTwitterToken>string</m_sTwitterToken>
        <m_sTwitterTokenSecret>string</m_sTwitterTokenSecret>
      </oBasicData>
      <sDynamicData>
        <m_sUserData>
          <UserDynamicDataContainer>
            <m_sDataType>string</m_sDataType>
            <m_sValue>string</m_sValue>
          </UserDynamicDataContainer>
          <UserDynamicDataContainer>
            <m_sDataType>string</m_sDataType>
            <m_sValue>string</m_sValue>
          </UserDynamicDataContainer>
        </m_sUserData>
        <UserId>int</UserId>
      </sDynamicData>
    </SetUserData>
  </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>
    <SetUserDataResponse xmlns="http://users.tvinci.com/">
      <SetUserDataResult>
        <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 xsi:nil="true" />
            <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 xsi:nil="true" />
            <RoleIds xsi:nil="true" />
            <CreateDate>dateTime</CreateDate>
            <UpdateDate>dateTime</UpdateDate>
            <LastLoginDate>dateTime</LastLoginDate>
            <FailedLoginCount>int</FailedLoginCount>
            <m_State xsi:nil="true" />
            <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 xsi:nil="true" />
            <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>
      </SetUserDataResult>
    </SetUserDataResponse>
  </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>
    <SetUserData xmlns="http://users.tvinci.com/">
      <sWSUserName>string</sWSUserName>
      <sWSPassword>string</sWSPassword>
      <sSiteGUID>string</sSiteGUID>
      <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>
          <m_nObjecrtID>int</m_nObjecrtID>
          <m_sCountryName>string</m_sCountryName>
          <m_sCountryCode>string</m_sCountryCode>
        </m_Country>
        <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>
          <ID>int</ID>
          <Description>string</Description>
          <IsDefault>boolean</IsDefault>
        </m_UserType>
        <RoleIds>
          <long>long</long>
          <long>long</long>
        </RoleIds>
        <CreateDate>dateTime</CreateDate>
        <UpdateDate>dateTime</UpdateDate>
        <LastLoginDate>dateTime</LastLoginDate>
        <FailedLoginCount>int</FailedLoginCount>
        <m_State>
          <m_nObjecrtID>int</m_nObjecrtID>
          <m_sStateName>string</m_sStateName>
          <m_sStateCode>string</m_sStateCode>
          <m_Country>
            <m_nObjecrtID>int</m_nObjecrtID>
            <m_sCountryName>string</m_sCountryName>
            <m_sCountryCode>string</m_sCountryCode>
          </m_Country>
        </m_State>
        <m_bIsFacebookImagePermitted>boolean</m_bIsFacebookImagePermitted>
        <m_ExternalToken>string</m_ExternalToken>
        <m_sTwitterToken>string</m_sTwitterToken>
        <m_sTwitterTokenSecret>string</m_sTwitterTokenSecret>
      </oBasicData>
      <sDynamicData>
        <m_sUserData>
          <UserDynamicDataContainer>
            <m_sDataType>string</m_sDataType>
            <m_sValue>string</m_sValue>
          </UserDynamicDataContainer>
          <UserDynamicDataContainer>
            <m_sDataType>string</m_sDataType>
            <m_sValue>string</m_sValue>
          </UserDynamicDataContainer>
        </m_sUserData>
        <UserId>int</UserId>
      </sDynamicData>
    </SetUserData>
  </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>
    <SetUserDataResponse xmlns="http://users.tvinci.com/">
      <SetUserDataResult>
        <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 xsi:nil="true" />
            <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 xsi:nil="true" />
            <RoleIds xsi:nil="true" />
            <CreateDate>dateTime</CreateDate>
            <UpdateDate>dateTime</UpdateDate>
            <LastLoginDate>dateTime</LastLoginDate>
            <FailedLoginCount>int</FailedLoginCount>
            <m_State xsi:nil="true" />
            <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 xsi:nil="true" />
            <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>
      </SetUserDataResult>
    </SetUserDataResponse>
  </soap12:Body>
</soap12:Envelope>