How to use the CEM Webservices using SoapUI?

book

Article ID: 35758

calendar_today

Updated On:

Products

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

Issue/Introduction

Question:

How to use the CEM Webservices using SoapUI?

Answer:

1. Verify that you can access the CEM web services APIs:

    http://<host>:<port>/wily/cem/webservices/ConfigurationDataOutService?wsdl
    http://<host>:<port>/wily/cem/webservices/BizImpactDataOutService?wsdl
    http://<host>:<port>/wily/cem/webservices/EventsDataOutService?wsdl
    http://<host>:<port>/wily/cem/webservices/StatisticsDataOutService?wsdl
   
Open the following WSDLs in a web browser to expose the CA CEM web services, replace <host> and <port> with the hostname of the CA CEM computer and port number where the CA CEM server is running. When you are prompted, enter the valid username and password in the authentication dialog.


2. Launch SOAP UI, create a new SOAP Project, then select one of the available cem wsdl, for example: ConfigurationDataOutService

<Please see attached file for image>

step_0.png

Click OK

<Please see attached file for image>

step_0b.png

NOTE: Depending of the version of SOAPUI you might get the error => Unexpected element: OPEN_TAG

To workaround the issue, open the wsdl using your internet browse, save the page as a .xml file, then open it with SoapUI.

<Please see attached file for image>

step_0a.png


3. Configure the CEM Authentication mechanism in SOAPUI:

a) Add to your project a new a Step (Groovy script) with the attached code, modify the hostname with your MOM/TESS hostname

SessionID.txt

<Please see attached file for image>

step_1.png

b) For every SOAP request to your project add the header "Cookie" with the value as ${#TestCase#ID}
 
c) Invoke a Web Service Operation - attached a screenshot of invoking the getAllUsers operation from ConfigurationDataOutService 

<Please see attached file for image>

step_2.png

Environment

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

Attachments

1558722489277000035758_sktwi1f5rjvs16wgg.png get_app
1558722487366000035758_sktwi1f5rjvs16wgf.png get_app
1558722485547000035758_sktwi1f5rjvs16wge.png get_app
1558722483738000035758_sktwi1f5rjvs16wgd.png get_app
1558722481766000035758_sktwi1f5rjvs16wgc.png get_app
1558534210437TEC1141865.zip get_app