cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B1IF: Call POST http in json format with error

Robin-Feng
Participant
0 Kudos
349

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:
postman.jpg

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

Accepted Solutions (0)

Answers (0)