1 Reply Latest reply on Jun 12, 2014 7:25 AM by Steven Hawkins

    202 Accepted response for odata batch requests (while sending multiple POST xml requests)

    K Prashanthi Newbie

      Hi,

      I am trying to send multiple xml inputs through odata batch in POSTMAN rest client. But i am getting 202 Accepted response and i do not see the data being reflected in the backend.

       

      URL- http://<host>:<port>/odata/<vdb>/<view>/$batch

       

      Headers:

      Content-Type:multipart/mixed

      boundary: batch

       

      Request Body:

       

      --batch

      POST /$batch HTTP/1.1

      Content-Type: multipart/mixed; boundary=changeset

       

      --changeset

      Content-Type: application/xml

      Content-Transfer-Encoding: binary

       

      POST

      Content-Type:application/xml

      Content-Length:1024

       

      XML INPUT-1

       

       

      --changeset

      Content-Type:application/xml

      Content-Transfer-Encoding: binary

       

      POST

       

      Content-Type:application/xml

      Content-Length:1024

      XMl Input-2

       

       

      -changeset-

      -batch-

       

      Please suggest.

      Thanks