CA Service Management

 View Only
  • 1.  how to use UpdateObject in SOAP

    Posted Mar 27, 2024 10:44 AM
      |   view attached

    HI

    I'm trying to use updateObject method and I got Error Message "Uneven name-value pairs to update"

    I would appreciate your hel

    <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>1787936107</sid>
             <objectHandle>cr:514801</objectHandle>
             <attrVals>
                <!--1 or more repetitions:-->
                <string>mm</string>
             </attrVals>
             <attributes>
                <!--1 or more repetitions:-->
                <string>description</string>
             </attributes>
          </ser:updateObject>
       </soapenv:Body>
    </soapenv:Envelope>



  • 2.  RE: how to use UpdateObject in SOAP
    Best Answer

    Broadcom Employee
    Posted Mar 27, 2024 05:44 PM

    Hi... You need to include the name and value of the attribute you want to update for the "cr" object.

    In the <attrVals> tag, you only have 1 item and there should be an even number of items.

    For example,

           <attrVals>

                <string>description</string>

                <string>This is my description</string>

                 <string>summary</string>

                <string>This is my summary</string>

            </attrVals>