Hi
At oracle end the following steps are required
1.Create a Type in Oracle
ex. CREATE OR REPLACE type recordarray as VARRAY(10000) of varchar2(250)
2.Create a Stored procedure that takes as an input the variable of the created type.
ex CREATE OR REPLACE PROCEDURE procName(Array IN RECORDARRAY,sError OUT VARCHAR2) IS
3. In the procedure create a loop over the type.
At webMethods IS end following steps are required
- Create a java service that takes as an input a string list.
- Create a string array in the java service as
String anArrayIn = IDataUtil.getStringArray( pipelineCursor, “InputstringListName” ); - Register a thin driver
- Create a connection object.
- Create variable of the type oracle.sql.ArrayDescriptor & oracle.sql.Array
oracle.sql.ArrayDescriptor anArrayDescriptor = new oracle.sql.ArrayDescriptor(“Db Type name”,con);
oracle.sql.ARRAY anARRAYin = new oracle.sql.ARRAY(anArrayDescriptor, con, "ArrayCreatedInJavaService); - Call the stored procedure using oracle.jdbc.OracleCallableStatement
- Use setArray function to pass the array to the strored procedure
cstmt.setARRAY(2, anARRAYin)
Do let me know in case you require any other information.
Thanks
Deepali