Click here to Skip to main content
15,896,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have a system, where I have a lot of WCF services used for different purposes (might be 7 or 8). And some are the independent one like which sends email, or SMS etc. Then comes those who consume these services, then again there are some who consume the next level services and then comes the web interface which consume the last level services.

I have 3 environments : testing, staging and testLive (which is not exactly live, but we have to keep it working like live server).

Also, the system is still in its development phase, so there are lot of changes and when we have to update server there is lot to update on each server.

the problem is when i have to move updates from Testing to Staging server. First I have to update changes in mail service and SMS service (we call it First Phase, as they don't consume any service). Then we update the service reference of first phase services in second phase services (as their URLs changes as the servers). After updating second phase, we have to do the same for Third phase and then for the Web interface.
This takes a lot of time and is very difficult process as it demands full concentration. We have to change corresponding URLs every time in web.configs too. So there is a lot of chances of mistakes.

Is there any way to consume WCF services without adding service references. Or any way that we don't have to do a lot, just change some URL somewhere and its done.
Any way to optimize this process!

I got this : How to Use a WCF Service without Adding a Service Reference or Proxy


But I am not sure if its going to work as we have different .NET solutions for different WCF service. Please suggest.

[Edit 1:]
Is there any build automation tool which can first configure the service references i.e. replace existing service references by other URLs, then build the project, publish it, and place the published DLLs at given location.
I googled and found NAnt, msBuild and also Bamboo, but found nothing relevant. They ofcourse build and deploy, but nothing about service references.

Thanks a lot.
Posted
Updated 6-Sep-13 2:11am
v4

Read this article. You might have do some changes in your Architecture.

How to Use a WCF Service without Adding a Service Reference or Proxy[^]
 
Share this answer
 
Hello ArunRajendra,

Thanks for reply. But this URL says it will not work for WebApplications and ours are all WebApplications.

Thanks
 
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