I am using contentType: x-www-form-urlencoded (with a custom contentSerializer to encode the fields.) This works fine for create's and update's. But for remove's the grid is always sending Content-Type: text/plain.
: text/plain
(Granted, no fields need encoding for HTTP DELETE, but this service expects the same content-type as for POST and PUT.)
Here are my restSettings:
restSettings: { contentType: "application/x-www-form-urlencoded; charset=UTF-8", contentSerializer: iggridUrlEncode, create: { url: env_constants.DATASERVICES_URL + "/ar_invoices/" }, update: { url: env_constants.DATASERVICES_URL + "/ar_invoices/" }, remove: { url: env_constants.DATASERVICES_URL + "/ar_invoices/" } }
Is this a bug, or am I misunderstanding something?
Thanks,
Matt
The fix for Development Issue 203558 is available in the latest service release which can be downloaded from the My Keys and Downloads page.
Thank you! I'll keep an eye on it.
Hi Matthew,
We encourage users to have one thread/case per issue and since you already opened this one for the DELETE content type, we can keep the discussion here.
The solution you proposed in the other thread with per-verb overwrites on the default contentType looks reasonable and I created a work item in our internal tracking system with a Development ID of 203558 to address the issue. I added your suggestion in the work item but the final solution could be different so once the item is closed you should still check the release notes that will tell you how to proceed.
A support case is created on your behalf with number CAS-159061-F6C8V2 . You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related internal items.
Let me know if I may be of further assistance.
Best regards,
Stamen Stoychev
FYI: discussion of this issue is ongoing in another thread: http://ko.infragistics.com/community/forums/p/97610/482135.aspx#482135