SOAP web services logComment returns "No such operation"
search cancel

SOAP web services logComment returns "No such operation"

book

Article ID: 135693

calendar_today

Updated On:

Products

CA Service Desk Manager

Issue/Introduction

Using SoapUI tool, you may have configured a request similar to the following in order to log a comment for an incident. 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:logComment>

         <sid>1909611350</sid>

         <ticketHandle>cr:400153</ticketHandle>

         <comment>test1</comment>

         <internalFlag></internalFlag>

      </ser:logComment>

   </soapenv:Body>

</soapenv:Envelope>


The result is:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <soapenv:Fault>

         <faultcode>Server.userException</faultcode>

         <faultstring>No such operation 'logComment'</faultstring>

         <detail>

            <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">mySDMservername</ns1:hostname>

         </detail>

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

Environment

Release: 17.1, 17.2


Component: CA Service Desk Manager,  SOAP web services

Cause

You must provide a value for "internalFlag".

Resolution

Specify the value of 0 or 1 for "internalFlag".


For example, use the first or the second block of xml to make the request for the ticket ref_num corresponding to persid cr:400153:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:logComment>

         <sid>1909611350</sid>

         <ticketHandle>cr:400153</ticketHandle>

         <comment>test1</comment>

         <internalFlag>0</internalFlag>

      </ser:logComment>

   </soapenv:Body>

</soapenv:Envelope>


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:logComment>

         <sid>1909611350</sid>

         <ticketHandle>cr:400153</ticketHandle>

         <comment>test2</comment>

         <internalFlag>1</internalFlag>

      </ser:logComment>

   </soapenv:Body>

</soapenv:Envelope>


The result would now be like:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

   <soapenv:Body>

      <logCommentResponse xmlns="http://www.ca.com/UnicenterServicePlus/ServiceDesk"/>

   </soapenv:Body>

</soapenv:Envelope>

Additional Information

You can confirm that "logComment" is included in the API using the web services URL in your web browser, search for "logComment" after the results are displayed on the page.  The URL is formatted like: http://mySDMservername:8080/axis/services