Currently Being Moderated

As you probably know there are no web services for displaying RWB message overview data and this has been an issue for some companies which wanted to use their own tools to check aggragated message status. SAP has come up with a different way to handle this requirement - they have come up with a servlet which allows to retrieve the RWB monitoring data with an HTTP call.

 

When can we use this new servlet ?

 

You can use this servlet anytime you need to send the RWB message overview data to an external system or if the external system can query the servlet itself. You can use PI's HTTP adapter to get the data from the servlet and share it as anything that PI supports (XML file, SOAP calls, e-mails, etc.)

 

How to use this servlet ?

 

Step 1

 

First you need to get the XSD which describes the XML result of querying the servlet. You can get it with address:

http://<host>:<port>/mdt/monitor/MessageOverviewQuery.xsd

 

schema_1.png

 

 

Step 2

 

You need to check which components you can query. You can do this by checking address:

http://<host>:<port>/mdt/messageoverviewqueryservlet

 

At the bottom of this service you should be able to see the components you can use in the HTTP post.

 

component1.png

 

So now your query would look like: http://server:port/mdt/messageoverviewqueryservlet?component=<XIComponentName>

 

Step 3

 

The third thing you need to add to your query would be the view. There are 4 types of views you can use:

 

a)  R_ENTRY_VIEW_XPI - Message status sorted by receiver

 

b) S_ENTRY_VIEW_XPI - Message status sorted by receiver

 

c) SR_ENTRY_VIEW_XP - Message status sorted by sender and receiver (detail view)

 

d) SR_ENTRY_OVERVIEW_XPI - Message status sorted by sender and receiver (overview)

 

Now your query would be: http://server:port/mdt/messageoverviewqueryservlet?component=<XIComponentName>&view=<ViewNameKey>

 

Step 4

 

The last thing you need to add to your query would be the start and end date of the query. If you start your HTTP post with this address: http://server:port/mdt/messageoverviewqueryservlet?component=<XIComponentName>&view=<ViewNameKey> you will see sample start and end dates in the format respected by the servlet.

 

servlet_dates_1.png

 

 

Now your full query should look like this: 

http://server:port/mdt/messageoverviewqueryservlet?component=<XIComponentName>&view=<ViewNameKey>&begin=<IntervalBeginTime>&end=<IntervalEndTime>

 

Result

 

Sample result from my test system would can be like shown below.

 

 

wynik_1.png

 

What are the prerequisites:

 

For the prerequisites please have a look: 

Note 1400785 - Message Overview: automatic query of data with a servlet

Comments

Filter Blog

By author:
By date:
By tag: