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 .