You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »



Syntax
aString = getTransactionID()
SemanticsReturns the current transaction ID as a String.
Examples
set transactionID = getTransactionID();

SOAP clients calling a service running on E2E Bridge can provide a transaction ID in the SOAP header.

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2002/12/soap-envelope">
  <env:Header>
    <login:security xmlns:login="http://example.com" env:role="http://example.com/Login" env:mustUnderstand="true">
      <login:username>Simon Sample</login:username> 
      <login:password>aPassword</login:password>
    </login:security>
    <bridge:TransactionID xmlns:bridge="http://e2e.ch/bridge">dkdme44546kkjdkcvdfldkjvopinmoisf</bridge:TransactionID>
  </env:Header> 
  <env:Body > ... ... </env:Body>
</env:Envelope>

This ID will be passed on through the call stack of the xUML service, so that the whole transaction can be traced. When analyzing the log file in case of error, this can be useful.

If an xUML service is called without providing a transaction ID, the E2E Runtime will generate such an ID an pass it on to other xUML services being called.
For information on how to set the transaction ID refer to setTransactionID() Function.

In both cases, you can get this transaction ID using the getTransactionID() function.

  • No labels