I'm calling the ObjectService.getContentStream using a tool called SoapUI. I pass the repository name and a document's object id in the soap request. I get a response with the content as a byte stream inline. I was expecting the response to send the content as an attachment since its using MTOM. I'm attaching the request and response samples.
Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<soapenv:Header/>
<soapenv:Body>
<ns:getContentStream>
<ns:repositoryId>DevPolAr</ns:repositoryId>
<ns:objectId>090422418001d029</ns:objectId>
<!--Optional:-->
<ns:streamId></ns:streamId>
<!--Optional:-->
<ns:offset></ns:offset>
<!--Optional:-->
<ns:length></ns:length>
<!--Optional:-->
<ns:extension>
<!--You may enter ANY elements at this point-->
</ns:extension>
</ns:getContentStream>
</soapenv:Body>
</soapenv:Envelope>
Response
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getContentStreamResponse xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<ns2:contentStream>
<ns2:length>1022364</ns2:length>
<ns2:mimeType>application/pdf</ns2:mimeType>
<ns2:filename>Business Protocol for.pdf</ns2:filename>
<ns2:stream>JVBERi0xLjMNJeLjz9MNCjgwIDA (truncated for readability)</ns2:stream>
</ns2:contentStream>
</ns2:getContentStreamResponse>
</S:Body>
</S:Envelope>
Shouldn't the stream be returning an id for the content stream like cid:****?