// include the class include("nusoap.php"); // create a instance of the SOAP client object // remember that this script is the client, // accessing the web service provided by BusinessObjects $soapclient = new soapclient("http://192.168.1.99:8080/wiws/services/wiws.businessobjects.com"); // uncomment the next line to see debug messages // $soapclient->debug_flag = 1; // set up an array containing input parameters to be // passed to the remote procedure 'userName' => 'Administrator', // username 'password' => '', // password 'deltaUTC' => 0, // utc delta ); // invoke the method on the server $result = $soapclient->call("login", $params); // print the session ID // show corporate documents //$params3 = array( // 'session' => $result, // 'listType' => 'corporate', // 'category' => '', // 'sortOn' => 0, // 'refresh' => 1, //); //$corporate = $soapclient->call("getDocumentList", $params3); // if (is_array($corporate['resultElements'])) // { // foreach ($corporate['resultElements'] as $r) // { // echo "- " .
// echo "
"; // echo $r['snippet'] . "(" . //$r['cachedSize'] . ")"; // echo "";
// } // } // logout 'session' => $result, // sessionid ); // invoke the method on the server $result2 = $soapclient->call("logout", $params2); // print the results of the search ?>
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
No comments:
Post a Comment