astoria

Uploading and downloading files using wcf data services?

流过昼夜 提交于 2020-01-03 05:59:10
问题 I have been trying to find information regarding if it is possible to upload and download files using WCF Data Services (formerly ADO.NET Data Services), but haven't been able to make any leads due to perhaps less help content available on wcf data services on the web as of now. Is it possible for us to write a wcf data service so that client can post to the following URI to upload a file - http://some-restfulwebservice/Files/upload and this url to download the fie - http://some

ADO.NET Data Services - Uploading files

二次信任 提交于 2019-12-24 04:53:33
问题 I am trying to write REST web service through which our clients can upload a file on our file server. IS there an example or any useful links which I can refer for any guidance? I haven't seen many examples of POST operation using ADO.NET data services available. 回答1: I've uploaded a file to ADO.NET dataservices using POST although I'm not sure whether it's the recommended approach. The way I went about it is: On the dataservice I've implemented a service operation called UploadFile (using

How do I interact with OData from Java?

我怕爱的太早我们不能终老 提交于 2019-12-17 18:16:48
问题 OData is Microsoft's repackaging of its Astoria (now WCF Data Services) RESTful query/update protocol. If I want to use Java to create an OData compatible data source, how do I do that? Similarly, if I want to consume an OData data source from Java, how do I do that? http://www.odata.org/ Partial answer below. The OData website suggests that Restlet supports OData. Restlet's API documentation mentions the org.restlet.ext.odata package. www.restlet.org/ www.restlet.org/documentation/snapshot

Proper way to call nested Expand() from .NET OData 4 Client

北战南征 提交于 2019-12-09 10:26:57
问题 Problem In an OData 4 service on Web API, what is the proper way to call nested $expand from a .NET client? We are using the OData Client Generator. Back in the prior WCF Data Services with OData 3 service we could call .Expand("Customers/Orders") . In Web API with OData 4 we can no longer do so and receive the following should you attempt .Expand("Customers/Orders") : The query specified in the URI is not valid. Found a path traversing multiple navigation >properties. Please rephrase the

How to Improve WCF Data Services Performance

会有一股神秘感。 提交于 2019-12-03 18:34:40
问题 I'm new to WCF Data Services so I've been playing. After some initial tests I am disappointed by the performance of my test data service. I realize that because a WCF DS is HTTP-based there is overhead inherent in the protocol but my tests are still way slower than I would expect: Environment: All on one box: Quad core 64-bit laptop with 4GB RAM running W7. Decent machine. Small SQL database (SQLExpress 2008 R2) with 16 tables... the table under test has 243 rows. Hosted my test service in

How to Improve WCF Data Services Performance

只愿长相守 提交于 2019-11-29 23:31:53
I'm new to WCF Data Services so I've been playing. After some initial tests I am disappointed by the performance of my test data service. I realize that because a WCF DS is HTTP-based there is overhead inherent in the protocol but my tests are still way slower than I would expect: Environment: All on one box: Quad core 64-bit laptop with 4GB RAM running W7. Decent machine. Small SQL database (SQLExpress 2008 R2) with 16 tables... the table under test has 243 rows. Hosted my test service in IIS with all defaults. Code: I've created a Entity Framework model (DataContext) for this database (stock

How do I interact with OData from Java?

旧巷老猫 提交于 2019-11-28 06:51:27
OData is Microsoft's repackaging of its Astoria (now WCF Data Services) RESTful query/update protocol. If I want to use Java to create an OData compatible data source, how do I do that? Similarly, if I want to consume an OData data source from Java, how do I do that? http://www.odata.org/ Partial answer below. The OData website suggests that Restlet supports OData. Restlet's API documentation mentions the org.restlet.ext.odata package. www.restlet.org/ www.restlet.org/documentation/snapshot/jee/ext/org/restlet/ext/odata/package-summary.html Is this the only answer? Are there blog posts on