WCF Service Reference deployed to different environments

  • 3 June 2010
  • 1 reply
  • 8 views

Badge +1

In K2 BlackPoint 4.5 (KB1090), I reference a WCF Service on my development environment and everything works fine using the simplest constructor without parameters. Now, I want to make this reference dynamic so when the process gets deployed to another environment the endpoint address will point to the WCF Service on the new environment without having to re-create the reference every time you need to move environments. I tried the "Constructor(Binding binding, EndpointAddress remoteAddress)" signature passing an environment variable to the remoteAddress but it did not work. I would have thought it is a very common requirement. Has anybody come accross this issue before?


1 reply

Badge

I am having this issue currently and had also made the (incorrect) assumption that references attach to the chosen environment.  Were you able to workaround this limitation?


Thanks,


Louise

Reply