3.2 WS-Transfer Identity Management Extension 'ModifyRequest' Example

This example demonstrates a [MS-WSTIM] ModifyRequest operation. Both the SOAP request message and the SOAP response message are shown. In the SOAP request message, the requestor is specifying that the LDAP directory attribute whose LDAP display name is "description" is to have its value replaced with the new value "Modified description attribute". The requestor is also asking that the values "(212) 555-0100" and "(516) 555-0100" be appended to the set of existing values (if any) in the LDAP directory attribute whose LDAP display name is "otherTelephone". The directory object on which this operation is being performed is identified by its GUID-valued object reference property {cf041608-84b9-4fd0-a83c-46d40a964b88}.

SOAP request message:

 <soapenv:Envelope
     xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
     xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <soapenv:Header>
     <wsa:Action soapenv:mustUnderstand="1">
         http://schemas.xmlsoap.org/ws/2004/09/transfer/Put
     </wsa:Action>
     <IdentityManagementOperation
         xmlns="http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"/>
     <objectReferenceProperty
        xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory">
         cf041608-84b9-4fd0-a83c-46d40a964b88
     </objectReferenceProperty>
     <instance xmlns="http://schemas.microsoft.com/2008/1/ActiveDirectory">
         ldap:389
     </instance>
     <wsa:MessageID>
         urn:uuid:e36457ff-d0f1-4c85-abe6-6cdf4bd511e9
     </wsa:MessageID>
     <wsa:ReplyTo>
       <wsa:Address>
           http://www.w3.org/2005/08/addressing/anonymous
       </wsa:Address>
     </wsa:ReplyTo>
     <wsa:To soapenv:mustUnderstand="1">
         net.tcp://server01.fabrikam.com:9389/ActiveDirectoryWebServices/Windows/Resource
     </wsa:To>
   </soapenv:Header>
   <soapenv:Body>
     <da:ModifyRequest
         Dialect="http://schemas.microsoft.com/2008/1/ActiveDirectory/Dialect/XPath-Level-1"
         xmlns:da="http://schemas.microsoft.com/2006/11/IdentityManagement/DirectoryAccess"
         xmlns:addata="http://schemas.microsoft.com/2008/1/ActiveDirectory/Data"
         xmlns:ad="http://schemas.microsoft.com/2008/1/ActiveDirectory"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <da:Change Operation="replace">
         <da:AttributeType>addata:description</da:AttributeType>
         <da:AttributeValue>
           <ad:value xsi:type="xsd:string">
               Modified description attribute
           </ad:value>
         </da:AttributeValue>
       </da:Change>
       <da:Change Operation="add">
         <da:AttributeType>addata:otherTelephone</da:AttributeType>
         <da:AttributeValue>
           <ad:value xsi:type="xsd:string">(212) 555-0100</ad:value>
           <ad:value xsi:type="xsd:string">(516) 555-0100</ad:value>
         </da:AttributeValue>
       </da:Change>
     </da:ModifyRequest>
   </soapenv:Body>
 </soapenv:Envelope>

SOAP response message:

 <soapenv:Envelope
     mlns:soapenv="http://www.w3.org/2003/05/soap-envelope"
     xmlns:wsa="http://www.w3.org/2005/08/addressing">
     <soapenv:Header>
         <wsa:Action soapenv:mustUnderstand="1">
             http://schemas.xmlsoap.org/ws/2004/09/transfer/PutResponse
         </wsa:Action>
         <wsa:RelatesTo>
             urn:uuid:e36457ff-d0f1-4c85-abe6-6cdf4bd511e9
         </wsa:RelatesTo>
         <wsa:To soapenv:mustUnderstand="1">
             http://www.w3.org/2005/08/addressing/anonymous
         </wsa:To>
     </soapenv:Header>
     <soapenv:Body/>
 </soapenv:Envelope>