Tema anterior: deleteArchivedInstancesTema siguiente: executePendingInteraction


deleteAttachments

Utilice este método para suprimir los archivos adjuntos que se cargaron mediante el método executeStartRequest/ExecuteProcess.

Ejemplo

<tns:deleteAttachments xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<!--xsd:Choice Type-->
<tns:token>token__</tns:token>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:attachments>
<tns:attachmentId>111</tns:attachmentId>
</tns:attachments>
</tns:deleteAttachments>

Solicitud de SOAP

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<tns:deleteAttachments xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:attachments>
<tns:attachmentId>111</tns:attachmentId>
</tns:attachments>
</tns:deleteAttachments>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Respuesta de SOAP

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<deleteAttachmentsResponse xmlns="http://www.ca.com/itpam">
<successMessage>Se han suprimido correctamente los archivos adjuntos.</successMessage>
</deleteAttachmentsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

La etiqueta <successMessage> muestra los resultados de la solicitud.