Unable to use CEM Web Services, how to pass the user credentials?

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

Problem:

You need to use CEM webservice in your customized party tool, you are unable to pass the user credentials?

You noticed that all Introscope web services are working with username and password
http://user:password@<host>:<port>/introscope-web-services/services/AlertPollingService?wsdl
http://user:password@<host>:<port>/introscope-web-services/services/MetricsDataService?wsdl
http://user:password@<host>:<port>/introscope-web-services/services/MetricsListService?wsdl
http://user:password@<host>:<port>/introscope-web-services/services/EmLifecycleService?wsdl

You would like to be able to call a CEM webservices in a similar manner as below:
http://user:password@<host>:<port>/wily/cem/webservices/EventsDataOutService?wsdl
http://user:password@<host>:<port>/wily/cem/webservices/OperatorDataOutService?wsdl
http://user:password@<host>:<port>/wily/cem/webservices/StatisticsDataOutService?wsdl
http://user:password@<host>:<port>/wily/cem/webservices/BizImpactDataOutService?wsdl
http://user:password@<host>:<port>/wily/cem/webservices/ConfigurationDataInService?wsdl
http://user:password@<host>:<port>/wily/cem/webservices/ConfigurationDataOutService?wsdl

 

Environment:

This limitation applies to any CEM version.

 

Cause:

CEM needs authentication to use webservices because of ACEGI authentication framework. At the present time CEM doesn’t have mechanism to take username and password in url of wsdl.

 

Workaround:

You can use CEMExportTool.zip, which allows you to perform all the below CEM Webservices operations.

For more information and examples you can refer to the readme.txt filed that is bundled in the package.

-Get all business process (business service) statistics data in a time range.

-Get defects for a specified business process (business service) in a time range.

-Close a specified Incident with optional comments.

 

Below is an example of closing an incident:

java -jar CEMExportTool.jar -host <your_em_ip> -username cemadmin -password quality -port <listening_port> -command 20 -incidentid 6 -comments "Closed from CEMExportTool by Ramesh"

1.jpg

2.jpg

 

3.jpg

File Attachments:
TEC1822856.zip