edmiGetServerContextProperties

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


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


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

Options


 

Example


 

 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

There are no items with the selected labels at this time.

Â