The POST REST data source is most often configured to accept a set of the scalar parameter as inputs. Those inputs are then used to populate a POST request document. Using the REST data source, typically with a POST verb, parameters can be specified that encode into the body of the request. Typically, the parameter name is used to delimit the parameter.
Here are the steps:
- Define your REST data source.
- Select the checkbox next to the JSON Format label.
- In the Basics tab, scroll further down to the Operations section.
- Define the details for your operation, including the HTTP Verb, Operation Name, and Operation URL.
- In the Header/Body Parameters table, add a Param Name named [rawdata] with a Data Type of varchar. This is a Body parameter of direction IN.
- In the Header/Body Parameters table, add a Param Name named Content-Type with a Data Type of varchar. This is a Body parameter of direction IN.
- In the Header/Body Parameters table, add a Param Name named response with a Data Type of the desired type. This is a Body parameter of direction OUT.
When you run operation, set
"Content-Type" to
"application/json" which is Official MIME type for json
[rawdata] is used to hold the
JSON input payload.