CloseWsp

Syntax

bool CloseWsp(WspId tWsp)

Parameters

tWsp. Moniker of closed workspace instance.

Description

The CloseWsp operation closes workspace instance.

Comments

To execute the operation, in the tWsp field specify moniker of the workspace instance to be closed. The operation results in the logical true if the object was closed successfully.

Example

Below is the example of closing workspace instance. The response contains the moniker of opened workspace instance. The response returns 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">
<CloseWsp xmlns="http://www.fsight.ru/PP.SOM.Som">
<tWsp xmlns="">
  <id>S1!M!S!WSP1</id>
  </tWsp>
  </CloseWsp>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseWsp" :
{
"tWsp" :
{
"id" : "S1!M!S!WSP1"
}
}
}

JSON response:

{
"CloseWspResult" : "1"
}
public static bool CloseWorkspace(WspId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseWsp()
{
tWsp = moniker
};
//Closing workspace instance
var b = somClient.CloseWsp(tClose);
return b;
}

See also:

Working with Workspace