How to send SOAP messages with attachments?

I am consuming a web service using an interface automatically generated from a RODL file.
Is there a way to send attachments using the CID URI scheme?



can you show example of such SOAP request, pls?
you can use support@ for keeping privacy

The raw request should be as follows:

Content-Id: <rootpart*>
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:xsd=""
    xmlns:xsi="" xmlns:HNS=""
    <SOAP-ENV:Header />
    <SOAP-ENV:Body xmlns:ro="">

Content-Id: <>
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary

    ... data (binary or text) ...

Here are some references:

Thanks for help!


this feature isn’t supported, but you can do it manually:
you can use Channel.OnSendStream event and modify stream that will be sent to server.

for adding attachment you can use class from uROMime.pas unit