X

An Oracle blog about BI Publisher

BIP Web Services and PHP

I have to thank Dave Matlock on the forum for the following. I have not covered the web services we offer with BIP in 10.1.3.3.1 - its not going to be a 10 line java example ... sadly.

However, it appears that in PHP, it can be a 10 line code example, Im not greatly familiar with PHP so have not tried this out. If it really is this straightforward bring on PHP please.



I wanted to share this code with the community. I needed a way to integrate a PHP5 application with BIP Enterprise without sending the user to the BIP application. The answer was, of course, web services. Thankfully the BIP folks provided this interface. There is no error handling in the example below.

$wsdl = "http://hostname:8088/xmlpserver/services/ReportService?wsdl";
$client = new SoapClient($wsdl);

$params[] = array('name'=>'v_item', 'value'=>'NIW-TEST1', 'hasMultiValues'=>0);
$params[] = array('name'=>'v_item1', 'value'=>'NIW-TEST2', 'hasMultiValues'=>0);

$report = $client->getReportData('/Guest/Status/Status.xdo',
$params,
'uname', // 'Guest' can be used with a null pwd
'pwd',
'pdf',
'/Guest/Status/Status.rtf');

header('Content-type: application/pdf');
header('Pragma: no-cache');
header('Content-disposition: attachment; filename=Status.pdf');

echo $report;




Thanks Dave, I need to find the time to get more familiar with PHP.

Join the discussion

Comments ( 2 )
  • ivanko Tuesday, June 10, 2008
    Tim, thanks for your posts. They're great!
    Please, could you provide an example of calling BIP from inside BPEL (SOA Suite). We're stuck a bit here.
  • Tim Dexter Tuesday, June 10, 2008
    Hi Ivanko
    I have something planned for that. What are you trying to do in terms of integration?
    Tim
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.