WCF数据服务FTP [英] WCF Data services FTP

查看:146
本文介绍了WCF数据服务FTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过FTP公开一个WCF数据服务的服务操作



我想知道如何最好地处理这个



我正在考虑编写一个批处理文件,它将调用WCF数据服务,将服务返回的数据写入FTP位置,并将客户端访问权限授予该特定FTP位置。

你认为这是一个比较好的主意吗?

解决方案

你不能这样做。 WCF数据服务始终是一个基于REST的HTTP服务 - 它非常具有交互性 - 您无法在FTP服务器上实现此功能。



如果您想公开并提供在FTP服务器上的数据,我会用你的服务器端代码来生成这个数据集(例如查询数据源),然后把它包装在一个Excel工作表或任何合适的格式中,然后把这个文件传输到FTP服务器上在服务器端。

I want to expose a service operation of a WCF Data service over FTP

I was wondering how to best approach this

I was thinking of writing a batch file, which will invoke the WCF dataservice, write the data returned by the service to a FTP location and grant access to the Client to that particular FTP location

Do you think this is a better idea?

解决方案

You cannot do this. A WCF Data Service is always a REST-based HTTP service - and it's very interactive - you cannot achieve this on an FTP server.

If you want to expose and make available data on an FTP server, I would use your server-side code to produce that data set (by e.g. querying the data source), then wrap this up in an Excel sheet or whatever format is appropriate, and transfer that file onto the FTP server on the server-side.

这篇关于WCF数据服务FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆