AutoSys Workload Automation

Expand all | Collapse all

XML to JSON AEWS

Jump to Best Answer
  • 1.  XML to JSON AEWS

    Posted 12-30-2016 12:22 PM

    Does anyone know what needs to be changed to get the AutoSys webservices to return the response as a JSON object as opposed to xml? I know I was able to do this before, but cant remember what I did. I opened a case with CA, but trying my luck (at the end of the year) to see if I get a faster response here .

     

    Happy New Year in advance



  • 2.  Re: XML to JSON AEWS
    Best Answer

    Broadcom Employee
    Posted 01-04-2017 04:03 AM

    Happy New Year

     

    Details at https://docops.ca.com/ca-wla-ae-wcc/11-4-2/en/reference/ae-web-services/managing-jobs 

     

    For example:

    GET AEWS/job/jobname method-- Retrieve Information of a Specific Job

    The GET AEWS/job/jobname method returns information for a specific job.

    HTTP Method

    GET

    URL Resource

    https://webserver:port/AEWS/job/jobname?parameters

    • webserver

      Specifies the name of the web server host computer.
    • port

      Specifies the port number for the web server host computer.

    Parameters

    • jobname

      Specifies the name of the job to retrieve.

      The name is required.

    • version=n

      (Optional) Specifies the version for the request or response.

      Default: current server version

    • locale=locale_code

      (Optional) Specifies the user locale. If the value entered is unsupported, en-US is used.

      Default: en-US

    Response Formatsxml -- Specifies to return the data in XML format.

    json – Specifies to return the data in JSON format.

     

    For example, you can try these syntaxes:

    https://<AEWS_Server>:9443/AEWS/job-run-info.json 

    https://<AEWS_Server>:9443/AEWS/job-run-info.xml 

    https://<AEWS_Server>:9443/AEWS/job.json?filter=name==testjob1 

    https://<AEWS_Server>:9443/AEWS/job.json?filter=name==testjob1

     

    Does it answer your question?

     

    Have a nice day

     

    Jean Paul



  • 3.  Re: XML to JSON AEWS

    Broadcom Employee
    Posted 01-09-2017 08:47 AM

    Hello Deekshit

     

     

    Just checking if this question can be marked as Answered

     

    Regards

    Jean Paul



  • 4.  Re: XML to JSON AEWS

    Posted 01-09-2017 11:18 AM

    Hello! – yes the question can be marked as answered. Thank you!