Adapter Online Help > TDV Web-Based Data Sources > REST Data Sources > Passing a Full XML Document in a POST Request to a REST Service
 
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
1. Define your REST data source.
2. On the Basic tab, scroll down to the Operations section.
3. Define the details for your operation, including the HTTP Verb, Operation Name, and Operation URL.
4. 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.
5. 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.
6. Make sure that the XML <-> JSON check boxes are clear for all the parameters.
7. Save your data source.
8. Invoke the service and provide a full request document as the input parameter.