Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Using Attachments with Web Services On Demand > Specifying File Attachment Content > Attaching Binary DataThe following SOAP sample shows how the Base64 encoded attachment file must be embedded within the SOAP document: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AccountWS_AccountInsert_Input xmlns="urn:crmondemand/ws/account/10/2004"> <Description>This is for missing fields test</Description> <Location>Bangalore</Location> <AccountName>Atach_Test1</AccountName> <NumberEmployees>300</NumberEmployees> <FileNameOrURL>Attached</FileNameOrURL> <FileExtension>doc</FileExtension> <DisplayFileName>A Doc Attachment</DisplayFileName> <Attachment ContentId="content_doc">0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA=</Attachment> </AccountWS_AccountInsert_Input> The attachment content is specified within the <Attachment> element which has the data type SiebelXmlAttachmentType. NOTE: It is not required to specify the ContentId attribute. |
Oracle Web Services On Demand Guide, Version 26.0 (Oracle CRM On Demand Release 38) | Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |