REST WebServices Naming

book

Article ID: 193561

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) CA Application Performance Management (APM / Wily / Introscope) INTROSCOPE DX Application Performance Management

Issue/Introduction

When monitoring REST-based web services, the namespace value is not the same URI-type as for SOAP-based web services

Why is the namespace captured in a different way for REST WebServices?

 

 

 

Cause

From an example WADL file for Jersey web services

 

<script/>

<script/>

<ns0:doc xmlns:ns1="http://jersey.java.net/" ns1:generatedBy="Jersey: 2.22.4 2016-11-30 13:33:53"/>

<ns0:doc xmlns:ns2="http://jersey.java.net/" ns2:hint="This is simplified WADL with user and core resources only. To get full WADL with extended resources use the query parameter detail. Link: http://apmhost:7001/jerseyartifact/webapi/application.wadl?detail=true"/>

<ns0:grammars/>

<ns0:resources base="http://apmhost:7001/jerseyartifact/webapi/">

<ns0:resource path="myresource">

<ns0:method id="getIt" name="GET">

<ns0:response>

<ns0:representation mediaType="text/plain"/>

</ns0:response>

</ns0:method>

</ns0:resource>

</ns0:resources>

</ns0:application>

 

The namespace is derived from the resource path

The operation name is derived from the method

 

Note the resources base is similar to the namespace reported from SOAP-based web services

Environment

Release : 10.7.0

Component : APM Agents

Resolution

As per the design, the namespace is read from path annotation, and operation is identified on the method name.

It would require product enhancement to use the resources base as the namespace metric

Additional Information

Documented information on REST web services and supported frameworks

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/application-performance-management/10-7/implementing-agents/java-agent/java-agent-extensions/service-oriented-architecture-platform/soa-performance-management-compatibility.html