24-01-24 08:53 AM
Hi
I am using BP 7.1 and Utility HTTP ver 10.
Using POST method to send data in Json format.
when HTTP - 400 error occurs , I am not getting complete error message, I get just as below
"The remote server returned an error: (400) Bad Request"
But when i post the same Json in Postman I get the detail message
How to get detail message through Utility - HTTP VBO? any idea please
Thanks
Krishna
24-01-24 01:37 PM
Hi Krishna,
This solution helped in my case.
Raghav
25-01-24 08:55 AM
Thanks Raghavulu
I tried this option but I am getting the message in non-readable format as shown in below screen. Please note that if I send the same data in POSTMAN I get message in readable format .
Thanks
Krishna
RPA – Solution Architect
OEA - Operations
SKF
DXC Technology
T +91 99000 63042
Krishna-mohan.elapavuluri@dxc.com
DXC.com | Twitter* | Facebook* | LinkedIn* | Campaign Promotion*
Planned Leave:
Company Holidays:26th Jan 2024
25-01-24 09:17 AM
Hi Krishna,
Did you comment out the existing code resultData = e.Message: before placing the new code snippet?
After that check for http status 400 and use JSON to collection object for getting the error message (incase if your HTTP post request returns JSON)
Raghav
25-01-24 10:28 AM
Yes Commented Ragava
I get xml format data as response from downstream application.
Thanks
Krishna
RPA – Solution Architect
OEA - Operations
SKF
DXC Technology
T +91 99000 63042
Krishna-mohan.elapavuluri@dxc.com
DXC.com | Twitter* | Facebook* | LinkedIn* | Campaign Promotion*
Planned Leave:
Company Holidays:26th Jan 2024
25-01-24 11:21 AM
Is your HTTP POST request returns XML data as response stream?
25-01-24 11:36 AM
Yes Raghava
I POST in json format to SAP , SAP will send respond in xml . same will be used to enrich to fetch require data .
In POST man I get response data in readable format , but when I post through BP action I am getting this junk characters
Thanks
Krishna
RPA – Solution Architect
OEA - Operations
SKF
DXC Technology
T +91 99000 63042
Krishna-mohan.elapavuluri@dxc.com
DXC.com | Twitter* | Facebook* | LinkedIn* | Campaign Promotion*
Planned Leave:
Company Holidays:26th Jan 2024
25-01-24 04:09 PM