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

Request: Download a donor attachment file when the input (nationalID) is not valid.

<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> <arg0>CTD999999</arg0> <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> <soapenv:Fault> <faultcode>soapenv:Server</faultcode> <faultstring>Method: downloadAttachment; SoapLogID: 1097071; Patient with national ID CTD999999 does not exist in the registry ErrorID: data.error.patientnotexist; Msg: Patient with national ID CTD999999 does not exist in the registry; MsgHtml: Patient with national ID CTD999999 does not exist in the registry; </faultstring> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>