cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extracting custom metrics from SOAP software service

paulo_morgado
Participant

I need to extract some metrics form the response of a SOAP software service.

The response is something like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<response>
 <ns0:hdr xmlns:ns0="http://schemas.esi.gbes/soap/2007/5_0/">
 <ns0:addrResp>
 ...
 </ns0:addrResp>
 <ns0:erros>
 <ns0:erro>
 <ns0:tipo>EB</ns0:tipo>
 <ns0:codigo>0099</ns0:codigo>
 <ns0:descritivo>some description</ns0:descritivo>
 </ns0:erro>
 <ns0:erro>
 <ns0:tipo>A</ns0:tipo>
 <ns0:codigo>5555</ns0:codigo>
 <ns0:descritivo>some description</ns0:descritivo>
 </ns0:erro>
 </ns0:erros>
 </ns0:hdr>
</response>

I need to extract metrics based on the first occurrence of the ns0:tipo of the first ns0:erro(/response/ns0:hdr/ns0:erros/ns0:erro/ns0:tipo).

what's the best way to do this?

5 REPLIES 5

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

So it looks like Operation Attributes in XML and SOAP Monitoring are for you ...

Please take a look and let us know if it answers your question.

paulo_morgado
Participant

How cam I match the value EB in /response/response/ns0:hdr/ns0:erros/ns0:erro/ns0:tipo?

Let me find example TCP trace and test it for you ...

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro

Paulo,

Again, you found a bug in documentation that says that Operations Attributes can be both counted and reported (messages) on CAS and ADS.  That is not true as CAS can only count it and ADS can count it and reports extracted messages.

My SOAP response look like:

HTTP/1.1 200 OK
Date: Thu, 01 May 2008 16:10:10 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 385





000037211



and the following configuration applied:

resulted in the following CAS and ADS report:

We already took care about the bug in the documentation.

BLOCKemployees

APMODCRUM-13774

Please try if it works for you, otherwise please provide us with sample capture of your traffic so we can test it.

paulo_morgado
Participant

Adam,

You'll have to agree that your sample is an oversimplification of my question.

Right now I have configured *:tipo (isRegex) but I'm getting the first occurrence of that tag tipo.

tipo is the Portuguese word for type and I want to capture error types. Not customer types. Not card types. Not loan types.