ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

SOAP Web Services Calls Testing Demo using SOAPUI

book

Article ID: 40101

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

What tool can be used to test Service Desk Manager SOAP Web Service functions?

Environment

Service Desk Manager 14.1 and 17.x

All Supported Operating Systems

Resolution

SoapUI (Open Source) application can be used to test Service Desk Manager SOAP Web Services

https://www.soapui.org/downloads/soapui/

Sample setup steps:

1.  Navigate to https://www.soapui.org/downloads/soapui.html and click download "SoapUI OpenSource"

2.  Install SoapUI on any Windows server/workstation that can access the Service Desk Manager SOAP Web service URL.

3.  Create your first project with sample queries for all Service Desk Manager method calls.

a.  Initial screen

b.  Create a new project

c.  Provide project name and Web service end-point information

Note:  The initial Service Desk SOAP WSDL is: http://SERVER.DOMAIN.COM:8080/axis/services/USD_R11_WebService?wsdl

Result

d.  We will next do a login to establish an SID from which to run SOAP Web Service Call.  To do this, drill down to "login" then double click on "Request 1" under the "login" method to create/edit the Request 1 SOAP call.

e.  Populate the username and password fields, then click on the green "play" button on the upper left.  On the right hand side, click on the "XML" tab to expose the "loginReturn" value.  This is the SID value which we will be using to demo a SOAP call.

f.  To demonstrate the SOAP calls that can be made, we will query for all call request objects using the doSelect method.  To do this, on the left hand side, locate the doSelect method, and double click on "Request 1" under "doSelect".

The resultant XML for the SOAP Envelope will read as the following:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:doSelect>
         <sid>?</sid>
         <objectType>?</objectType>
         <whereClause>?</whereClause>
         <maxRows>?</maxRows>
         <attributes>
            <!--1 or more repetitions:-->
            <string>?</string>
         </attributes>
      </ser:doSelect>
   </soapenv:Body>
</soapenv:Envelope>

g.  Modify the above XML to read as:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:doSelect>
         <sid>1664836388</sid>
         <objectType>cr</objectType>
         <whereClause></whereClause>
         <maxRows>-1</maxRows>
         <attributes>
            <!--1 or more repetitions:-->
            <string>ref_num</string>
            <string>summary</string>
         </attributes>
      </ser:doSelect>
   </soapenv:Body>
</soapenv:Envelope>

sid:  this is the "loginReturn" integer value that was obtained when we first logged in via the above Login method.  This number will vary depending on the outcome of the login method

objectType:  The object being queried.  We are interested in call requests, so this should be "cr"

whereClause:  This would be a string to provide specific search parameters.  We omit this value for purposes of demonstrating the SOAP call.

maxRows:  Maximum number of rows returned.  We provide a value of -1 to return ALL rows.

attributes:  List of attributes tied to the given object to return results on.  In this case, we want the ref_num and summary values returned.

h.  Run the method by clicking on the green "play" icon.  On the right hand side, click on the "XML" tab to display the results.

Additional Information

A counterpart document on demonstrating REST Web Services calls is available here:

REST Web Services Calls Testing Demo using SOAPUI
https://knowledge.broadcom.com/external/article?articleId=45577

Attachments