Properties for Streaming Attachments
To stream attachments, add the following properties in the composite.xml
file. If optimization is enabled, then a native call is used instead of a SOAP call. The following example provides details.
<binding.ws
port="http://services.otn.com#wsdl.endpoint(MIMEService/MIMEService)"
xmlns:ns="http://xmlns.oracle.com/sca/1.0"
streamIncomingAttachments="true" streamOutgoingAttachments="true">
<!--Add this prop to reference bindings to make a SOAP call. -->
<property name="oracle.webservices.local.optimization">false</property>
</binding.ws>
For information about the oracle.webservices.local.optimization
property, see Policy Attachments and Local Optimization in Composite-to-Composite
Invocations and Configuring Local Optimization in Administering Oracle SOA Suite and Oracle Business Process Management Suite.
Note:
Oracle Web Services Manager (OWSM) does not inspect or enforce policies on streamed attachments. For more information about OWSM, see Administering Web Services.