3.1.4.40 MetadataCreate

The MetadataCreate operation creates new metadata objects in the MDS repository. The operation creates new objects with the names that are provided and generates a new GUID for each new object.

Any GUID included in the request is ignored. For more information about assigning GUIDs to newly created objects, see section 3.1.4.39.

Names for new objects MUST be unique within their context. A name that conflicts with an existing name in the assigned context results in an error.

Newly created objects and their GUIDs are returned in the response if the value of ReturnCreatedIdentifiers is true.

For each of the following objects, a minimum context MUST be specified as listed in the following table.

Object type

Minimum required context

Entity

Model

Attribute

Model, Entity, MemberType

Attribute group

Model, Entity, MemberType

Derived hierarchy

Model

Explicit hierarchy

Model, Entity

Version flag

Model

The following is the WSDL definition of the MetadataCreate operation.

Applies to MDS 2008R2

     <wsdl:operation name="MetadataCreate">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreate" name="MetadataCreateRequest" message="tns:MetadataCreateRequest" />
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreateResponse" name="MetadataCreateResponse" message="tns:MetadataCreateResponse" />
    </wsdl:operation>

Applies to MDS 2012

     <wsdl:operation name="MetadataCreate">
       <wsdl:input wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreate" name="MetadataCreateRequest" message="tns:MetadataCreateRequest"/>
       <wsdl:output wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreateResponse" name="MetadataCreateResponse" message="tns:MetadataCreateResponse"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreateSkuNotSupportedMessageFault" name="SkuNotSupportedMessageFault" message="tns:IService_MetadataCreate_SkuNotSupportedMessageFault_FaultMessage"/>
       <wsdl:fault wsaw:Action="http://schemas.microsoft.com/sqlserver/masterdataservices/2009/09/IService/MetadataCreateEditionExpiredMessageFault" name="EditionExpiredMessageFault" message="tns:IService_MetadataCreate_EditionExpiredMessageFault_FaultMessage"/>
    </wsdl:operation>