<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to send REST API PUT Calls with XML Body in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-send-REST-API-PUT-Calls-with-XML-Body/m-p/99298#M3150</link>
    <description>HI All,&lt;BR /&gt;&lt;BR /&gt;I have Configured a API Endpoint in Blueprism. Get calls and PUT calls without body are working fine. When I have to send a PUT Call with XML Body I am getting http 400 Bad request error. Can someone please let me know how to send a XML Body with a PUT call. This PUT call is tested in POSTMAN, I am using the same ACCEPT and Content-Type used in POSTMAN. I am passing the below XML in the request. Please help&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Internal : Unexpected error Error during Web API HTTP Request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTTP Status Code: 400&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTTP Response Content: &amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;h1&amp;gt;Bad Request&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;p&amp;gt;Your browser sent a request that this server could not understand.&amp;lt;br /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/p&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;hr&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;address&amp;gt;Apache Server at *******************.net Port 80&amp;lt;/address&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36122.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36132i2F1AFA1773CB2C27/image-size/large?v=v2&amp;amp;px=999" role="button" title="36122.png" alt="36122.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;XML BODY&lt;BR /&gt;&lt;BR /&gt;"""&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;BR /&gt;&amp;lt;updateInstances xmlns="http://www.********tech.com/prk/rest/v1"&amp;gt;&lt;BR /&gt;&amp;lt;updateInstance id ="2022-06-01-09.27.47.562450T01"&amp;gt;&lt;BR /&gt;&amp;lt;fieldValues&amp;gt;&lt;BR /&gt;&amp;lt;fieldValue name="SSN"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;111111111&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/fieldValue&amp;gt;&lt;BR /&gt;&amp;lt;/fieldValues&amp;gt;&lt;BR /&gt;&amp;lt;/updateInstance&amp;gt; &lt;BR /&gt;&amp;lt;/updateInstances&amp;gt;"""&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Jul 2022 19:36:09 GMT</pubDate>
    <dc:creator>ts822021</dc:creator>
    <dc:date>2022-07-27T19:36:09Z</dc:date>
    <item>
      <title>How to send REST API PUT Calls with XML Body</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-send-REST-API-PUT-Calls-with-XML-Body/m-p/99298#M3150</link>
      <description>HI All,&lt;BR /&gt;&lt;BR /&gt;I have Configured a API Endpoint in Blueprism. Get calls and PUT calls without body are working fine. When I have to send a PUT Call with XML Body I am getting http 400 Bad request error. Can someone please let me know how to send a XML Body with a PUT call. This PUT call is tested in POSTMAN, I am using the same ACCEPT and Content-Type used in POSTMAN. I am passing the below XML in the request. Please help&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Internal : Unexpected error Error during Web API HTTP Request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTTP Status Code: 400&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;HTTP Response Content: &amp;lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;title&amp;gt;400 Bad Request&amp;lt;/title&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;h1&amp;gt;Bad Request&amp;lt;/h1&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;p&amp;gt;Your browser sent a request that this server could not understand.&amp;lt;br /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/p&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;hr&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;address&amp;gt;Apache Server at *******************.net Port 80&amp;lt;/address&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36122.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36132i2F1AFA1773CB2C27/image-size/large?v=v2&amp;amp;px=999" role="button" title="36122.png" alt="36122.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;XML BODY&lt;BR /&gt;&lt;BR /&gt;"""&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;&lt;BR /&gt;&amp;lt;updateInstances xmlns="http://www.********tech.com/prk/rest/v1"&amp;gt;&lt;BR /&gt;&amp;lt;updateInstance id ="2022-06-01-09.27.47.562450T01"&amp;gt;&lt;BR /&gt;&amp;lt;fieldValues&amp;gt;&lt;BR /&gt;&amp;lt;fieldValue name="SSN"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;111111111&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/fieldValue&amp;gt;&lt;BR /&gt;&amp;lt;/fieldValues&amp;gt;&lt;BR /&gt;&amp;lt;/updateInstance&amp;gt; &lt;BR /&gt;&amp;lt;/updateInstances&amp;gt;"""&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jul 2022 19:36:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-send-REST-API-PUT-Calls-with-XML-Body/m-p/99298#M3150</guid>
      <dc:creator>ts822021</dc:creator>
      <dc:date>2022-07-27T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to send REST API PUT Calls with XML Body</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/How-to-send-REST-API-PUT-Calls-with-XML-Body/m-p/99299#M3151</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="fc4ffdc5-b6ef-47b6-9d51-36dc1ffc85ea" data-tag-text="@Thilak Shivashankar" href="https://community.blueprism.com/network/profile?UserKey=fc4ffdc5-b6ef-47b6-9d51-36dc1ffc85ea" data-itemmentionkey="43294b63-2fe6-47f0-b494-dbb2126e3180"&gt;@Thilak Shivashankar&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I recommend downloading a copy of Fiddler and using it to capture the actual HTTP request so you can see what’s actually being placed on the wire. You could even capture the working request from Postman and compare the two.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​Eric</description>
      <pubDate>Thu, 28 Jul 2022 02:25:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/How-to-send-REST-API-PUT-Calls-with-XML-Body/m-p/99299#M3151</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-07-28T02:25:41Z</dc:date>
    </item>
  </channel>
</rss>

