添加服务引用时的Visual Studio不生成客户端代理code [英] Visual Studio does not generate client proxy code when adding service reference

查看:185
本文介绍了添加服务引用时的Visual Studio不生成客户端代理code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WF [流基础]项目,当我尝试添加一个服务引用[的Visual Studio 2013,目标框架是4.5.1]将其产生的参考code不包含客户端代理code。我尝试添加服务引用其他非WF项目[库项目],并能正常工作和reference.cs包含客户端代理code。为什么Visual Studio中不会生成WF项目的客户端代理?如果设施是不是有那么很明显,我采取了错误的做法。我如何使用WCF方法,在我的codeActivity?

I have a WF [Workflow Foundation] project and when I try adding a service reference [Visual Studio 2013-Target Framework is 4.5.1] to it the generated reference code doesn't contain the client proxy code. I tried adding a service reference to other non WF projects [Library projects] and it works fine and the reference.cs contains the Client proxy code. Why Visual Studio doesn't generate client proxy for WF projects? If the facility is not there then obviously I am taking the wrong approach. How can I use a WCF method inside my CodeActivity?

只是提醒你,这是不是以下螺纹的重复: <一href="http://stackoverflow.com/questions/3000209/service-reference-not-generating-client-types">Service引用未生成客户端类型

Just to remind you that this is not the duplicate of the following thread : Service reference not generating client types

推荐答案

一个简单的Reference.cs,而不是文件的Visual Studio好心增加了7个文件复制到服务引用文件夹。当我重新编译该项目,并构建它我的WCF服务的所有方法出现在工具箱[并成为可用]现在我可以把他们在我的工作流程。

Instead of a simple Reference.cs file Visual Studio kindly adds 7 more files to the service reference folder. When I recompile the project and build it all the methods of my WCF service appeared on the toolbox [and became available] and now I can use them in my Work Flows.

这篇关于添加服务引用时的Visual Studio不生成客户端代理code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆