Set manufacturer on a configuration item through a SOAP web services call
search cancel

Set manufacturer on a configuration item through a SOAP web services call

book

Article ID: 36088

calendar_today

Updated On:

Products

SUPPORT AUTOMATION- SERVER CA Service Desk Manager - Unified Self Service CA Service Desk Manager CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

How can I set the manufacturer field on a configuration item (nr object) through SOAP web services?

Environment

CA Service Desk Manager 17.1 and higher.

Resolution

  • The manufacturer field cannot be set directly through a web service call;
  • This is the same behavior seen through the Service Desk Manager web interface;
  • The manufacturer is set through the Model field;
  • A Manufacturer Model relationship can be set up through the Service Desk web interface under the Administration tab at CA CMDB > CI Models;
  • Once a Manufacturer Model relationship is set up Model can be set through a web service call which will, in turn, set the Manufacturer field.

Below is an example of updateObject web service call made through SoapUI that sets the Model field on a configuration item:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:updateObject>
         <sid>1765097405</sid>
         <objectHandle>nr:00187EAFC1B1D14AA0570FDBA3446814</objectHandle>
         <attrVals>            
            <string>model</string>
            <string>B7DA08747EEB514388EB7BF9EB6F4990</string>    
         </attrVals>
         <attributes>
            <string>id</string>
            <string>model</string>
            <string>manufacturer</string>
         </attributes>
      </ser:updateObject>
   </soapenv:Body>
</soapenv:Envelope>