Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I have an .Net windows application. I have added an Wcf reference to this application using "Add Service Reference" option of VS 2008.
I have updated an method in the WCF(signature is same) and modified the hosting address.
Now, I have changed my window app config file to point to right host address but it is still hitting the old WCF.
When I start digging it out, I found that, when I added the WCF reference initially using "Add Service Reference" option of VS 2008, It creates lots of files(Proxy classes) and those files are pointing to the old WCF address.
I do not want to update the service reference in my windows application using "update Service Reference" option of VS 2008 as if I do so than I need to distribute the exeutable again to all the users.

Any help would be appreciated.
Posted
Updated 12-Jul-11 13:47pm
v2

1 solution

Use the client/proxy class constructor that takes an Endpoint parameter. You can create an Endpoint object specifying the correct service address, which can be hard-coded or obtained from configuration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900