How can I customize WCF client code generation?

女生的网名这么多〃 提交于 2019-11-29 15:28:56

问题


Are there any tools or code generation templates that will let me customize and extend the WCF cliend proxies? It's not that svcutil is horribly broken, but rather I'd like to be able to generatate additional code based on the service contract, not just be limited the svcutil output.


回答1:


Have you looked at the Web Service Software Factory? It allows you to have complete control over the generation of proxy code.




回答2:


I've since found two other options:

  1. wscf.blue
  2. WCF Proxy Genererator



回答3:


There are several T4 templates available around the web. Here are some :

http://www.codeproject.com/KB/codegen/WCFWrapperUsingT4.aspx http://staxmanade.blogspot.com/2009/04/t4-replacement-for-add-service.html



来源:https://stackoverflow.com/questions/1035722/how-can-i-customize-wcf-client-code-generation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!