Sample Soap Request for Method: uploadAttachment (String nationalId, List(WSLookup) attachMentLocations)

Upload a new attachment, attachment-section=[ORGAN_REQUESTS] - attachmentID=0, ownerID=149149 (organ_request ID is required), it is required, file type="html".

<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:uploadAttachment> <arg0> <attachmentID>0</attachmentID> <nationalID>CTR041277</nationalID> <attachmentSection> <bizRef>ORGAN_REQUESTS</bizRef> </attachmentSection> <description>ORGAN_REQUESTS attachment description.</description> <sideBysideFlag>true</sideBysideFlag> <ownerID>149149</ownerID> </arg0> <arg1> <attachmentData>cid:wsmethods.html</attachmentData> <filename>wsmethods.html</filename> </arg1> </ctr:uploadAttachment> </soapenv:Body> </soapenv:Envelope>

Response: the "uploadAttachment" results.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns2:uploadAttachmentResponse xmlns:ns2="http://ctr3ws.cbs.com/"> <return> <attachmentID>70566</attachmentID> <nationalID>CTR041277</nationalID> <attachmentSection> <id>2</id> <bizRef>ORGAN_REQUESTS</bizRef> </attachmentSection> <description>ORGAN_REQUESTS attachment description.</description> <sideBysideFlag>true</sideBysideFlag> <fileName>wsmethods.html</fileName> <uploadedDate>2021-11-04T08:40:06.420-04:00</uploadedDate> </return> </ns2:uploadAttachmentResponse> </soapenv:Body> </soapenv:Envelope>