PowerShell CRUD with WCF Data Services (OData)?

北慕城南 提交于 2019-12-11 07:07:00

问题


I am trying to perform CRUD against WCF Data Services (OData). The Read portion is pretty well documented across the web… it’s the Create, Update and Delete that I am having trouble with.


回答1:


As for the documentation, have you looked at odata.org: http://www.odata.org/developers/protocols/operations#CreatingnewEntries It has a description and samples of all the common CRUD operations against an OData services.

You can also write a sample client application using any OData client (for example the .NET one) and use something like fiddler to see what requests are being made against the service, if you need to see the exact payload shape for your particular service.




回答2:


You can try this REST PowerShell module that Jaykul wrote.



来源:https://stackoverflow.com/questions/5228945/powershell-crud-with-wcf-data-services-odata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!