c# - Automating publishing WCF services and updating its references -


even not critical issue, having serious malfunctionings because of user errors, need find solution problem.

i have layered service based application. least degree of layers 2 in architecture. when make change requires reference updating on clients, need publish first layer update reference of first layer on second layer, publish second layer after update reference of second layer on client application. if had believe survive, have 5 different services , of them has implementation , production environments publish. , confused these steps.

when did quick research found thinds built script. since in case there update service reference operation too, i'm not sure if work. asking tool, or approach publish services , update references in orders.

we had same problem updating service references dozen of services.

if service , client projects can share common service contract dll (have project reference project service types), can use channel factory creating clients. in case not need service references @ all.

basichttpbinding mybinding = new basichttpbinding(); endpointaddress myendpoint = new endpointaddress("http://localhost/mathservice/ep1"); channelfactory<imath> mychannelfactory = new channelfactory<imath>(mybinding, myendpoint); imath wcfclient1 = mychannelfactory.createchannel(); double s = wcfclient1.add(3, 39); ((iclientchannel)wcfclient1).close(); 

you can read more there http://philmunro.wordpress.com/2012/02/15/creating-a-wcf-service-proxy-with-channelfactory/


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -