![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Multiple endpoints Aynone ever get this to work? This is a critical scenario... the other critical scenario is having more than one endpoint on the same IIS hosted service. [Go-live version] using System; using System.ServiceModel; namespace DemoStuff { [ServiceContract] interface IDemoService { [OperationContract] string GetText( ); } class DemoService : IDemoService { public string GetText( ) { { return "Stuff"; } } } class Program { static void Main(string[] args) { Uri basicHttpUri = new Uri("http://localhost:8081/Service/"); Uri httpDualUri = new Uri("http://localhost:8082/Service/"); ServiceHost hService = new ServiceHost(typeof(DemoService)); hService.AddServiceEndpoint(typeof(IDemoService), new BasicHttpBinding( ), basicHttpUri); hService.AddServiceEndpoint(typeof(IDemoService), new WSDualHttpBinding( ), httpDualUri); hService.Open( ); Console.WriteLine("Service at your service."); Console.ReadKey( ); hService.Close( ); } } } |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Media Center Multiple Tuner Cards Multiple satellite services | sishak2010 | Vista music pictures video | 1 | 05-09-2008 04:07 PM |
| Multiple Ip and Multiple Proxy | kurshid razzak | Vista networking & sharing | 0 | 12-13-2007 03:39 AM |
| Multiple OS | Mike | Vista installation & setup | 6 | 04-11-2007 12:02 PM |
| Sorry for the multiple posts! | thewizz | Vista General | 4 | 10-15-2006 07:13 AM |