T4EA  18.2 C7549 A21431
Teamcenter Gateway for Enterprise Applications API Reference
T4EA::CUSTOM::SERVICES::DEMOERP Namespace Reference

Functions

 checkConnection ?User? ?Password? ?System? ?ConnectString? ?Language? args
 Customer specific implementation of the EA connection check / login. More...
 
 createTag objDoc objParent strName
 Create an element for dom document and append the new node to parent node. More...
 
 createText4Tag objDoc objParent strText
 Create text node and append the new node to parent node. More...
 
 DemoERPService operation inputDict ?ConnectString? ?User? ?Password? ?Language?
 Call the DEMO ERP web service via SOAP. More...
 
 getTagValue objDoc strName
 Search for node with specified name and return value of first found text node. More...
 

Function Documentation

◆ checkConnection()

T4EA::CUSTOM::SERVICES::DEMOERP::checkConnection   ?User? ?Password? ?System? ?ConnectString? ?Language? args  

Customer specific implementation of the EA connection check / login.

Parameters
UserEA User name
PasswordPassword of the EA user
SystemSystem Identifier
ConnectStringThe connect string (URL, DB connect string, whatever...) to use for the check
Languagelanguage to use for session
argsadditional arguments (unused)
Returns
LOGON_OK or LOGON_ERROR

References DemoERPService(), T4X::CORE::getSessionLogChannel(), T4X::CORE::storeMessage2(), and tpwrite().

◆ createTag()

T4EA::CUSTOM::SERVICES::DEMOERP::createTag   objDoc objParent strName  

Create an element for dom document and append the new node to parent node.

Parameters
objDocroot element of dom document
objParentparent node
strNametag name
Returns
created element node

Referenced by DemoERPService().

◆ createText4Tag()

T4EA::CUSTOM::SERVICES::DEMOERP::createText4Tag   objDoc objParent strText  

Create text node and append the new node to parent node.

Parameters
objDocroot element of dom document
objParentparent node
strTexttext
Returns
none

Referenced by DemoERPService().

◆ DemoERPService()

T4EA::CUSTOM::SERVICES::DEMOERP::DemoERPService   operation inputDict ?ConnectString? ?User? ?Password? ?Language?  

Call the DEMO ERP web service via SOAP.

If any optional parameter is missing, the procedure will use the default values from EA connection handling.

Parameters
operationthe service's operation name
inputDicta TCL dict containing the data for the service call
ConnectString(optional) the base URL of the DemoERP service
User(optional) EA User name
Password(optional) Password of the EA user
Language(optional) Language to use for session
Returns
list of OK or ERROR and error message

References T4X::SOAP::CLIENT::callSoapOperation(), createTag(), createText4Tag(), T4X::SOA::encryptString4PipeProtocol(), T4EA::CONNECTION2EA::getCurrentEAInfo(), T4X::CORE::getSessionLogChannel(), getTagValue(), T4X::SOA::setProxy(), tpwrite(), and T4X::CORE::writeLogLineWithAttachment2BGS().

Referenced by checkConnection().

◆ getTagValue()

T4EA::CUSTOM::SERVICES::DEMOERP::getTagValue   objDoc strName  

Search for node with specified name and return value of first found text node.

Parameters
objDocroot element of dom document
strNametag name
Returns
string

Referenced by DemoERPService().