In one of my requirements i need to call a SQL stored procedure . This procedure returns 4 record sets each containg one or more records. All the 4 record sets contains different column and has different information. i am able to invoke the procedure successfully and recieved the response back .I want to map the SQL response to another common response Schema, where i need to iterrate over each record set and prepare a single When i use MAP, the output of Test map is common Response without any data in it. My SQL response looks like below.
Response
--> Result
---->Dataset
----------->Schema
----------->Diffgram
------------------->NewDatset
----------------------->NewTable
---->Dataset
----------->Schema
----------->Diffgram
------------------->NewDatset
----------------------->NewTable
---->Dataset
----------->Schema
----------->Diffgram
------------------->NewDatset
----------------------->NewTable
---->Dataset
----------->Schema
----------->Diffgram
------------------->NewDatset
----------------------->NewTable
the elements in the Newtable are all different from the previous one, and my common response should be generated out of this sql response.Common response is single schema, which contains 4 record nodes and each record node corresponds to record set in the response sql,where each record node needs to be mapped with on of the NewTable Record node .
I already tried approach where I created a schema based on the response sql and imported that into the schema created by sql adater metadata. It worls fine til sql response . but when i apply MAP . I am not getting dat populated in the Commonresponse xml.
Any suggestion on this???