Saturday, September 16, 2006

Something you'll need for shure in Poland

Well, if you don't want your laptop to lie dead soon the first thing to buy when in Poland is an adaptor like this from DPM Elektronik.

Tuesday, September 05, 2006

Php and SOAP, getting to the corporate business intelligence repository

What follows is a snippet taken from a very old experiment I did, integrating a php application with BusinessObject's WebIntelligence 2.7.x through it's (very experimental) webservices toolkit, which was really promising but Java and .NET oriented ;)


  1. // include the class
  2. include("nusoap.php");
  3. // create a instance of the SOAP client object
  4. // remember that this script is the client,
  5. // accessing the web service provided by BusinessObjects
  6. $soapclient = new soapclient("http://192.168.1.99:8080/wiws/services/wiws.businessobjects.com");
  7. // uncomment the next line to see debug messages
  8. // $soapclient->debug_flag = 1;
  9. // set up an array containing input parameters to be
  10. // passed to the remote procedure
  11. $params = array(
  12. 'userName' => 'Administrator', // username
  13. 'password' => '', // password
  14. 'deltaUTC' => 0, // utc delta
  15. );
  16. // invoke the method on the server
  17. $result = $soapclient->call("login", $params);
  18. // print the session ID
  19. print_r($result);
  20. // show corporate documents
  21. //$params3 = array(
  22. // 'session' => $result,
  23. // 'listType' => 'corporate',
  24. // 'category' => '',
  25. // 'sortOn' => 0,
  26. // 'refresh' => 1,
  27. //);
  28. //$corporate = $soapclient->call("getDocumentList", $params3);
  29. // if (is_array($corporate['resultElements']))
  30. // {
  31. // foreach ($corporate['resultElements'] as $r)
  32. // {
  33. // echo "
  34. " .
  • // echo "
    ";
  • // echo $r['snippet'] . "(" .
  • //$r['cachedSize'] . ")";
  • // echo "

    ";

  • // }
  • // }
  • // logout
  • $params2 = array(
  • 'session' => $result, // sessionid
  • );
  • // invoke the method on the server
  • $result2 = $soapclient->call("logout", $params2);
  • // print the results of the search
  • print_r($result2);
  • ?>

  • Php integration was done through nuSOAP.

    I know that it's old and not really about a widespread subject, but it was really interesting and somehow fun to build single sign on between WebI and phpBB :-D