0
Reply

Multiple endpoints, same port different paths

coppertop

coppertop

Jul 27 2004 7:17 AM
1.7k
Does anyone know how to run multiple classes derived from SoapService that all run on the same port and are differentiated by the path that comes after the port number? What I'm wanting is something like: EndpointReference endp = new EndpointReference(new Uri("urn:calc")); endp.Via = new Uri("soap.tcp://localhost:4979/test1"); EndpointReference endp2 = new EndpointReference(new Uri("urn:calc2")); endp2.Via = new Uri("soap.tcp://localhost:4979/test2"); SoapReceivers.Add(endp, service); SoapReceivers.Add(endp2, service2); Is such a thing possible? I've tried using this setup but I get an error stating that I may only use a port once. If this truly is the case why must the path afterwards be unique? The project I am working on has many communication channels and having to use a new port for each will e very tedious to deploy. Geoff