How to overcome the CEM Web Services authentication problem in SoapUI

book

Article ID: 37213

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

Summary:  

This article discusses about the additional steps required to overcome the CEM Web Services authentication problem in SoapUI.

  

Background:   

Due to the nature of the CEM Web Services which use Form Based Authentication, in which a username or password cannot be easily passed in a request to invoke the Web Services operation, one would encounter authentication problem when trying to invoke these CEM Web Services from a SoapUI project. To overcome the authentication problem, additional steps will be required while creating a new Project in the SoapUI.

  

Environment:  

SoapUI 5.0

 

Instructions: 

Here are the steps to overcome CEM authentication problem in SoapUI:

1) Add a Groovy Script to your project by selecting Insert Step > Groovy script.  You can use this SOAPUI_CEM_Webservices_access_Groovy_script .zip script, and modify the hostname to match your MOM/TESS hostname.  

<Please see attached file for image>

1.png

  

2) For every SOAP request to your project add the header "Cookie" with the value as ${#TestCase#ID}

3) Finally, invoke the Web Service Operations. For example, below is a screenshot of invoking the getAllUsers operation from ConfigurationDataOutService

<Please see attached file for image>

3.png

 

Additional Information:

Although the above steps would overcome the CEM Web Services authentication problem in SoapUI, a better approach to retrieve CEM data would be to use the CEMExportTool which can be downloaded from here.

Environment

Release: CEMUGD00200-9.7-Introscope to CA Application-Performance Management-Upgrade Main
Component:

Attachments

1558723594262000037213_sktwi1f5rjvs16wx6.png get_app
1558723592253000037213_sktwi1f5rjvs16wx5.png get_app
1558534282012TEC1641303.zip get_app