on 07-30-2015 1:08 PM
Hi All,
I have a requirement where I have create Outbound proxy to pass data to JDBC . I need a response back from the data base after receiving data and sending that back to ECC system using a proxy again . To achieve the follow i have create the objects as bellow :
Data Types
1. DT_EMP_Dump_Sender
2.DT_EMP_DUMP_Res
3.DT_EMP_Dump_Receiver
4.DT_EMP_Dump_Receiver_response
Respective Message types for the following are also created .
Message Mapping :
Request :
Response :
Operational Mapping is done on the basis of the above and ID is configured for the same .
We are aware the the JDBC response can be achived with creating a procedure but we are still not able to receive any response evven after writing the procedure.
Can anyone let us know how will this scenario work .
we are using PI 7.4 single stack system .(java )
thanks.
Hi All,
Could you please help me out to resolve this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the trickiest part of the configuration and where most of us go wrong. The JDBC adapter when sending its response back will create a Message Type of the same name as the request message with a "_response" appended to it.
So, if your Request message type is going to have the name, (example) "MT_JDBC_SELECT_JDBC_REQUEST" then, the message type for the response that is to be created will have to be "MT_JDBC_SELECT_JDBC_REQUEST_response" .
In your case it should be "MT_EMP_Dump_Receiver_response".
Regards,
Nabendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nabendu,
Thanks for your response but as you are suggesting, already i have created the same . but unable to get response
Sender message Type : (For Proxy)
Request : MT_EMP_Dump_Sender
Response : MT_EMP_DUMP_Res
Receiver Message Type: (For JDBC)
Request : MT_EMP_Dump_Receiver
Response : MT_EMP_Dump_Receiver_response
HI Dhyanesh,
Since it is a synchornous scenario, I guess the messages are getting failed with timeout error since there is no response coming back from DB, is this correct?
Check with the DB team, whether the SP is sending back any response for the requests coming in.
If everything is fine as per the above, then can you please share the error logs.
Regards
Hi Dhyanesh,
It seems your Receiver Stored Procedure structure is not matching with what suggested by SAP.
<StatementName5>
<storedProcedureName action=” EXECUTE”>
<table>realStoredProcedureeName</table>
<param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
Data Type:
Message Type:
You can compare with the above Pic and also please go through the below blog:
Regards,
Nabendu.
Hi Vishnu,
what you are saying that is absolutely correct, it is getting time out. I am also having doubt that database is not sending any response. I am pasting my stored procedure code and error message. Please suggest me if any changes required in stored procedure.
I am not aware how to check in database, how to check whether it is sending response or not and there is no database guys here, please suggest me how to check it.
Stored Procedure :
create or replace PROCEDURE EMP_MASTER_DUMP
(
EMPLOYEE_CODE IN EMPLOYEE_MASTER_TEST.EMPLOYEE_CODE%type
, BEGIN_DATE IN EMPLOYEE_MASTER_TEST.BEGIN_DATE%type
, EMPLOYEE_NAME IN EMPLOYEE_MASTER_TEST.EMPLOYEE_NAME%type
, EMPLOYEE_BAND IN EMPLOYEE_MASTER_TEST.EMPLOYEE_BAND%type
, RETURN_X out VARCHAR2
) AS
BEGIN
Insert into EMPLOYEE_MASTER_TEST ("EMPLOYEE_CODE","BEGIN_DATE", "EMPLOYEE_NAME", "EMPLOYEE_BAND")
values (EMPLOYEE_CODE,BEGIN_DATE,EMPLOYEE_NAME,EMPLOYEE_BAND);
RETURN_X := 'Y';
END EMP_MASTER_DUMP;
Error :
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Call Integration Server
-->
</SAP:Error>
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.