cancel
Showing results for 
Search instead for 
Did you mean: 

URLs in BLS

Former Member
0 Kudos

Hi Experts,

I need the output of the following URL in the form of XML in BLS.

http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<Name>&LogStatisticsToDB=true

The above URL is to see the actual execution time for each action block in a transaction.

Is there any action block which can help doing this ?

Any one please suggest a way.

Thanks

Shanky

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shashank,

I do not think there is a action block to see the results. Certain things you would need to know about logging. The URL mentioned in your post would only enable the logging. Inorder to view the statistic results, you should use http://localhost:50000/XMII/Illuminator?service=BLSManager&mode=stats&id=<Transaction ID>&content-type=text/xml  .The transaction id is got from the transaction manager screen.

If you want this result in a transaction, you could use  HTTPPost/TextLoader/XMLLoader action block.

1. Use the XMLLoader/HTTPPost action block to call a transaction with logging switched on.

    http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<Name>&LogStatisticsToDB=true

&content-type=text/xml

2. From the XML output of the action block, pick the transaction ID .

3. Pass this transaction Id in this URL, http://<server>:<port>/XMII/Illuminator?service=BLSManager&Mode=Stats&ID=<TRXID>&content-type=text/xml . This url can be an input to an XML/Text Loader or a HTTPPost action block.

4. The output of this block would give you the statistics of the transaction,

Check Examples: Transaction Services - SAP Documentation for details on logging and statistics.

Regards

Tufale Ashai.

Message was edited by: Tufale Ashai

Former Member
0 Kudos

Hi Tufale,


Thanks for the above info.
I tried to get the output using HTTPPost/TextLoader/XMLLoader but could not able to get the response.

Is there any configuration setting needs to be done to achieve the same. Please let me know.

Thanks

Shanky

Former Member
0 Kudos

Hi Shashank,

  You would need two transactions for this. 1. TransactionUnderTest 2.ObserverTransaction, This is because the monitoring can only be done when the transaction is executed through "Runner" servlet. Hence, a web/URL call becomes mandatory.

The transactionUnderTest is the one you would be monitoring. While, the ObserverTransaction would run your transaction and get the statistics.

1. In the ObserverTransaction,   Use the HTTPPost action block to call a transactionUnderTest  with logging switched on.

    http://<server>:<port>/XMII/Runner?Transaction=<Project>/<Path>/<transactionUnderTest>&LogStatisticsToDB=true

&content-type=text/xml

2. From the XML output of the action block, pick the transaction ID. This could be done by picking the transaction id from the XML response.

The HTTPPost has an output param, ReturnAsXML. Create a transaction property of type XML, call it "InXML" and map it to it.

The transaction property "InXML" will have the returned XML now. Next, assign trasaction Id . Create a transaction property of type string. Call it "Id". Map the XML attribute TransactionID to "Id". Example,

Transaction.InXML{/Rowsets/@TransactionID} .

This step (step 2) has to be done in an assignment action block.

3. Pass this transaction Id in this URL, http://<server>:<port>/XMII/Illuminator?service=BLSManager&Mode=Stats&ID="&Transaction.Id&"&content-type=text/xml . This url can be an input to an HTTPPost action block.

4. The output of this block would give you the statistics of the transaction,

Additional Info:

The first HTTPPost action block will return an XML like,

<?xml version="1.0" encoding="UTF-8" ?>

<Rowsets DateCreated="2013-07-04T10:02:23" EndDate="2013-07-04T10:02:23" StartDate="2013-07-04T10:02:23" Version="15.0.0 Build(258)" TransactionID="311">

<Messages>

  <Message>TRANSACTION EXECUTED OK</Message>

  </Messages>

  </Rowsets>

When you create a transaction property of type XML to map the first output, use the above XML as default value.

Your observer transaction now, would look like

Regards

Tufale Ashai

Message was edited by: Tufale Ashai

Former Member
0 Kudos

Hi Tufale,

Its working as required.

A big Thanks 🙂

Shanky

Former Member
0 Kudos

Glad to be of help

Answers (0)