How to overcome the CEM Web Services authentication problem in SoapUI

Document ID : KB000037213
Last Modified Date : 14/02/2018
Show Technical Document Details

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.  

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

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.

File Attachments:
TEC1641303.zip