REST wsop - JSON body format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • avc848895979962
    Member
    • Jul 2024
    • 3

    REST wsop - JSON body format

    Is there support within Orchestration Designer (8.1.2.1201) for a REST wsop, using PUT, to send json in the Message Body field? It appears that the Message Body section is expecting XML as the default. Is there a way to provide a json message instead in the body?
  • wilsonyu
    Hot Shot
    .
    • Sep 2011
    • 24

    #2
    Hi, you just need to start the json string with the word "JSON".
    For example: JSON{"x": 1}

    Comment

    • avc925005414230
      • Jun 2025
      • 1

      #3
      Set the Content-Type Header: This is the most crucial step. You need to explicitly tell the receiving REST API that you are sending JSON data. In your REST wsop configuration within Orchestration Designer, you'll need to add a header:
      • Header Name: Content-Type
      • Header Value: application/json

      This header informs the server that the body of your request is in JSON format, not XML or something else.
      block blast

      Comment

      Loading