Use this method to view attachments.
<tns:getAttachments 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:filter> <tns:contentId>111</tns:contentId> <tns:contentType>text/html</tns:contentType> </tns:filter> </tns:getAttachments>
<?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:getAttachments xmlns:tns="http://www.ca.com/itpam"> <tns:auth> <tns:user>Joe</tns:user> <tns:password>thisismypassword</tns:password> <tns:auth> <tns:filter> <tns:contentId>111</tns:contentId> <tns:contentType>text/html</tns:contentType> </tns:filter>
</getAttachments></SOAP-ENV:Body></SOAP-ENV:Envelope>
<filter> tag filters the response that is based on the content ID and content type of the attachment (optional).
<contentId> specifies the content ID of the attachment (optional).
<contentType> specifies the content Type of the attachment (optional).
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <getAttachmentsResponse xmlns="http://www.ca.com/itpam"> <attachments> <attachment> <attachmentID>1</attachmentID> <name>test</name> <contentId>111</contentId> <contentType>text/html</contentType> </attachment> </attachments> </getAttachmentsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
In the response for every attachment found, there is an <attachment> tag.
For each attachment tag, there are the following tags:
<attachmentID> specifies the Attachment ID of the attachment.
<name> specifies the name of the attachment.
<contentId> specifies the content ID of the attachment.
<contentType> specifies the content type of the attachment.
|
Copyright © 2014 CA.
All rights reserved.
|
|