Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Manage multi-table insert using OData Service

$
0
0

Thomas,

 

Thanks.  I did not have that enabled.  I enabled it, however I am still not able to hit my service.  I am getting the following error:

 

"Error processing request stream. The request should be a valid top-level resource object."

 

Here is my request payload:

 

  1. --batch
  2. Content-Type:multipart/mixed;boundary=changeset
  3. Content-Transfer-Encoding:binary

  4. --changeset
  5. Content-Type:application/http
  6. Content-Transfer-Encoding:binary
  7. Content-ID: 1

  8. POST Resources HTTP/1.1
  9. Content-Type: application/json
  10. Content-Length:20

  11. {"ID":"0","NAME":""}
  12. --changeset
  13. Content-Type:application/http
  14. Content-Transfer-Encoding:binary
  15. Content-ID: 2

  16. POST ResourceComplianceRequirements HTTP/1.1
  17. Content-Type:application/json
  18. Content-Length:2

  19. []
  20. --changeset
  21. Content-Type:application/http
  22. Content-Transfer-Encoding:binary

  23. PUT $1/$links/ResourceComplianceRequirements HTTP/1.1
  24. Content-Type:application/json
  25. Content-Length:12

  26. {"uri":"$2"}
  27. --changeset--

  28. --batch--

  29. I know that this is a little different than the example from above.  Do you see anything that would cause the error above? I am expecting it to call my xsjslib exit method and give an error for empty name field.

  30. Thanks & Regards,
  31. Neal

Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>