Rest Response Output Changed from V12.3 to V21
search cancel

Rest Response Output Changed from V12.3 to V21

book

Article ID: 259842

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The Rest Response output is differently formatted in the Job Report in version 21 vs 12.3:

 

Example:

V21 Response

Connect timeout set to 30 seconds

Read timeout set to:60

Using connection: Created from prompts

Authentication type:Basic

Request:POST HTTP://AUTOMIC.COM:6188/COMMAND

Request headers:[]

Request:

Media type:application/json

Request content:

 {"info":

{"status":"req","cont":"eom","type":"command"}

,"data":{"request":"LAP AYSTEST- INCOMPLETE"}}

Sending request...

Response:

Status:200 OK

Response headers:[Server:[CATechnologies/ESPWSS/1.0], Content-Type:[Application/json], Transfer-Encoding:[chunked]]

Response - application/json

2022-11-12 19:18:49             Start response pattern

{}2022-11-12 19:18:49             {"info":{*}

*

{"status":"succ","type":"command"}

*

,"data":{"list":["APPL AYSTEST1 GEN 424","  CREATED AT 19.13 ON SATURDAY NOVEMBER 12TH, 2022"," ","APPL AYSTEST1 GEN 423","  CREATED AT 19.13 ON SATURDAY NOVEMBER 12TH, 2022"," ","APPL AYSTEST1 GEN 422","  CREATED AT 19.13 ON SATURDAY NOVEMBER 12TH, 2022"," ","APPL AYSTEST1 GEN 421","  CREATED AT 19.13 ON SATURDAY NOVEMBER 12TH, 2022"," ","APPL AYSTEST2 GEN 22","  CREATED AT 09.21 ON FRIDAY OCTOBER 28TH, 2022"," ","----- 5 ENTRIES DISPLAYED"]}}*

End response pattern

RESTful job complete

 

V12.3 Response:

Connect timeout set to 30 seconds

Read timeout set to:60

 Using connection: Created from prompts

Authentication type:Basic

Request:POST HTTP://AUTOMIC.COM:6188/COMMAND

Request headers:[]

Request:

Media type:application/json

Request content:

{"info":

{"status":"req","cont":"eom","type":"command"}

,"data":{"request":"LAP PFS#PFS- INCOMPLETE"}}

Sending request...

Response:

Status:200 OK

Response headers:[Server:[CATechnologies/ESPWSS/1.0], Content-Type:[Application/json], Transfer-Encoding:[chunked]]

Response - application/json

Start response pattern

{

"info": {

"status": "succ",

"type": "command"

},

"data": {

"list": [

"APPL PFS#PFS  GEN 2213",

"  CREATED AT 01.13 ON WEDNESDAY AUGUST 24TH, 2022",

 " ",

"APPL PFS#PFS  GEN 2212",

"  CREATED AT 01.13 ON TUESDAY AUGUST 23RD, 2022",

" ",

"APPL PFS#PFS  GEN 2211",

 "  CREATED AT 01.13 ON MONDAY AUGUST 22ND, 2022",

" ",

"APPL PFS#PFS  GEN 2209",

"  CREATED AT 01.13 ON SATURDAY AUGUST 20TH, 2022",

" ",

"APPL PFS#PFS  GEN 2208",

"  CREATED AT 01.13 ON FRIDAY AUGUST 19TH, 2022",

" ",

"APPL PFS#PFS  GEN 2207",

"  CREATED AT 01.13 ON THURSDAY AUGUST 18TH, 2022",

" ",

"APPL PFS#PFS  GEN 2206",

"  CREATED AT 01.13 ON WEDNESDAY AUGUST 17TH, 2022",

" ",

"APPL PFS#PFS  GEN 2205",

"  CREATED AT 01.13 ON TUESDAY AUGUST 16TH, 2022",

" ",

"APPL PFS#PFS  GEN 2204",

"  CREATED AT 01.13 ON MONDAY AUGUST 15TH, 2022",

" ",

"APPL PFS#PFS  GEN 2202",

"  CREATED AT 01.13 ON SATURDAY AUGUST 13TH, 2022",

" ",

 "APPL PFS#PFS  GEN 2201",

"  CREATED AT 01.13 ON FRIDAY AUGUST 12TH, 2022",

" ",

"APPL PFS#PFS  GEN 2200",

"  CREATED AT 01.13 ON THURSDAY AUGUST 11TH, 2022",

" ",

 "APPL PFS#PFS  GEN 2156",

"  CREATED AT 01.13 ON TUESDAY JUNE 28TH, 2022",

" ",

"----- 13 ENTRIES DISPLAYED"

                     ]

                 }

             }

            End response pattern

          RESTful job complete

Environment

Product: Automic Workload Automation-Automation Engine

Release : 21.0.4

RA WS Rest solution 4.6.5+build.1665661524065

Cause

Defect

Resolution

Please upgrade to one of the following versions of RA WS Rest or higher:


RA.Web.Service.REST 4.6.7 - released

RA.Web.Service.REST 4.6.8