CloseDba

Syntax

bool CloseDba(OdId tOb)

Parameters

tOb. Moniker of opened business application instance.

Description

The CloseDba operation closes business application instance.

Comments

To execute the operation, in the tOb field specify moniker of opened business application instance.

The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing business application instance. The request contains moniker of opened business application instance. The response contains whether closing is successful.

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">
<CloseDba xmlns="http://www.fsight.ru/PP.SOM.Som">
<tOb xmlns="">
  <id>EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ</id>
  </tOb>
  </CloseDba>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <CloseDbaResult 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">1</CloseDbaResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"CloseDba" :
{
"tOb" :
{
"id" : "EMMHJHJLCLPAGOAECIKJAHOPCNJHGJDEKIODNPHMALBNJDDP!M!S!CBPKMIAKLCLPAGOAEHNHNGELNMKNCKMNEEIHLOAJKJEAJIHDJ"
}
}
}

JSON response:

{
"CloseDbaResult" : "1"
}
public static bool CloseDba(string moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseDba()
{
tOb = new OdId() { id = moniker }
};
// Close business application instance
var b = somClient.CloseDba(tClose);
return b;
}

See also:

Working with Business Applications