AnsweredAssumed Answered

CA service Desk: problem using removeLrelRelationships

Question asked by A.anas on Mar 7, 2016
Latest reply on Mar 9, 2016 by A.anas

Hi team,

 

I'm having problems using the removeLrelRelationships with objects cnt and role. the following soap body is the example I am sending using the Soap UI:

 

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

   <soapenv:Header/>

   <soapenv:Body>

      <ser:removeLrelRelationships>

         <sid>1984841277</sid>

         <contextObject>cnt:3D00F38B55685744BF02A15A28FE9CE3</contextObject>

         <lrelName>roles</lrelName>

         <removeObjectHandles>

            <string>400002</string>

         </removeObjectHandles>

      </ser:removeLrelRelationships>

   </soapenv:Body>

</soapenv:Envelope>

 

but I am getting this error:

<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>soapenv:Client</faultcode>

         <faultstring>Bad handle passed to update_handle for lrel 'roles' - it's of the wrong type!  Offending handle: 400002</faultstring>

         <faultactor/>

         <detail>

            <ErrorMessage>Bad handle passed to update_handle for lrel 'roles' - it's of the wrong type!  Offending handle: 400002</ErrorMessage>

            <ErrorCode>1000</ErrorCode>

         </detail>

      </soapenv:Fault>

   </soapenv:Body>

</soapenv:Envelope>

 

in the cnt_role object, the cnt:3D00F38B55685744BF02A15A28FE9CE3 is linked to the role 400002. I mean I have a row in the table usp_cnt_role with the contact value "0x3D00F38B55685744BF02A15A28FE9CE3" and the the role_obj value "400002".

 

Please, what is wrong with my soap request?

Thanks a lot in advance.

Outcomes