Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Downlaod a file from URL in OSB12c

NagakiranSep 15 2018 — edited Sep 20 2018

Hi ,

I have a requirement to download a file (any extention) from a sharepoint  link to local directory   through OSB .

I had created a BusinessService - BS1  with Service type as "Messaging Service" .The request type is "None" Response type is "BINARY" . I created a pipe line and connected BS1 through route node .When i had tested the pipe line through test console .I was able to get PDF in some junk format probably some encoded format . In the below routenode section , i can see the following variables

$attachement - empty

$header -empty

$body -  

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<con:binary-content ref="cid:54e1667c:1:165d710665c:N7ffd" xmlns:con="http://www.bea.com/wli/sb/context"/>

</soapenv:Body>

The body variable seems to have reference to the document encoded in binary format. I am planning to do a java call out to convert binary content to base64 encoded format and then pass it to file adapter to write to local (opaque) .

I believe the java call out requires binary content as input but what i have is binary reference to the content .

Can any one please suggest how to retrieve binary content from this reference .I tried assigning $body/*:binary-content to an OSB variable but the variable is empty .

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2018
Added on Sep 15 2018
3 comments
1,384 views