Passing a Full XML Document in a POST Request to a REST Service
If your REST data source is configured to accept a set of scalar parameters and inputs, being able to pass the whole XML document to the service might be required. When passing an XML document in a POST request to a REST service, if the parameter name is “[rawdata]” then the submitted data is not wrapped but submitted as-is (and not wrapped as a value for an XML element.
To interface CDVP with a REST Service
Define your REST data source.
|
1.
|
On the Basic tab, scroll down to the Operations section. |
|
2.
|
Define the details for your operation, including the HTTP Verb, Operation Name, and Operation URL. |
|
3.
|
In the Header/Body Parameters table, add an OUT Param Name named response with a Data Type of XML. This is a Body parameter with the direction of OUT. |
|
4.
|
In the Header/Body Parameters table, add an IN Param Name named [rawdata] with a Data Type of XML.This is a Body parameter with the direction of IN. |
|
5.
|
Make sure that the XML <-> JSON check boxes are clear for all the parameters. |
|
6.
|
Save your data source. |
|
7.
|
Invoke the service and provide a full request document as the input parameter. |