Directory Services

Modifying Attributes on Directory Objects

The following code example replaces the existing description attribute of the DSMLSamples object in the fabrikam.com LDAP directory.

<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/">
  <se:Body xmlns="urn:oasis:names:tc:DSML:2:0:core">
	<batchRequest>
	<modifyRequest dn="ou=DSMLSamples,dc=fabrikam,dc=com">
		<modification name="description" operation="replace">
		<value>Directory Services Markup Language Sample Organizational Unit</value>
		</modification>
	</modifyRequest>
	</batchRequest>
  </se:Body>
</se:Envelope>

The <se:Envelope> and <se:Body> SOAP elements enclose the DSML payload. The first element of the DSML payload, <batchRequest>, is the mandatory top-level element for all DSML V2 requests. The <modifyRequest> element modifies the description property of the DSMLSamples object to have the value Directory Services Markup Language Sample Organizational Unit.

For more information, see Transmitting and Receiving SOAP-DSML Messages.