ODI中web service介绍

ODI WS架构

 


ODI Web Service有几种,

第一种,可将数据(Data Store)表发布为Web Service,提供有相应的查询、删除、更新、添加数据的接口;

 

针对这类WS,需要在应用服务器中添加数据源,WLS中是在数据源中基于向导添加;在tomcat中是修改context.xmlweb.xml

context.xml

<Resource name=" " type="javax.sql.DataSource" driverClassName=" " url=" " username=" " password="" maxIdle="2" maxWait="-1" maxActive="4"/>

web.xml

<resource-ref>

 <description> </description>

    <res-ref-name> </res-ref-name>

    <res-type> </res-type>

    <res-auth> </res-auth>

 </resource-ref>

发布之后,在soapUI中查看


 

第二种,ODI Agent可以发布为Web Service

一般是http://xxx:port/oraclediagent/OdiInvoke,可在IE中查看此WS对应的接口,一般有调度生成的场景,基于返回的session查看对应的执行日志;Tomcat中查看OdiInvoke WS的示例:


 

最后一类是ODI提供有OdiInvokeWebServiceTool组件,

可在ODI的执行流程中调用外面提供的WS,把返回的结果集用于ETL处理。

 

ODI可以将WS发布到tomcat, weblogic等应用服务器,在tomcat上部署有Axis2,此软件里有包含wsdl2java应用,可将WSDL转换为java stub,用于其它JAVA程序中调用WS。语法:

WSDL2Java -uri <wsdl location> -p <name-of-package-to-create-stub-in> -d adb –s –o <location-of-output>


 

可使用soap UI工具查看WS的各个接口,并模拟调用


 

Ref url

 

ODI Series – Web Services

http://john-goodwin.blogspot.jp/2009/04/odi-series-web-services.html

ODI Series - Web Services Part 2 :

http://john-goodwin.blogspot.jp/2009/04/odi-series-web-services-part-2.html

ODI Series - Web Services Part 3

http://john-goodwin.blogspot.jp/2009/05/odi-series-web-services-part-3.html

ODI Series - Web Services Part 4

http://john-goodwin.blogspot.jp/2009/05/odi-series-web-services-part-4.html

 

posted @ 2013-12-13 22:41  margiex  阅读(1563)  评论(0编辑  收藏  举报