bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On posting data with no data

sandy5791 opened this issue · comments

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

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.

thank you it worked.