on 02-22-2012 2:41 PM
Hi all,
We are trying to call a stored from a synchronous PI interface.
Below is the stored procedure code.
PROCEDURE SP1(
IUSERNAME IN VARCHAR2)
IS
VPASSWORD VARCHAR2(20);
BEGIN
SELECT
PASSWORD
INTO
VPASSWORD
FROM
EMPLOYEE@DLG_EMPLOYEE.AB.XVBY
WHERE
USERNAME = IUSERNAME;
DBMS_OUTPUT.PUT_LINE(VPASSWORD) ;
END;
The interface is working fine without any error but there is no output coming to PI from the database even after giving a valid username as input to the stored procedure.
The request message to the stored procedure looks like :
<?xml version="1.0" encoding="UTF-8" ?>
<ns0:MT_Employee xmlns:ns0="urn:test">
<Statement>
<SP1 action="EXECUTE">
<table>SP1</table>
<IUSERNAME isInput="true" type="VARCHAR">TEST</IUSERNAME>
</SP1>
</Statement>
</ns0:MT_Employee>
Any pointers on how to solve this issue.
Regards
younus
Dear Mohammed
Can you share the response strucutre you are using to get the response from the Database.
What can you see in moni for this response
Have you declared Output parametrs properly
Please check
Sourabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sourabh,
I am using the following message structure in PI to get the response.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Employee_Response xmlns:ns0="urn:test">
<Statement_Response>
<response_1>
<row>
<vpassword/>
</row>
</response_1>
</Statement_Response>
</ns0:MT_Employee_Response>
And in moni , i could see an empty message .
<?xml version="1.0" encoding="utf-8" ?>
- <ns0:MT_ForecastDB_response xmlns:ns0="test">
<Statement_response />
</ns0:MT_ForecastDB_response>
Can you please tell me where do we need to declare the output parameters.
Have you checked JDBC receiver channel log message in communication channel monitoring? meanwhile check with data base team about Stored procedure functionality is behaving Sync manner or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.