Sample Soap Request for Method: downloadAttachment (String nationalID, Long attachmentId)

Request: Download a donor attachment file.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ctr="http://ctr3ws.cbs.com/"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="0" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-3" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Username>someCTRuser</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">anypw</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ctr:downloadAttachment> <!-- nationalID --> <arg0>CTD040922</arg0> <!-- attachmentId --> <arg1>70302</arg1> </ctr:downloadAttachment> </soapenv:Body> </soapenv:Envelope>

Response: the "downloadAttachment" results.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:downloadAttachmentResponse xmlns:ns2="http://ctr3ws.cbs.com/"> <return> <attachmentData> <xop:Include href="cid:98971e43aa75034fffebe91dad3debe80235586a95d42849@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"/> </attachmentData> <filename>2021-06-29 16-00-48.pdf</filename> </return> </ns2:downloadAttachmentResponse> </soapenv:Body> </soapenv:Envelope>