如何-自动发现WCF服务? [英] How-To Auto Discover a WCF Service?

查看:159
本文介绍了如何-自动发现WCF服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法自动发现一个特定的WCF服务的网络吗?我不希望我的配置客户端的地址,如果这是可能的。

Is there a way to auto discover a specific WCF service in the network? I don't want to config my client with the address if this is possible.

推荐答案

您想看看什么是WS-发现协议。我发现 netfx3的使用的规范。我会建议基于范围搜索服务,通过基于特定端点探测服务。

What you want to look at is the WS-Discovery protocol. I found a sample on netfx3's website of using the specification. I would recommend searching services based on scope, by probing for services based on a specific endpoint.

这篇关于如何-自动发现WCF服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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