ReportingService2006.SetModelDefinition Method (String, Byte[])

 

Sets the definition for a specified model.

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

public Warning[] SetModelDefinition(
	string Model,
	byte[] Definition
)

Parameters

Model
Type: System.String

The fully qualified URL for the model including the file name and .smdl file name extension.

Definition
Type: System.Byte[]

A byte array that contains the XML model definition. The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language .

Return Value

Type: ReportService2006.Warning[]

An array of Warning objects that describe any warnings that occurred during validation of the model definition.

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

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

EditListItems

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.

Return to top
Show: