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

Developing a synchronous proxy to JDBC scenario from SAP PI 7.0 system

$
0
0

Hi Experts,

 

Hope you are doing well.

I am developing a synchronous proxy to JDBC scenario. On the database end, I have to call a stored procedure and pass on a value as an input parameter. The stored procedure will return back a set of fields which will have to returned back to the proxy.

I designed the interface as per the steps provided in the link http://scn.sap.com/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

The request message type on the database side was defined as follows:

 

<Message Type name>

     <Statement>

          <STORED_PROCEDURE_NAME action="EXECUTE">

               <INPUT FIELD isInput="TRUE" type="VARCHAR2">12345</INPUT FIELD>

          </STORED_PROCEDURE_NAME>

     </Statement>

</Message Type name>

 

The synchronous response message type from the Database side was defined as follows:

 

  <Statement_Response>

      <STORED_PROCEDURE_NAME>

         <row>

            <OUTPUT FIELD 1>val 1</OUTPUT FIELD 1>

            <OUTPUT FIELD 2>val 2</OUTPUT FIELD 2>

            <OUTPUT FIELD 3>val 3</OUTPUT FIELD 3>

         </row>

      </STORED_PROCEDURE_NAME>

   </Statement_Response>

 

I developed a request message mapping for mapping the Proxy structure to the DB Request structure. I also developed a response mapping for mapping the DB Response to the Proxy response. I combined the two message mappings under a single Interface mapping

 

While executing the interface, I am getting the following error in XI:

 

com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. '<STORED_PROCEDURE_NAME>' (structure 'Statement'): java.sql.SQLException: Unsupported parameter type 'VARCHAR2' for parameter '<INPUT FIELD>' found

 

Is there something that I am missing?

 

regards

Debansu


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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