bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
122 stars 42 forks source link

On posting data with no data #59

Closed sandy5791 closed 4 months ago

sandy5791 commented 6 months ago

hi , I am send the request from SLbatchrequest with ProductionOrders(123)/Cancel this is Post Method But with no content i.e data = null and i am always getting bad format as a response

bgmulinari commented 6 months ago

Hi, @sandy5791. I've seen this before and for some reason, requests within a batch require a body, even if an empty one.

Try sending "{}" as the request body and it should work.

sandy5791 commented 4 months ago

thank you it worked.