在Web服务中查找客户端IP地址 [英] To find client IP address ina web service

查看:284
本文介绍了在Web服务中查找客户端IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要使用Web服务将pdf文件存储在客户端计算机上.

我无法在Web服务中找到客户端计算机的IP地址,因此
可以在客户端计算机的C驱动器中插入pdf文件.

我正在使用c#使用asp.net 3.5.我在Google中搜索,但无法获取
正确的解决方案

请帮助我..

Hi,

I need to store a pdf file on client machine using a web service.

I am unable to find IP address of client machine in web service so that I
can insert pdf file in C-drive of client machine.

I am using asp.net 3.5 using c#. I searched in google but i couldn''t get
the correct solution

Please help me..

推荐答案

您是说要使用Web服务保存到客户端的C:\驱动器吗?如果是这样的话

不,你不能这样做.

没有任何机制可让您使用Web服务进行保存.您可以做的就是从客户端调用网络服务,然后网络服务可以返回您的pdf文件.

即使您知道客户端的IP地址,也无法做到.除非您创建自己的客户端/服务器应用程序.

简单而简单的解决方案是保留您的Web服务,让客户端发出请求并自行保存文件.
Are you saying that you want to save into client''s C:\ drive using a web service? If that is the case

NO YOU CAN NOT DO IT.

There is no mechanism that allows you to save using webservice. what you can do is call the webservice from the client and the webservice can return your the pdf file.

Even if you know the client''s IP address you can not do it. unless you create your own client/server application.

The easy and simple solution, keep your web service, let the client make the request and save the file it self.


这篇关于在Web服务中查找客户端IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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