GetDba

Syntax

GetDbaResult GetDba(OdId tOb, GetDbaArg tArg)

Parameters

tOb. Moniker of opened business application instance.

tArg. Operation execution parameters.

Description

The GetDba operation gets business application metadata.

Comments

To execute the operation, in the tOb field specify moniker of opened business application instance, and in the tArg.pattern field specify the pattern that will be used to get metadata. The moniker can be obtained on executing the OpenDba operation.

The operation results in the obtained metadata.

Example

Below is the example of getting business application metadata. The request contains moniker of opened business application instance and the pattern that will be used to return metadata. The response contains the obtained metadata.

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">
<GetDba xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ</id>
  </tOb>
<tArg xmlns="">
<pattern>
  <obInst>true</obInst>
  <parsOwnDefVals>true</parsOwnDefVals>
  <db>true</db>
  </pattern>
  </tArg>
  </GetDba>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetDbaResult 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">
<id xmlns="">
  <id>EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ</id>
  </id>
<meta xmlns="">
<obInst>
<obDesc ds="" isShortcut="0" isLink="0" ver="4" hf="0">
  <i>DBA_APP</i>
  <n>Business application</n>
  <k>340435</k>
  <c>1054465</c>
  <p>340516</p>
  <h>0</h>
  <hasPrv>0</hasPrv>
  <ic>0</ic>
  <trackElementDependents>0</trackElementDependents>
  <isPermanent>1</isPermanent>
  <isTemp>0</isTemp>
  </obDesc>
  </obInst>
  <dirty>0</dirty>
  </meta>
  </GetDbaResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetDba" :
{
"tOb" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
},
"tArg" :
{
"pattern" :
{
"obInst" : "true",
"parsOwnDefVals" : "true",
"db" : "true"
}
}
}
}

JSON response:

{
"GetDbaResult" :
{
"id" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "4",
"@hf" : "0",
"i" : "DBA_APP",
"n" : "Business application",
"k" : "340435",
"c" : "1054465",
"p" : "340516",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dirty" : "0"
}
}
}
public static GetDbaResult GetDba(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDba()
{
tArg = new GetDbaArg()
{
pattern = new DbaMdPattern()
{
db = true
}
},
// Create object moniker
tOb = new OdId() { id = moniker }
};
// Get information about business process
var result = somClient.GetDba(tGet);
return result;
}

See also:

Working with Business Applications