AddRoleRequest

October2010

Service:People
Method:AddRole
Permission:AddPersonRoleRequest

Properties


Name Type Required Description
Person PersonIdentifier Required
Client ClientIdentifier Required
Role RoleIdentifier Required
PersonRoleData PersonRoleData Required

Exceptions


Exception Severity Code Condition
ArgumentMissing Critical 10010001 A required request input has not been specified.
IdentifierDoesNotExist Critical 10010002 One or more of the specified identifiers does not exist.
MultipleRecordsFound Critical 10010004 Multiple records exist for the specified identifier.
RoleAlreadyExists NonCritical 10140001 Role already exists for the specified identifier.

Examples


The following is an XML example of the AddRoleRequest sent to the People.AddRole method.

<soapenv:Envelope xmlns:ns="http://schemas.gallup.com/oms/2010/10/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header />
  <soapenv:Body>
    <ns:AddRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <ns:request i:type="a:AddRoleRequest" xmlns:a="http://schemas.gallup.com/oms/2010/10/People">
        <a:Person i:type="b:PersonIdIdentifier" xmlns:b="http://schemas.gallup.com/oms/2010/10/Identifiers">
          <b:PersonId>1</b:PersonId>
        </a:Person>
        <a:Client i:type="b:ClientIdIdentifier" xmlns:b="http://schemas.gallup.com/oms/2010/10/Identifiers">
          <b:ClientId>1234</b:ClientId>
        </a:Client>
        <a:Role i:type="b:RoleIdIdentifier" xmlns:b="http://schemas.gallup.com/oms/2010/10/Identifiers">
          <b:RoleId>1234</b:RoleId>
        </a:Role>
        <a:PersonRoleData i:nil="true" xmlns:b="http://schemas.gallup.com/oms/2010/10/Models" />
      </ns:request>
    </ns:AddRole>
  </soapenv:Body>
</soapenv:Envelope>

[PRINT]© Gallup, Inc. All Rights Reserved. All information contained on this site is the property of Gallup and contains proprietary trade secrets of Gallup. This information is confidential and protected under the confidentiality agreements signed by each Gallup employee, and is to be used solely by Gallup employees in the performance of their responsibilities. None of the information contained in this site is to be copied, viewed, forwarded, downloaded or shred outside of Gallup without permission.

© Gallup, Inc. All Rights Reserved. All information contained on this site is the property of Gallup and contains proprietary trade secrets of Gallup. This information is confidential and protected under the confidentiality agreements signed by each Gallup employee, and is to be used solely by Gallup employees in the performance of their responsibilities. None of the information contained in this site is to be copied, viewed, forwarded, downloaded or shred outside of Gallup without permission.