Show contents 

Web Service > Web Service Operations > Working with Development Environment > GetClassInspectorInfo > Getting Information about Interface

Getting Information About Interface

Below is the example of using the GetClassInspectorInfo operation for getting information about interface members. The request contains assembly and interface names. The response contains a list of code elements and information about them.

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">
<GetClassInspectorInfo xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xsi:type="q1:OpenMetabaseResult" xmlns="" xmlns:q1="http://www.fsight.ru/PP.SOM.Som">
  <id>COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M</id>
  <sessKey>272175</sessKey>
  <sessCookie>C1</sessCookie>
  <version>163</version>
  <defLocale>1049</defLocale>
  <driver>2</driver>
  </tMb>
<tArg xmlns="">
  <path>System.IException</path>
  <member />
  <helpAddress />
  </tArg>
  </GetClassInspectorInfo>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetClassInspectorInfoResult 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">
  <subNodes xmlns="" />
<info xmlns="">
<it>
  <type>Property</type>
  <name>Line</name>
  <typeName>Integer</typeName>
  <access>Public</access>
  <imask>0</imask>
  </it>
<it>
  <type>Property</type>
  <name>Message</name>
  <typeName>String</typeName>
  <access>Public</access>
  <imask>0</imask>
  </it>
<it>
  <type>Property</type>
  <name>MessageID</name>
  <typeName>Integer</typeName>
  <access>Public</access>
  <imask>0</imask>
  </it>
<it>
  <type>Property</type>
  <name>NestedException</name>
  <typeName>IException</typeName>
  <access>Public</access>
  <imask>0</imask>
  </it>
<it>
  <type>Sub</type>
  <name>ReportError</name>
  <access>Public</access>
  <imask>0</imask>
  </it>
<it>
  <type>Property</type>
  <name>Source</name>
  <typeName>String</typeName>
  <access>Public</access>
  <imask>0</imask>
  </it>
  </info>
  <description xmlns=""><b>Interface </b>IException<br /> Member of the System unit</description>
  </GetClassInspectorInfoResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetClassInspectorInfo" :
{
"tMb" :
{
"@type" : "q1:OpenMetabaseResult",
"id" : "COAALKJJBFIOFOAEOHJHMAKDHKFCMMDEEKIEPDMEAHENJCAH!M",
"sessKey" : "272175",
"sessCookie" : "C1",
"version" : "163",
"defLocale" : "1049",
"driver" : "2"
},
"tArg" :
{
"path" : "System.IException",
"member" : "",
"helpAddress" : ""
}
}
}

JSON response:

{
"GetClassInspectorInfoResult" :
{
"subNodes" : "",
"info" :
{
"it" :
[
{
"type" : "Property",
"name" : "Line",
"typeName" : "Integer",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "Message",
"typeName" : "String",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "MessageID",
"typeName" : "Integer",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "NestedException",
"typeName" : "IException",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Sub",
"name" : "ReportError",
"access" : "Public",
"imask" : "0"
},
{
"type" : "Property",
"name" : "Source",
"typeName" : "String",
"access" : "Public",
"imask" : "0"
}
]
},
"description" : "<b>Interface <\/b>IException<br \/> Member of the System unit"
}
}
public static GetClassInspectorInfoResult GetClassInspectorInfo(MbId mb, string assembly, string parentName = "", string classMember = "", string helpUrl = "")
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetClassInspectorInfo()
{
tMb = mb,
tArg = new GetClassInspectorInfoArg()
{
path = assembly + (parentName == "" ? "" : '.' + parentName),
member = classMember,
helpAddress = helpUrl
}
};
// Get information from class inspector
var result = somClient.GetClassInspectorInfo(tGet);
return result;
}

See also:

GetClassInspectorInfo: Operation