IT Process Automation

  • 1.  Catalyst RESTful services support Json content body

    Posted Feb 08, 2017 10:30 AM

    Hi like to check if Catalyst RESTful services support Json content body. I only found material that it supports XML. 



  • 2.  Re: Catalyst RESTful services support Json content body

    Broadcom Employee
    Posted Feb 08, 2017 10:39 AM

    Yes, JSON is supported. 

    https://docops.ca.com/ca-process-automation/4-3-1/en/reference/web-services/restful-api-reference

    The implementation of RESTful services adheres to the following design principles:

    • Use HTTP methods explicitly
    • Be stateless
    • Access resources such as URIs
    • Support XML and JSON (JavaScript Object Notation)


  • 3.  Re: Catalyst RESTful services support Json content body

    Posted Feb 09, 2017 01:40 AM

    Hi Micheal, I found the info but there are no document on how to construct request body in Json format.



  • 4.  Re: Catalyst RESTful services support Json content body

    Broadcom Employee
    Posted Feb 09, 2017 08:19 AM

    Sorry Yong, our documentation currently does not have any JSON specific details for the REST Api but we are working to improve that in future releases.

    In the meantime there are several discussions on JSON here in the community and an example process here:

    https://communities.ca.com/docs/DOC-231158288



  • 5.  Re: Catalyst RESTful services support Json content body
    Best Answer

    Posted Feb 10, 2017 05:00 AM

    hi Micheal,,

    thanks i managed to find something from the other discussion threads. tested the following its working. 

    {
    "StartRequest": {
    "@xsi:type": "p1:StartRequest",
    "@xmlns:p1": "http://ns.ca.com/2011/09/pam-ops",
    "@xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
    "EntityID": { "MdrElementID": "/TEST/Test Env Wifi MAC Address Reg/ACS" },
    "Arguments": {
    "Argument": {
    "Name": "MACAddress",
    "Value": "abc"
    }
    }
    }
    }