Jedi Master Spooky
Jedi Master Spooky

Reputation: 5819

How-To Auto Discover a WCF Service?

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.

Upvotes: 8

Views: 5357

Answers (2)

Anurag
Anurag

Reputation:

Yes there is a way to auto discovery services. The .NET 4.0 includes a feature called WCF-Discovery its based on the WS-Discovery protocol. There is a training kit that shows a HOL here: (http) code.msdn.microsoft.com/wcfwf4 You can also follow the team's blog here: (http) blogs.msdn.com/discovery/Default.aspx

Upvotes: 7

Dale Ragan
Dale Ragan

Reputation: 18270

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.

Upvotes: 2

Related Questions