ftp Web服务使用问题 [英] ftp web service use issue

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

问题描述



我的Web服务在ftp服务器上.我想在我的网络应用中使用它.我想要相同的任何教程或步骤.我是通过IIS完成此操作的,但对ftp没有任何了解.
我有ftp服务器的凭据.当我尝试提供网络参考时,我得到的消息是

ftp请求不支持

Hi,

My web service is on ftp server. and I want to use it in my web app. I want any tutorial or steps for the same. I did it with my IIS but don''t have idea about ftp.
I have credentials of ftp server. When I tried to give the web reference then I got message that

Default credentials are not supported on an ftp request. Parameter name:value



请给我一些解决方案.

问候,



Please give me some solution on it.

regards,

推荐答案



添加Web参考适用于Web服务/WCF服务.您在这里拥有的是FTP,您无法添加对其的引用(它既不是Web服务也不是WCF合同).

您要做的是使用FtpWebRequest类以编程方式从供应商的FTP服务器获取文件.

以下是有关如何执行此操作的示例:

简单FTP [
Hi,

Add web reference is for web services/WCF services. What you have here is FTP and you can NOT add a reference to it (it is neither web service nor WCF contract).

What you got to do is use FtpWebRequest Class to programatically get your file from vendor''s FTP server.

Here is a sample on how to do this:

Simple FTP[^]


这篇关于ftp Web服务使用问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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