function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sashamsasham 

Anyone help on making Rest callout using Xml file

I have to  make callout from salesforce to external sysytem. need to send a file as xml (request body to POSt method) 
And i have object for this and all the fields i am querying from this object called  Clientdetails. not sute how to convert as xml fil for Rest service 
<message>
<data>
<result>
<order_code>8798</order_code>
<result_code>pp</result_code>
<units>pp</units>
<value>3</value>
<reference>2-4</reference>
<date>2017-12-14</date>
<normalcy>N</normalcy>
<facility>OO\^Example Labs MMD\^26901 Rod Hills Road\^Calabasas Hills\^CA\^91301\^Dr. Test, MD</facility>
</result>
<result>
<order_code>8798</order_code>
<result_code>pp</result_code>
<units>pp</units>
<value>3</value>
<reference>2-4</reference>
<date>2017-12-14</date>
<normalcy>N</normalcy>
<facility>99\^Example Service MMD\^26901 Rod Hills Road\^Calabasas Hills\^CA\^91301\^Dr. Test, MD</facility>
</result>

</data>
</message>
 
Michael MMichael M
Hi Sasham, I see this is an old post, but I am working on something similar. How did you end up doing this?