Hi all,
As part of my requirement, i am building a soap service which has base-64 content as one of the request element and i had to REST(POST) the content as binary. In the pipeline for this requirement, i had decoded the base-64 content to binary(byte[]) using java callout.
After decoding, i see OSB is having the reference to the binary conent as 'binary-content ref="...."'. This is as expected as i read from many articles. Now, when i try to POST the payload to the target service(replacing node content of body with binary-content element), the business service is not automatically passing the binary content in the REST payload instead it is passing the below ;
<?xml version="1.0" encoding="UTF-8"?>
<binary-content ref="cid:Nfc06059:6:1645f0cea79:N7ffe" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://www.bea.com/wli/sb/context" />
my business service is of messaging type having binary as request type and text as response. I have come to conclusion that OSB is not sending the actual binary content instead the "con:binary-content" element itself by creating a test business service and making it to write in local file system (ofcourse, BS is of messageing type and binary as the request type).
Any help would be greatly appreciated.