Expand Minimize
This topic has not yet been rated - Rate this topic

ReportingService2006.CreateModel Method

Adds a model to a SharePoint library.

Namespace:  ReportService2006
Assembly:  ReportService2006 (in ReportService2006.dll)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/CreateModel", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public CatalogItem CreateModel(
	string Model,
	string Parent,
	byte[] Definition,
	Property[] Properties,
	out Warning[] Warnings
)

Parameters

Model
Type: System.String
The name of the new model including the file name and .smdl file name extension.
Parent
Type: System.String
The fully qualified URL for the parent folder that will contain the new model.
Definition
Type: System.Byte[]
The report model definition to publish. The XML data is defined by the http://schemas.microsoft.com/sqlserver/2004/10/semanticmodeling/ Semantic Model Definition Language
Properties
Type: ReportService2006.Property[]
An array of Property objects that defines model properties and their values.
Warnings
Type: ReportService2006.Warning[]%
[out] An array of Warning objects that describe any warnings that may have occurred during the validation of the model definition if CreateModel is called successfully; otherwise an exception is raised.

Return Value

Type: ReportService2006.CatalogItem
A CatalogItem object for the newly created model.

Model item security is turned off for the model when it is first created.

The ModifiedBy and ModifiedDate properties of the parent folder are updated when CreateModel is successfully called.

If the .smdl file name extension is excluded from the model name, an rsFileExtensionRequired error will be returned.

The length of the Parent parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Parent parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.