2024 Nov 23 12:43 PM - edited 2024 Nov 25 12:14 AM
Hi There,
I would like to perform an http call in json format to call an API that is exposed.
And it work fine in Postman.
See screenshot:
And I refer to this post create a B1if scenario
B1if: How to call PUT Http in json format
The step is, see attachment (step.xml).
And I got the below error:
<Payload Role="C" id="atom1" statusNo="HTTP400" statusMsg="Bad Request" reference="atom3" sysid="" payload="atom3" throwException="false">
<http.header/>
<httaError xmlns="urn:com.sap.b1i.xcellerator:upltdoc" HTTPcode="400" HTTPmsg="Bad Request">
<exceptionMsg>com.sap.b1i.xcellerator.XcelleratorException: XCE212 Error while performing HTTP call; HTTP status is 400, Bad Request</exceptionMsg>
<returnData><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Header</h2> <hr><p>HTTP Error 400. The request has an invalid header name.</p> </BODY></HTML> </returnData>
</httaError>
</Payload>
Any suggestion?
BR
Robin
Request clarification before answering.
| User | Count |
|---|---|
| 30 | |
| 16 | |
| 14 | |
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.