Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

JDBC Receiver to ORACLE Stored Procedure

$
0
0

Hi Experts

 

I browed the forum and could not find a strait answer to my problem. Hence I am posting this thread.

 

I have a sync call using JDBC Receiver to ORACLE stored procedure.

 

The definition of the procedure is as follows:

CREATE OR REPLACE procedure TW.XI_TEST    (p_edi_extract_id varchar2, p_res out edi_extract%rowtype) is
t edi_extract%rowtype;
begin  select *   into p_res  from edi_extract e  where e.edi_extract_id = to_number(p_edi_extract_id);
exception   when no_data_found then        p_res := t;
end XI_TEST;

 

The request XML is as follows:

 

<?xml version="1.0" encoding="UTF-8" ?> <ns0:MT_EDIExtractSelectionRequest xmlns:ns0="urn:zim.com:tests"><STATEMENT><PROC_NAME ACTION="EXECUTE">  <TABLE>TW.XI_TEST</TABLE>   <EDI_EXTRACT_ID isInput="true" type="STRING">4223142</EDI_EXTRACT_ID>   </PROC_NAME>  </STATEMENT>  </ns0:MT_EDIExtractSelectionRequest>

 

The error I am getting is as follows:

 

com.sap.engine.interfaces.messaging.api.exception.MessagingException:
 Error processing request in sax parser:
 Error when executing statement for table/stored proc. 'TW.XI_TEST' (structure 'STATEMENT'):
 java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00306:
 wrong number or types of arguments in call to 'XI_TEST' ORA-06550: line 1, column 7:
 PL/SQL: Statement ignored

 

Any help would be appreciated.

 

Regards

Effi.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>