通过PHP SOAP Client调用OBIEE WebService的例子
2010-03-08 16:50
441 查看
网上能找到一些用Java, .Net 或者C#写的调用OBIEE WebService的例子,没找到用PHP写的。但是官方文档有写到:Oracle BI Web Services is an application programming interface (API) that implements SOAP. 所以肯定也可以用PHP来调用。本文就是用PHP来调用的一个简单的例子。
<?php $client = new SoapClient('http://url:port/analytics/saw.dll?WSDL'); $option = array( 'name'=>"UserName", 'password'=>"Password"); $session = $client->__call('logon',array($option)); $session_id = $session->sessionID; $sql = 'OBIEE Answer Logic SQL'; $executionOptions = array( 'async'=> false, 'maxRowsPerPage'=> 100, 'refresh'=> true, 'presentationInfo'=> true, 'type'=> 'foo2'); $para = array( 'sql'=> $sql, 'outputFormat'=> "SAWRowsetSchemaAndData", 'executionOptions'=> $executionOptions, 'sessionID'=> $session_id ); $result = $client->__call('executeSQLQuery',array($para)); $rowset = $result->return->rowset; $client->__call('logoff',array($session_id)); ?>
相关文章推荐
- delphi调用C#写的web服务例子-----------(重点 InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap), ioDocument);)
- WebService /php soap 相关调用 收藏
- 调试通过的android手机调用网上.net web service的例子
- delphi调用C#写的web服务例子-----------(重点 InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoap), ioDocu
- PHP中调用Soap/WebService
- php通过SoapClient进行SOA调用
- 通过CXF的jaxws:client调用SOAP服务
- 通过jersey-client客户端调用Jersey的Web服务模拟CURD
- php 调用 java webservice
- 通过SoapClient调用天气预报
- 用Jersey构建RESTful服务4--通过jersey-client客户端调用Jersey的Web服务模拟CURD
- cxf 调用 .net webservice 出现服务器未能识别 HTTP 标头 SOAPAction 的值 解决方案
- Axis2调用webservice Client
- PHP调用wsdl接口实例化SoapClient抛出异常
- Jersey构建RESTful服务4--通过jersey-client客户端调用Jersey的Web服务模拟CURD
- php上传的例子,cocos2d也可以通过http配合调用
- Java WebService例子--------调用www.36wu.com查询IP地址
- XML Web Service开发实例——通过Windows Forms调用Web Service
- Delphi 调用JAVA WebService例子
- 采用php的SoapClient访问web服务