Posted by: robrobertson | December 16, 2011

HTTP method MERGE not supported

Have an oData service that doesn’t support HTTP Merge for updates?

In the SaveChanges method of the DataServicesContent, add the parameter of SaveChangesOptions.ReplaceOnUpdate.  This will replace all the values of the object until your service supports the friendlier merge option.

service.SaveChanges(SaveChangesOptions.ReplaceOnUpdate);

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.