/AWS1/IF_EMS=>GETSESSIONENDPOINT()¶
About GetSessionEndpoint¶
Returns the session endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a client to the session. Call this operation again when the authentication token expires to obtain a new token.
Method Signature¶
METHODS /AWS1/IF_EMS~GETSESSIONENDPOINT
IMPORTING
!IV_APPLICATIONID TYPE /AWS1/EMSAPPLICATIONID OPTIONAL
!IV_SESSIONID TYPE /AWS1/EMSSESSIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_emsgetsessionendptrsp
RAISING
/AWS1/CX_EMSINTERNALSERVEREX
/AWS1/CX_EMSRESOURCENOTFOUNDEX
/AWS1/CX_EMSVALIDATIONEX
/AWS1/CX_EMSCLIENTEXC
/AWS1/CX_EMSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_applicationid TYPE /AWS1/EMSAPPLICATIONID /AWS1/EMSAPPLICATIONID¶
The ID of the application that the session belongs to.
iv_sessionid TYPE /AWS1/EMSSESSIONID /AWS1/EMSSESSIONID¶
The ID of the session.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_emsgetsessionendptrsp /AWS1/CL_EMSGETSESSIONENDPTRSP¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getsessionendpoint(
iv_applicationid = |string|
iv_sessionid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_applicationid = lo_result->get_applicationid( ).
lv_sessionid = lo_result->get_sessionid( ).
lv_endpointurl = lo_result->get_endpoint( ).
lv_sessionauthtoken = lo_result->get_authtoken( ).
lv_date = lo_result->get_authtokenexpiresat( ).
ENDIF.