ReportingService2005.SetModelDefinition Method

Sets the definition for a specified model.

Namespace:  ReportService2005
Assembly:  ReportService2005 (in ReportService2005.dll)

[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
	ResponseNamespace = "", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public Warning[] SetModelDefinition(
	string Model,
	byte[] Definition


Type: System.String
The full name of the model for which to set the model definition.
Type: System.Byte[]
A byte array containing the XML model definition. The XML data is defined by the Semantic Model Definition Language .

Return Value

Type: ReportService2005.Warning[]
An array of Warning objects that describes any warnings that may have occurred during validation of the model definition.

The table below shows header and permissions information on this operation.

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions


The definition supplied replaces the existing model definition.

The model ID of the submitted model must match that of the existing model, or an rsModelIDMismatch error is returned.

Community Additions