GetAttachmentContentFromMetadata
Obtém detalhes e base64 de um ou mais arquivos em anexo de um campo em uma solicitação do CAP.
Disponível no Web Service CAPRequests.asmx
Parâmetros
requestID[Integer]: ID da solicitação.
metadataName[String]: Nome do campo tipo anexo da solicitação.
Exemplo de Solicitação/Resposta SOAP (v1.2)
POST /Services/CAPRequests.asmx HTTP/1.1
Host: qa.capworkflow.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetAttachmentContentFromMetadata xmlns="http://iteris.cap.webservices">
<requestId>int</requestId>
<metadataName>string</metadataName>
</GetAttachmentContentFromMetadata>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
---
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetAttachmentContentFromMetadataResponse xmlns="http://iteris.cap.webservices">
<GetAttachmentContentFromMetadataResult>
<MetadataAttachment>
<Id>int</Id>
<FileName>string</FileName>
<ContentType>string</ContentType>
<Base64Content>string</Base64Content>
<Operation>New or Delete</Operation>
</MetadataAttachment>
<MetadataAttachment>
<Id>int</Id>
<FileName>string</FileName>
<ContentType>string</ContentType>
<Base64Content>string</Base64Content>
<Operation>New or Delete</Operation>
</MetadataAttachment>
</GetAttachmentContentFromMetadataResult>
</GetAttachmentContentFromMetadataResponse>
</soap12:Body>
</soap12:Envelope>