如何在 WSO2ESB 中调用带有 OUT 参数的 Oracle 过程?
版本:- WSO2 4.6.0- 甲骨文 11g
versions: - WSO2 4.6.0 - Oracle 11g
我在 Oracle DB 中有这个过程:
I Have this procedure in an Oracle DB:
PROCEDURE SEARCHCONTRACT ( CONTRACTNUM IN OKC_K_HEADERS_B.CONTRACT_NUMBER%TYPE
, cur_out IN OUT RefCursor)
....
程序运行正常!
注意cur_out IN OUT RefCursor!
我不知道如何在 DBLookup 介体中处理该参数!这个中介没有地方告诉每个参数是IN"还是OUT",我不确定设置方向(IN/OUT)是否足够.
I have no clue on how to handle that parameter in a DBLookup mediator! This mediator does not have any place to inform whether each parameter is "IN" or "OUT" and I'm not sure if setting the direction (IN/OUT) would be enough.
在此先感谢您的帮助!
我相信您可以使用 WSO2 数据服务服务器 (DSS) 或您的要求.
I believe you can use WSO2 Data Services Server (DSS) or your requirement.
您可以从 http://wso2.com/products/data-services 下载 WSO2 DSS-服务器/
它支持 Oracle RefCursor.
It has support for Oracle RefCursor.
然后您可以通过 WSO2 ESB 使用数据服务.
You can then use the data service via WSO2 ESB.
以下文章可能会有所帮助.
Following article might help.
http://wso2.com/库/教程/use-oracle-ref-cursors-wso2-data-services-server