I have built an oData service using Lightswitch and am trying to use a client consumer to update/delete data. The client does not support if-match headers, but the service is automatically configured that way. So i get the error shown below.
Is this a setting in Lightswitch - can I change the service so that update/delete doesn't require an if-match header?
07-26 14:56:00.169: E/AndroidRuntime(12103): Caused by: java.lang.RuntimeException: Expected status OK or No Content, found Bad Request. Server response:
07-26 14:56:00.169: E/AndroidRuntime(12103): <?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="
http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>
1</code><message
xml:lang="en-AU"><?xml version="1.0" encoding="utf-16"?><ExceptionInfo><Message>Only 'If-Match' headers are supported for Update/Delete operations.</Message><StackTrace>
at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceUpdateProvider.SetConcurrencyValues(Object resourceCookie, Nullable`1 checkForEquality, IEnumerable`1 concurrencyValues)
07-26 14:56:00.169: E/AndroidRuntime(12103): at System.Data.Services.UpdatableWrapper.SetETagValues(Object resourceCookie, ResourceSetWrapper container)
thanks Anton
Anton