PowerShell CRUD with WCF Data Services (OData)?

2019-08-11 02:40发布

问题:

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.