cancel
Showing results for 
Search instead for 
Did you mean: 

How to send REST API PUT Calls with XML Body

HI All,

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
Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 400
HTTP Response Content: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr>
<address>Apache Server at *******************.net Port 80</address>
</body></html>

36122.png


XML BODY

"""<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<updateInstances xmlns="http://www.********tech.com/prk/rest/v1">
<updateInstance id ="2022-06-01-09.27.47.562450T01">
<fieldValues>
<fieldValue name="SSN">
<value>111111111</value>
</fieldValue>
</fieldValues>
</updateInstance>
</updateInstances>"""
1 REPLY 1

ewilson
Staff
Staff
@Thilak Shivashankar,

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.

Cheers,
​Eric