SOA 11g: BPEL Process using Ora:readBinaryfromFile Function Always Returns Content Type as text/plain Instead of Actual Content Type (Doc ID 1595316.1)

Last updated on OCTOBER 28, 2013

Applies to:

Oracle SOA Suite - Version 11.1.1.6.0 to 11.1.1.7.0 [Release 11gR1]
Information in this document applies to any platform.

Symptoms

BPEL Process using Ora:readBinaryfromFile Function always returns content type as text/plain instead of actual content type.

For example : Composite has a BPEL process which reads a pdf from a physical location by using Ora:readBinaryfromFile Function and later assigns it to an output variable in the BPEL response.

 

In the SOAP response we will get the content type as text/plain instead of application/pdf.

Changes

 using Xpath function Ora:readBinaryfromFile

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms