Sample Soap Request for Method: uploadAttachment ()

Request: Upload a 2nd attachment, attachment-section=[PATIENT_PERSONAL] - attachmentID=0, ownerID=null, it is not required, file type="pdf".

<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>CTD041271</nationalID> <attachmentSection> <bizRef>PATIENT_PERSONAL</bizRef> </attachmentSection> <description>PATIENT_PERSONAL attachment # 2 description.</description> <sideBysideFlag>false</sideBysideFlag> </arg0> <arg1> <attachmentData>cid:testPDF.pdf</attachmentData> <filename>testPDF.pdf</filename> </arg1> </ctr:uploadAttachment> </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>109</attachmentID> <nationalID>CTD000081</nationalID> <attachmentSection> <id>1</id> <bizRef>PATIENT_PERSONAL</bizRef> </attachmentSection> <description>PATIENT_PERSONAL attachment # 2 description.</description> <sideBysideFlag>false</sideBysideFlag> <fileName>testPDF.pdf</fileName> <uploadedBy>jp-bc jps</uploadedBy> <uploadedDate>2021-11-04T09:24:09-04:00</uploadedDate> </return> </ns2:uploadAttachmentResponse> </soapenv:Body> </soapenv:Envelope>