Hi,
Is there a way to swap target service endpoints at runtime on the client side if I do not have access to the source Meaning, is there a mechanism (Behavior, Inspector, etc.) that would let me point a calling client to a different service endpoint at runtime I noticed I can modify the ServiceEndpoint in the ApplyBehavior, and it works, but I'm not sure if thats the best way. This would have to happen on a per-call basis. Thanks!
Sinclair Schuller

Swapping Endpoints at Runtime
k333
I actually opted for this after investigating the router sample, I've decided to implement my own. It fits my needs perfectly. Thanks!
Sinclair
GregXTZ
I just wanted to clarify: what I mean when I say I do not have access to the source is that I'm working with WCF code that is compiled and contains a proxy that calls a service. I have access to app.config, so I can add behaviors, inspectors, etc. Through one of these mechanisms, I would like to modify the remote endpoint that the client is using at runtime. I need this because the remote endpoint is runtime dependent and I need to use some business logic to choose the appropriate service implementation. Thanks!
ChrisSd
Well, if I understand you correctly you only have access to the config file, correct If so, one approach to consider would be to use the configuration to point at a router implementation that YOU build and control, and which then dynamically routes messages to the actual endpoints you want. I don't know if something like this is an option, but if so, you might consider looking at the router sample in the SDK.
Perhaps someone else will have a better idea, depending on your needs.
Cheers, Ralph