Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 
Returns all defined EDMinterface communication parameters of a server context, identified by its unique server context id.
Related functions: edmiDefineServerContext, edmiDefineServerContextsFromFile, edmiDeleteAllServerContexts, edmiDeleteServerContext, edmiDeleteServerContextBN, edmiGetAllServerContexts, edmiGetServerContextId, edmiResetServerContext, edmiWriteServerContextsToFile.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetServerContextProperties(SdaiUnsignedInt serverContextId,
                                          SdaiString      *serverContextName,
                                          SdaiString      *userName,
                                          SdaiString      *groupName,
                                          SdaiString      *password,
                                          SdaiString      *communicationType,
                                          SdaiString      *edmServerPortNumber,
                                          SdaiString      *edmServerHostName,
                                          SdaiString      *edmiHttpTunnelName,
                                          SdaiString      *edmiHttpTunnelPortNumber,
                                          SdaiString      *edmiHttpTunnelHostName,
                                          SdaiString      *proxyServerPortNumber,
                                          SdaiString      *proxyServerName);
Arguments:

...

serverContextId

...

Code Block
languagecpp
themeConfluence
EdmiError edmiGetServerContextProperties(SdaiUnsignedInt serverContextId,
                                          SdaiString      *serverContextName,
                                          SdaiString      *userName,
                                          SdaiString      *groupName,
                                          SdaiString      *password,
                                          SdaiString      *communicationType,
                                          SdaiString      *edmServerPortNumber,
                                          SdaiString      *edmServerHostName,
                                          SdaiString      *edmiHttpTunnelName,
                                          SdaiString      *edmiHttpTunnelPortNumber,
                                          SdaiString      *edmiHttpTunnelHostName,
                                          SdaiString      *proxyServerPortNumber,
                                          SdaiString      *proxyServerName);

Returns all defined EDMinterface communication parameters of a server context, identified by its unique server context id.

Arguments

...

Tunnel Servlet Tunnel Servlet controling Tunnel Servlet
TypeNameComment
SdaiUnsignedInt

serverContextId

The unique numeric identifer of the server context to explore.

SdaiString

*serverContextName

Variable that will receive the name of the server context.

SdaiString

*userName

Variable that will receive the name of the edmUser to connect to the EDMserver.

SdaiString

*groupName

Variable that will receive the name of the edmGroup to connect to the EDMserver.

SdaiString

*password

Variable that will receive the password of the edmUser specified by <userName>.

SdaiString

*communicationType

Variable that will receive the nature of the communication between the EDMclient and the EDMserver. Possible communication types are;

  • "HTTP": Stateless transaction oriented communication with a remote EDMserver by the Hyper Text Transfer Protocol.
  • "TCP": Stateless transaction oriented communication with a remote EDMserver by theTransfer Communication Protocol.
  • "LOCAL_DB": Stateful transaction oriented communication with the locally connected EDMserver. The communication type will be as specified for the locally connected EDMserver.
  • "LOCAL_CONTEXT": Stateful non-transaction oriented communication with the locally connected EDMserver. The communication type will be as specified for the locally connected EDMserver.
SdaiString

*edmServerPortNumber

Variable that will receive the service port number used for remote communication by an EDMserver.

SdaiString

*edmServerHostName

Variable that will receive the name or IP-address of the machine hosting the EDMserver.

SdaiString

*edmiHttpTunnelName

Variable that will receive the name and full path of the HTTP

Tunnel  .

SdaiString

*edmiHttpTunnelPortNumber

Variable that will receive the tunnel service port number on the machine hosting the HTTP

Tunnel  . Used by the HTTP tunnel for

controlling remote communication between an EDMserver and a thin EDMClient.

SdaiString

*edmiHttpTunnelHostName

Variable that will receive the name or IP-address of the machine hosting the HTTP

Tunnel  .

SdaiString

*proxyServerPortNumber

Variable that will receive the service port number used for communication by the proxy server.

SdaiString

*proxyServerName

Variable that will receive the name or IP-address of the machine hosting the proxy service.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 int i;
 SdaiUnsignedInt contextId;
 SdaiString ServerContextName = "HTTP_ServerContext";

...


 SdaiString contextFile = "c:/data/myServerContexts";

...


 SdaiUnsignedInt *pContextId;

...


 SdaiInteger nContext;

...


  
 /* Define contexts from file */

...


 rstat = edmiDefineServerContextsFromFile("*", contextFile,

...


 PARTIAL_MATCH);

...


 /* Get all context ids */

...


 rstat = edmiGetAllServerContexts(&pContextId, &nContext);

...


 /* Print all contexts */

...


 for (i=0;i<nContext;i++) {

...


 SdaiString cntxtName;

...

 
 SdaiString usrName;

...

 
 SdaiString grpName;

...

 
 SdaiString pwd;

...

 
 SdaiString comType;

...

 
 SdaiString srvPort;

...

 
 SdaiString srvHost;

...

 
 SdaiString tnlName;

...

 
 SdaiString tnlPort;

...

 
 SdaiString tnlHost;

...

 
 SdaiString prxPort;

...

 
 SdaiString prxHost;

...

 
 rstat = edmiGetServerContextProperties(pContextId, &cntxtName,

...


 &usrName, &grpName, &pwd,

...

 
 &comType, &srvPort, &srvHost,

...


 &tnlName, &tnlPort, &tnlHost,

...


 &prxPort, &prxHost);

...

 
 printf("\nContext Name : %s", cntxtName ? cntxtName : "<empty>");

...

 
 printf("\n User Name : %s", usrName);

...

 
 printf("\n Group Name : %s", grpName ? grpName : "<empty>");

...

 
 printf("\n Password : %s", pwd);

...

 
 printf("\n Communication Type : %s", comType);

...

 
 printf("\n EDM Server : %s", srvHost);

...

 
 printf("\n Port Number : %s", srvPort);

...

 
 printf("\n Http Tunnel : %s", tnlName ? tnlName : "<empty>");

...

 
 printf("\n Http Tunnel Server : %s", tnlHost ? tnlHost : "<empty>");

...

 
 printf("\n Port Number : %s", tnlPort ? tnlPort : "<empty>");

...

 
 printf("\n Proxy Server : %s", prxHost ? prxHost : "<empty>");

...

 
 printf("\n Proxy Port : %s", prxPort ? prxPort : "<empty>");

...

 
 printf("\n");

...

 
 ++pContextId;

...

 
 }
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"