ODI中web service介绍

ODI WS架构

 

 

 

 

ODI Web Service有几种,java

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

 

  

 

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

context.xmltomcat

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

web.xmlsession

<resource-ref>架构

 <description> </description>oracle

    <res-ref-name> </res-ref-name>工具

    <res-type> </res-type>url

    <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的各个接口,并模拟调用

 

相关文章
相关标签/搜索