Trying to create a new parent/child relationship for two Configuration Items through SOAP services, but it's not working.
Using the "createAssetParentChildRelationship" method:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:createAssetParentChildRelationship>
<sid>XXXXXX</sid>
<parentHandle>0x#####################</parentHandle>
<childHandle>0x#####################</childHandle>
</ser:createAssetParentChildRelationship>
</soapenv:Body>
</soapenv:Envelope>
##################### represents the UUID of the given assets/CI's
Getting this error in response: AHD03303:Error retrieving Function Access due to an invalid handle or factory
Release : 17.1 and higher
CA Service Desk Manager
The correct syntax for the asset handle is "nr:#####################". This is the parameter type that is being used for the parentHandle and childHandle arguments.
The correct SOAP call should be:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
<soapenv:Header/>
<soapenv:Body>
<ser:createAssetParentChildRelationship>
<sid>XXXXXX</sid>
<parentHandle>nr:#####################</parentHandle>
<childHandle>nr:#####################</childHandle>
</ser:createAssetParentChildRelationship>
</soapenv:Body>
</soapenv:Envelope>
##################### represents the UUID of the given assets/CI's