SetMbDefs

Syntax

MbDefsResult SetMbDefs(SetMbDefsArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The SetMbDefs operation sets the list of repositories descriptions created on BI server.

Comments

The operation enables creating new or changing existing repository descriptions.

To execute the operation, set the template in the tArg.pattern field, according to which the list of descriptions will be changed and updated parameters of repository descriptions in the tArg.meta field. If existing descriptions are changed, then search and comparison of descriptions on BI server will be executed by internal keys that are set in the k field of each description.

The operation result will be updated list of repository descriptions, if the tArg.metaGet field was determined.

Example

See below the example of changing repository description.Updated description and executed operation are sent in the query.No additional information is returned in the response.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SetMbDefs xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<pattern>
  <mbDefs>Change</mbDefs>
  </pattern>
<meta>
<its>
<it>
  <id>PPREPOSITORY</id>
  <n>Warehouse</n>
  <k>4294967290</k>
  <scope>LocalMachine</scope>
<logonData>
  <driver>MSSQL2012</driver>
  <server>v-nrspo-mssql.dev.fs.fsight.world</server>
  <database>p7repository</database>
  <schema>dbo</schema>
  <unicode>1</unicode>
  <authentication>Password</authentication>
  <locale>65536</locale>
  <debugMode>false</debugMode>
  <deferredLoading>false</deferredLoading>
  <caseSensitive>false</caseSensitive>
  <fileGroup>PRIMARY</fileGroup>
  </logonData>
  </it>
  </its>
  </meta>
  </tArg>
  </SetMbDefs>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <SetMbDefsResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"SetMbDefs" :
{
"tArg" :
{
"pattern" :
{
"mbDefs" : "Change"
},
"meta" :
{
"its" :
{
"it" :
[
{
"id" : "PPREPOSITORY",
"n" : "Warehouse",
"k" : "4294967290",
"scope" : "LocalMachine",
"logonData" :
{
"driver" : "MSSQL2012",
"server" : "v-nrspo-mssql.dev.fs.fsight.world",
"database" : "p7repository",
"schema" : "dbo",
"unicode" : "1",
"authentication" : "Password",
"locale" : "65536",
"debugMode" : "false",
"deferredLoading" : "false",
"caseSensitive" : "false",
"fileGroup" : "PRIMARY"
}
}
]
}
}
}
}
}

JSON response:

{
"SetMbDefsResult" : ""
}
public static MbDefsResult ChangeDefinition(MbDef definition)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetMbDefs()
{
tArg = new SetMbDefsArg()
{
pattern = new MbDefsPattern()
{
mbDefs = ListOperation.Change
},
meta = new MbDefs()
{
its = new MbDef[]
{
definition
}
}
}
};
// Change repository description
var result = somClient.SetMbDefs(tSet);
return result;
}

See also:

Working with a Repository