![]() |
T4S4
18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
|
Functions | |
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... | |
typeDef service type def | |
This function defines complex types for SOAP(Document-Style) serives. More... | |
ProxyGen::createClient | proxyname function | ||
This function creates a TCL function (stub) to call a TPRPC service.
proxyname | the name of the TPRPC service |
function | tcl function-name (need namespace) |
The created tcl-function has the following parameters.
hid | session handle id (see tpco_openSrvSession2) |
tout | timeout in seconds |
prio | priority of the command (0-255) |
wthid | chooses the server worker ID for the command (0= all worker) |
args | service arguments |
ProxyGen::createClientA | host port user pass tout prio wthid proxyname function | ||
This function creates a TCL function (stub) to call a TPRPC service.
The created function will open and close a session for every service call (slow).
host | the server ip or hostname |
port | the port of the server |
user | username (default=0) |
pass | password (default=0) |
tout | timeout in seconds |
prio | priority of the command (0-255) |
wthid | chooses the server worker ID for the command (0= all worker) |
proxyname | the name of the TPRPC service |
function | tcl function-name (need namespace) |
The created tcl-function has these parameters.
args | service arguments |
References tpco_shmget().
ProxyGen::createClientFor | conid tout prio wthid proxyname function | ||
This function creates a TCL function (stub) to call a TPRPC service.
The created function will open and close a session for every service call (slow).
conid | connection ID/name to determine the connection settings (host, port, ...) |
tout | timeout in seconds |
prio | priority of the command (0-255) |
wthid | chooses the server worker ID for the command (0= all worker) |
proxyname | the name of the TPRPC service |
function | tcl function-name (need namespace) |
The created tcl-function has these parameters.
args | service arguments |
ProxyGen::createServer | proxyname function args | ||
This function creates a network service(proxy) to TCL functions.
createServer
supports multiple network protocols:
proxyname | the service name |
function | the full functionname (::namespace::procname) |
worker-type | (optional) In the default case, all services can be executed on the internal or external worker. Use INTONLY to execute the call only on a internal worker. |
itype | only used in code generated by wsdl2t4x for SOAP services. Do not mess with this parameter. |
partbind | only used in code generated by wsdl2t4x for SOAP services. Do not mess with this parameter. |
TPRPC service :
Create a TPRPC service ::T4STest::echo
and bind this to the TCL function ::T4STestTPRCP::echo
.
PXML service :
All PXML services must be in the namespace PXML. The URL for the service is http(s)://<host>:<port>/pxml/<service-name>.
Create a PXML service ::PXML::pxmldemo
and bind this to the TCL function ::T4STestHTTPD::pxmldemo
.
SOAP service :
The optional parameter for SOAP, are used for generating the WSDL. The URL for the created WSDL is http(s)://<host>:<port>/SOAP(2)/<operation-name>?wsdl. The WSDL can also be read via the Admin UI (Debug/Proxy List/SOAP).
-description | (optional) Service/Operation description (default="no description") |
-host | (optional) overwrite the hostname in the WSDL (default=hostname:port) |
-rtypes | (optional) return types (default=string] |
-atypes | (optional) argument types (default={}] |
-service | (optional) name of the SOAP service (default=T4xSoap(2)) |
-docu | (optional) documentation for the SOAP service (default="no documentaion") |
The order of types in -rtype/-atype corresponds to the order of the arguments.
SOAP(Document-Style) service :
All SOAP(Document-Style) services must be in the namespace SOAP2. T4x supports the simple SOAP(Document-Style) types string, int and double. To define complex types (Record) see T4SSoap2::typeDef
. To define an array that can be appended to the type ().
Create a SOAP service DOCMathTest
with the operation ::SOAP2::testdadd
and bind this to the TCL function ::T4STestSOAPServer::document_add
.
SOAP(RPC-Style) service :
All SOAP(RPC-Style) services must be in the namespace SOAP. T4x supports the simple SOAP(RPC-Style) types string, int and double.
Create a SOAP service RPCMathTest
with the operation ::SOAP::test_rpcadd
and bind this to the TCL function ::T4STestSOAPServer::rpc_add
.
References tpco_getHostName(), tpco_shmget(), and tpco_shmset().
T4SSoap2::typeDef | service type def | ||
This function defines complex types for SOAP(Document-Style) serives.
service | the name of the TPRPC service |
type | name of type |
def | type definition {fieldname {type typename} fieldname {type typename} ...} |
Create the complex types DOCcomplexTestIn and DOCcomplexTestOut for the service DOCcomplexTest.