Returns the XML Configuration Id of an XML Configuration specified by its XML Configuration Name.
Related functions: edmiRemoteCreateXMLConfiguration , edmiRemoteDeleteXMLConfiguration , edmiRemoteGetXMLConfiguration, edmiRemoteListXMLConfigurations, edmiRemoteReadXMLDocument, edmiRemoteReadXMLFile, edmiRemoteWriteXMLDocument, edmiRemoteWriteXMLFile.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiRemoteGetXMLConfigurationId (SdaiServerContext serverContextId,
SdaiString schemaName,
SdaiString xmlConfigurationName,
SdaiInstance *xmlConfigurationId,
SdaiInvocationId *edmiInvocationId);
Arguments:
serverContextId |
Context identification, from edmiDefineServerContext |
schemaName |
The name of the Express Schema assosiated with the XML Configuration. |
xmlConfigurationName |
The XML Configuration Name for which to retrieve the XML Configuration Id. This is the string specified by the <configuration id=". . . tag in the XML Configuration. |
xmlConfigurationId |
Variable that will receive the XML Configuration Id that uniquely identifies the XML Configuration in the EDMdatabase. |
edmiInvocationId |
Currently unused |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an _EDMinterface_ error code. Use edmiGetErrorText to get the error text corresponding to the error code.
Example:
EdmiError rstat;
SdaiServerContext myContext;
SdaiInstance configId;
/* Create Server Context */
rstat = edmiDefineServerContext("MyContext",
"Johnny", "Supervisor", "cf37ftr",
"TCP", "9090", "MyServerHost",
NULL, NULL, NULL, NULL, NULL, &myContext);
/* Get id of xml configuration */
rstat = edmiRemoteGetXMLConfigurationId(myContext, "IFC2X2_FINAL",
"ifcxml_tagged_aggregate", &configId, NULL);
. . .