通过互联网使用我的PC Web服务 [英] Consuming my PC webservice via the internet

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

问题描述

这里和以印刷形式提供了大量有关创建和使用Web服务的参考资料.

但是所有这些似乎都集中在服务及其使用者位于同一台物理计算机上的模拟连接上.

假设我创建了Web服务并将其发布在我的家用PC上.

然后将此PC保持开机状态并连接到Internet.

我可以在笔记本电脑上开发客户端,将其带到WiFi热点并访问Web服务吗?

There is plenty of reference material on creating and consuming webservices both here and and in print form.

But all appear to focus on simulated connectivity where the service and its consumer are on the same physical machine.

Assume I create the webservice and publish it on my home PC.

This PC is then left powered on and connected to the internet.

Can I develop the client on my laptop, take it to a WiFi Hotspot and access the webservice?

What is involved, or do I have to have an ISP host the service for me?

推荐答案


您需要做的就是托管将应用程序保存在ISP上的Web应用程序.与指向常规网页中要访问的其他网页一样,您需要指向Web应用程序中该Web服务的地址(例如,添加服务参考).然后,消费者的发现引擎(例如VS或其他IDE)将找到该服务.然后,您可以像使用其他本地服务一样使用它.

干杯
Hi,
All you need to do is to host your web application which holds the services on an ISP. Like other web pages which you point to access in a regular web page, you need to point to the address of the web service in your web app (Add Service Reference for instance). Then, discovery engine of the consumer, say, VS or other IDEs will find the service. Then you can use it as other local services are used.

Cheers


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

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