Previous Topic: Example: Add a Single-Valued Complex Attribute

Next Topic: Request Retries

Example: Add a Multivalued Complex Attribute

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addRequest xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core">
    <operationalAttributes></operationalAttributes>
    <identifier type="urn:oasis:names:tc:SPML:1:0#DN">
        <id>selfAuthQA#0@User=new_global_user,Domain=EXAMPLE_DOMAIN,Server=Server</id>
    </identifier>
    <attributes>
        <attr name="answer">
            <dsml:value>Sample Answer</dsml:value>
        </attr>
        <attr name="question">
            <dsml:value>Sample Question</dsml:value>
        </attr>
    </attributes>
</addRequest>

When you search for an object, asking about a complex attribute, the attribute value returned is a special attribute Identifier that refers to the real attribute value stored in a separate search result entry.