如颖随行|SAP 发布webservice和调用webservice( 三 )


EXPORTING
logical_port_name = 'ZLP01'.
CATCH cx_ai_system_fault INTO lo_sys_exception.
IF lo_sys_exception->errortext IS NOT INITIAL.
output-msgty = 'E'.
output-msgtx = lo_sys_exception->errortext.
APPEND output.CLEAR:output.
EXIT.
ENDIF.
CATCH cx_ai_application_fault INTO cx_ai_application_fault.
ENDTRY.
ENDIF.
invoke_flow_request-in0 = lv_json.
TRY.
CALL METHOD l_prox_e->invoke_flow
EXPORTING
invoke_flow_request = invoke_flow_request
IMPORTING
invoke_flow_response = invoke_flow_response.
CATCH cx_ai_system_fault INTO lo_sys_exception.
IF lo_sys_exception->errortext IS NOT INITIAL.
output-msgty = 'E'.
output-msgtx = lo_sys_exception->errortext.
APPEND output.CLEAR:output.
EXIT.
ENDIF.
CATCH cx_ai_application_fault INTO cx_ai_application_fault.
ENDTRY.
【如颖随行|SAP 发布webservice和调用webservice】.