GetAssembly

Syntax

GetAssemblyResult GetAssembly(OdId tObject)

Parameters

tObject. Moniker of repository object that is Fore assembly.

Description

The GetAssembly operation gets information about repository assembly.

Comments

To execute the operation, in the tObject parameter specify moniker of repository object that is assembly. The object moniker can be obtained on executing the GetObjects operation. The operation results in the list of assemblies (system and application ones), to which links are added, and also a list of objects implemented in the assembly.

Example

Below is the example of using the GetAssembly operation to get information about assembly. The request contains moniker of assembly in the repository. The response contains information about units implemented in the specified assembly, and links to other assemblies. The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.

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">
<GetAssembly xmlns="http://www.fsight.ru/PP.SOM.Som">
<tObject xmlns="">
  <id>S1!M!172000</id>
  </tObject>
  </GetAssembly>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetAssemblyResult 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">
<meta xmlns="">
<references>
<builtinReferences>
  <s>Metabase</s>
  </builtinReferences>
<repoReferences>
<it ds="" isShortcut="0" isLink="0" ver="18" hf="0">
  <i>M_ADDITIONAL</i>
  <n>Additional</n>
  <k>172002</k>
  <c>1537</c>
  <p>171999</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </it>
  </repoReferences>
  </references>
<modules>
<it ds="" isShortcut="0" isLink="0" ver="14" hf="0">
  <i>M_MAIN</i>
  <n>Unit</n>
  <k>172001</k>
  <c>1537</c>
  <p>172000</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </it>
  </modules>
<desc ds="" isShortcut="0" isLink="0" ver="11" hf="0">
  <i>A_CORE</i>
  <n>Assembly</n>
  <k>172000</k>
  <c>1539</c>
  <p>171999</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  </desc>
  </meta>
  </GetAssemblyResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetAssembly" :
{
"tObject" :
{
"id" : "S1!M!172000"
}
}
}

JSON response:

{
"GetAssemblyResult" :
{
"meta" :
{
"references" :
{
"builtinReferences" :
{
"s" : "Metabase"
},
"repoReferences" :
{
"it" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "18",
"@hf" : "0",
"i" : "M_ADDITIONAL",
"n" : "Additional",
"k" : "172002",
"c" : "1537",
"p" : "171999",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
}
},
"modules" :
{
"it" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "14",
"@hf" : "0",
"i" : "M_MAIN",
"n" : "Unit",
"k" : "172001",
"c" : "1537",
"p" : "172000",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
},
"desc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "11",
"@hf" : "0",
"i" : "A_CORE",
"n" : "Assembly",
"k" : "172000",
"c" : "1539",
"p" : "171999",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
}
}
}
}
public static GetAssemblyResult GetAssemblyInfo(MbId mb, string assmId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tGet = new GetAssembly()
{
//Create object moniker
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, assmId).k }
};
//Get assembly information
var result = somClient.GetAssembly(tGet);
return result;
}

 

See also:

Working with Development Environment