cancel
Showing results for 
Search instead for 
Did you mean: 

$batch post request in xsodata

gertjan_oostrum
Explorer

Hi,
We are trying to step over from a webservice which loops the data into a HANA table via single POST statements into a batch mode POST request.
We try to find out the formatting of the header&body message but we are only able to get a response of 202 in postman and the actual data is not posted in the table on HANA target.

In the header we set the Content-Type:multipart/mixed and the Boundary:batch_1

The simplified body looks like below:
--batch_1
--changeset_mychangeset1
Content-Type: application/http
Content-Transfer-Encoding: binary

POST odataservice_name HTTP/1.1

Content-Type: application/json

{
"KEY1" : "1",
"KEY2" : "2",
"KEY3":"3" ,
"ATTRIBUTE1":"1"
}

--changeset_mychangeset1--
--batch_1--

I have been ready quite some blogs,notes but not able to find the proper solution.

0 Kudos

Hi Gert, did you get this issue resolved?

I am in similar situation and don't see any useful tutorial on this.

Accepted Solutions (0)

Answers (0)