Hi all,
I have created an ABAP proxy for a HTTP-XI-RFC scenario
(synchronous). The proxy is for outbound interface. The case is that 2 no.s are passed from proxy to XI which calls RFC, which in turn returns the sum of 2 no.s
The problem is that When I run the proxy report, no output is returned by RFC and '0' is displayed as answer.
In SXMB_MONI, both - the request and response - messages are shown as successfully processed.
Here is the report, for your reference:
*----
REPORT ZSSB_REPPROXYTEST.
DATA prxy TYPE REF TO ZPWACO_OBIF_CALC.
CREATE OBJECT prxy.
DATA it TYPE ZPWAMT_CALC_SEND.
DATA res TYPE ZPWAMT_CALC_REC.
TRY.
it-MT_CALC_SEND-NUM1 = 2.
it-MT_CALC_SEND-NUM2 = 7.
CALL METHOD prxy->EXECUTE_SYNCHRONOUS
EXPORTING
output = it
importing
input = res.
commit work.
CATCH cx_ai_system_fault .
DATA fault TYPE REF TO cx_ai_system_fault .
CREATE OBJECT fault.
WRITE :/ fault->errortext.
ENDTRY.
write:/ 'Num1 = ', it-MT_CALC_SEND-NUM1, / 'Num2 = ', it-MT_CALC_SEND-NUM2.
write:/ 'Sum = ', res-MT_CALC_REC-SUM.
*----
Is the 'CALL METHOD' part of above code correct ?
Regards,