Share via


Provisioning Schema::Schema

Element that encapsulates schema definitions for a provisioning procedure. This element is a standard XDR schema element used in the provisioning schema of Microsoft Provisioning Framework (MPF). For more information on the schema element, see "XML Schema Reference" in MSDN.

Arguments

No arguments.

Remarks

MPF procedures can have defined formats for both input schema and output schema, as specified by the name attribute. Schemas for a procedure are Develop Custom Namespaces in the procedure's and Registering Namespaces in MPF in the configuration database. Using Provisioning Manager, provisioning engines can be configured to validate data passed to a procedure against the procedure's input schema definition. This is done in Provisioning Engines, Properties, Enable Schema Validation.

Sample Code

Example XML Request

<namespace name='Active Directory Provider' version='1' 
        providerSource='Provisioning.ADProvider.1' 
        description='This is a private one-to-one mapping of the actual SCO actions.'> 
    <procedure name='Get Properties' type='read' access='private' description='Returns one or more properties for an object.'> 
        <Schema name='inputSchema' xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"> 
            <ElementType name='path' model="closed" content="textOnly"/> 
            <AttributeType name="name"/> 
            <ElementType name='property' model="closed" content="mixed"> 
                <attribute type='name' required='yes'/> 
            </ElementType> 
            <ElementType name='propertyList' model="closed" content="eltOnly"> 
                <element type='property' minOccurs="0" maxOccurs="*"/> 
            </ElementType> 
            <ElementType name='executeData' model="closed" content="eltOnly" order='many'> 
                <element type='path' minOccurs="1" maxOccurs="1"/> 
                <element type='propertyList' minOccurs="0" maxOccurs="1"/> 
            </ElementType> 
        </Schema> 
        <Schema name='outputSchema' xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes"> 
            <!-- input --> 
            <ElementType name='path' model="closed" content="textOnly"/> 
            <ElementType name='propertyList' model="closed" content="eltOnly"> 
                <element type='property' minOccurs="0" maxOccurs="*"/> 
            </ElementType> 
            <!-- output --> 
            <ElementType name='path' model="closed" content="textOnly"/> 
            <AttributeType name="name"/> 
            <ElementType name='value' model="open" content="textOnly"/> 
            <ElementType name='property' model="open" content="mixed"> 
                <attribute type='name' required='yes'/> 
                <element type='value' minOccurs="0" maxOccurs="*"/> 
            </ElementType> 
            <ElementType name='properties' model="closed" content="eltOnly"> 
                <element type='property' minOccurs="1" maxOccurs="*"/> 
            </ElementType> 
            <ElementType name='executeData' model="open" content="eltOnly" order='many'> 
                <element type='properties' minOccurs="1" maxOccurs="1"/> 
            </ElementType> 
        </Schema> 
    </procedure> 
</namespace>

Applies To

Provisioning Schema; Provisioning Schema::procedure

See also

Tasks

Provisioning Schema::procedure