wcf - Using ChannelFactory with WorkflowServiceHost -
is there way service inference on workflow definition xaml create interface can distributed client used channelfactory instead of host exposing wsdl , client having generate service definition adding service reference?
i did in 3 step process:
- temporarily exposing metadata workflow service
- creating proxy code svcutil
- changing configuration not exposing metadata
in detail:
- include xamlx file defines service in project created "wcf workflow service application" (declarativeservicelibrary1)
- compile project
- set project startup project
- select xamlx file in solution explorer
- press ctrl-f5 -> wcf test client starts, see service loaded
- rightclick on xamlx url in wcf test client, choose copy address (e.g.
http://localhost:56326/service1.xamlx
) - open vs2010 admin console window
- create proxy code svcutil.exe:
cd /d %temp%
svcutil http://localhost:56326/service1.xamlx
- this creates 2 files, *.cs , *.config, contain proxy code
i had lot of problems other ways of craeting proxy code (inside vs2010), external svcutil stable way it. hope helps.
Comments
Post a Comment