T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
ProxyGen Namespace Reference

Functions

 addPreServerFunctionHandler protocol handlerCommand
 
 createClient proxyname function
 This function creates a TCL function (stub) to call a TPRPC service. More...
 
 createClientA host port user pass tout prio wthid proxyname function
 This function creates a TCL function (stub) to call a TPRPC service. More...
 
 createClientFor conid tout prio wthid proxyname function
 This function creates a TCL function (stub) to call a TPRPC service. More...
 
 createServer proxyname function args
 This function creates a network service(proxy) to TCL functions. More...
 
 removePreServerFunctionHandler protocol handlerCommand
 

Detailed Description

Function Documentation

◆ addPreServerFunctionHandler()

ProxyGen::addPreServerFunctionHandler   protocol handlerCommand  

Add a command executed before every incoming webcall.

The call may signal an exception using return -error. In this case the execution of the server call will be abandoned and the result of the command be interpreted as an error.

Note that the command has to accept two arguments:

  1. function: Name of the procedure implementing the server call
  2. argsDict: The dictionary Tcl containing the arguments for the command
Parameters
protocolcurrently only JSON is supported. Others will cause an error to be raised
handlerCommandthe fully qualified name of an existing procedure to be executed

◆ removePreServerFunctionHandler()

ProxyGen::removePreServerFunctionHandler   protocol handlerCommand  

Remove a command formerly added with addPreServerFunctionHandler

Parameters
protocolcurrently only JSON is supported. Others will cause an error to be raised
handlerCommandthe fully qualified name of an existing procedure to be executed