开发者

transefer file from server to server using web services

开发者 https://www.devze.com 2022-12-10 06:22 出处:网络
i have to make one .net framework 2.0 web services which took some parameters like source server name destination server name file name then this services will move the file from source to destination

i have to make one .net framework 2.0 web services which took some parameters like source server name destination server name file name then this services will move the file from source to destination. one solution i found is using asp.net i make two pages one for file download and one for file upload and this pages are available at each server. web services will send htt开发者_StackOverflowp request to the server and server will send file or save file on server.

but in this i have to place this two pages on all server. Is ther any way in which i can read and write and create file from the remote server using web services in .net framework 2.0? if any boduy know about it please help me. sorry for spelling mistakes and grametical errors. thanks


If the account your web service runs under has sufficient permissions you could use paths like this:

\\servername\c$\somepath\somefile

Another solution would be to use UNC shares but you won't be able to read and write to arbitrary paths.

0

精彩评论

暂无评论...
验证码 换一张
取 消