从工作流服务中提取合同接口(WF 4.0)
我有一个使用 WF 4.0 创建的工作流服务,并且需要从中提取一个典型的 WCF 装饰接口,其中包含所有操作。我需要它用于测试目的。 有没有办法从工作流服务中提取装饰界面?
谢谢
I have a workflow service created with WF 4.0 and the need to have a typical WCF decorated interface extracted from it, containing all operations. I need it for testing purposes.
Is there a way to extract a decorated interface from a workflow service?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果从非 WF4 客户端应用程序添加服务引用,它将生成包括服务接口的正常客户端项。另一种方法是自行针对服务运行 SvcUtil。服务项目本身没有服务接口 CS 文件,所有必需的 WCF 工件都是在运行时基于 XAMLX 文件生成的。
If add a service reference from a non WF4 client application it will generate the normal client items including the service interface. Another way of doing the same is running SvcUtil against the service yourself. There is no service interface CS file in the service project itself, all of the required WCF artifacts are generated at runtime based on the XAMLX file instead.