tags:

views:

119

answers:

1

Hi

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?

thanks

A: 

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.

marc_s