cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to JDBC- Array mapping

arunneerolil
Contributor
0 Kudos

Hi,

In my scenario Proxy to JDBC - synchronous call.

In the receiver side using JDBC adapter a stored procedure is invoked and that returns some values say... IndentNumber,EmployeeNumber and ResumeNumbers (Which is array type.), Status(which is again array) -- ResumeNumbers may have multiple resume numbers and status has status flag corresponding to each resume.

How do I go about this in XI mapping.

Please guide me on this.

Regards,

chem

Edited by: Chemmanz on Mar 15, 2008 3:39 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For this you need to make the occurance of the proxy structure as 1...unbounded.

If the fields have to mapped then make the Unbouded occurance and map it as it is.

OR for mulitple records....

For e.g.

Your JDBC side structure will be as

<root>

<StatementName5>

<storedProcedureName action=” EXECUTE”>

<table>realStoredProcedureeName</table>

<param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>IndentNumber</param1>

</storedProcedureName >

</StatementName5>

</root>

Here make the occurance of IndentNumber as Unbounded so you will get whole array.

Now On Proxy side make the related structure and try to map the any one internal field i.e. array to root node

i.e. if proxy structure is

<root>

<IndentNumber></IndentNumber>

</root>

Then map JDBC response field IndentNumber -


> Root

This will create the multiple records for proxy.

Then all fields map as one to one mapping

IndentNumber (JDBC)->splitByValue>IndentNumber (Proxy)

Thnaks

Swarup

Answers (0)