CloseMs

Syntax

bool CloseMs(MsId tMs)

Parameters

tMs. Opened modeling container instance moniker.

Description

The CloseMs operation closes an instance of modeling container.

Comments

After execution the operation returns whether the object is closed successfully. Available values:

Example

The example of closing a modeling container instance. The request contains a container moniker. The response contains whether closing was 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">
<CloseMs xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMs xmlns="">
  <id>KJBJEFBHPOMOFOAEJIFPCMEAGCGHCBHEHIMMNOMFBAKHHEMP!M!S!CDIGHEHBHPOMOFOAEBJKDHOKMGGBEOFCELIIHKANJDKGFAHKL</id>
  </tMs>
  </CloseMs>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseMs" :
{
"tMs" :
{
"id" : "KJBJEFBHPOMOFOAEJIFPCMEAGCGHCBHEHIMMNOMFBAKHHEMP!M!S!CDIGHEHBHPOMOFOAEBJKDHOKMGGBEOFCELIIHKANJDKGFAHKL"
}
}
}

JSON response:

{
"CloseMsResult" : "1"
}
public static bool CloseMs(string moniker)
{
// Create a proxy object for operation execution
var somClient = new SomPortTypeClient();
// Set operation execution parameters
var tClose = new CloseMs()
{
tMs = new MsId() { id = moniker }
};
// Close modeling container
var result = somClient.CloseMs(tClose);
return result;
}

See also:

Working with Modeling Container