1 Reply Latest reply on Apr 20, 2020 12:55 AM by Andre Kirsten

    How to get token using Rest Web Service Consumer in Developer

    Falilou WAIDI Active Member

      Hi,

      Using a Rest Web Service Consumer to generate a token access generates the folloiwng errors:

      "

      <TASK_140397682603776-TRANSF_1_1_1> INFO: [REST_33053] [INFO] HTTP Request Method: POST

      <TASK_140397682603776-TRANSF_1_1_1> FINER: [REST_33038] [TRACE] HTTP Request Final URL: https://myserver.com/api/oauth/token

      <TASK_140397682603776-TRANSF_1_1_1> INFO: [REST_33017] [INFO] HTTP Request Body: <?xml version="1.0" encoding="UTF-8"?>

      <xmlRoot>

      <xmlRoot></xmlRoot>

      </xmlRoot>

       

      <TASK_140397682603776-TRANSF_1_1_1> SEVERE: [REST_33016] [ERROR] REST Invoker encountered an error while invoking the REST. Reason: SSL certificate problem: unable to get local issuer certificate

      <TASK_140397682603776-TRANSF_1_1_1> SEVERE: [REST_33016] [ERROR] REST Invoker encountered an error while invoking the REST. Reason:

      <TASK_140397682603776-TRANSF_1_1_1> SEVERE: [DBG_21194] RWC_tok0: ERROR [22050] in processing Eof for input group 0

      <TASK_140397682603776-TRANSF_1_1_1> FINE: [DBG_21190] ERROR: Expression_Group_cast: Got error sending Eof to [RWC_tok0] on input group [0]

      <TASK_140397682603776-TRANSF_1_1_1> FINE: [DBG_21511] TE: Fatal Transformation Error.

      <TASK_140397682603776-TRANSF_1_1_1> INFO: [CMN_1053] Data_Exchange_Target-expr_OutputParameters_OUTPUT0:Root Exchange OUTPUT: Control=[Abort]

       

      Then:

      <APP_140398052480768> INFO: [TM_6020] Session [RWC_tok] completed at [2020].

      <DTM-pool-2-thread-1> SEVERE: [LDTM_0072] TE_7007 Transformation Evaluation Error [<<Expression Error>> [ERROR]: transformation error

      "

       

      The same access to the token works fine through Postmann generating this headers:

       

      Request Headers:

      Content-Type:"application/x-www-form-urlencoded"

      Authorization:"Basic XXXXFFFFF"

      Accept:"*/*"

      Cache-Control:"no-cache"

      Host:"myserver.com"

      Accept-Encoding:"gzip, deflate"

      Connection:"keep-alive"

      Request Body:

      Response Headers:

      Server:"Gateway"

      Connection:"close"

      X-CorrelationID:"jhkk:5 0"

      Accept:"*/*"

      Cache-Control:"no-cache"

      X-Forwarded-For:"111.11.11.11"

      Content-Type:"application/json"

       

       

      Is there any possibility to change the input format of the RWSC to txt (key:value) instead of json or xml ?

       

      Thanks,

      Falilou