How do I upload an attachment using Activity Service WSDL?
In this use case, we'll upload an attachment using Activity Service WSDL.
Operation: createAttachment
Request Body
<soapenv:Envelope xmlns:obj="http://xmlns.oracle.com/apps/crmCommon/objects/objectsService/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/crmCommon/activities/activityManagementService/types/"> <soapenv:Body> <typ:createAttachment> <typ:attachmentRows> <obj:EntityName>ZCA_SALES_PARTY</obj:EntityName> <obj:Pk1Value>100014129759978</obj:Pk1Value> <obj:DatatypeCode>FILE</obj:DatatypeCode> <obj:Description>Description5</obj:Description> <obj:FileName>File Name.txt</obj:FileName> <obj:Title>Title</obj:Title> <obj:DmRepository>FusionAppsContentRepository</obj:DmRepository> <obj:DownloadStatus>N</obj:DownloadStatus> <obj:CategoryName>MISC</obj:CategoryName> <obj:UploadedFile>UmFnaGF2YQ==</obj:UploadedFile> </typ:attachmentRows> <typ:commitData>true</typ:commitData> </typ:createAttachment> </soapenv:Body> </soapenv:Envelope>
Response Body
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"> <env:Header> <wsa:Action>http://xmlns.oracle.com/apps/crmCommon/activities/activityManagementService/ActivityService/createAttachmentResponse</wsa:Action> <wsa:MessageID>urn:uuid:cd305321-f185-40a0-b41c-fa2efdaa4a09</wsa:MessageID> </env:Header> <env:Body> <ns0:createAttachmentResponse xmlns:ns0="http://xmlns.oracle.com/apps/crmCommon/activities/activityManagementService/types/"> <result xmlns="http://xmlns.oracle.com/apps/crmCommon/activities/activityManagementService/types/">SUCCESS</result> </ns0:createAttachmentResponse> </env:Body> </env:Envelope>
For more information see SOAP Web Services for Sales and Fusion Service