客户端访问wcf中的数据 [英] client accessing data in wcf

查看:95
本文介绍了客户端访问wcf中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在wcf中有3种方法。但是客户端只能访问2种方法。我应该怎样访问第3种方法。



提前致谢

vani。

解决方案

检查您的第三种方法是否使用<$ c进行声明$ C> [OperationContract的] 。



http://stackoverflow.com/questions/11908153/ wcf-operationcontract



在WCF服务中添加新方法后,您的客户端很可能没有更新服务引用。



http: //msdn.microsoft.com/en-us/library/vstudio/bb628652(v=vs.100).aspx

Hi,

I have 3 methods in wcf.but client can accessing only 2 methods.what should i do access 3rd method.

Thanks in advance
vani.

解决方案

Check if your 3rd method declared using [OperationContract].

http://stackoverflow.com/questions/11908153/wcf-operationcontract

Also it is very much possible that your client has not updated Service Reference after you added new method in your WCF Service.

http://msdn.microsoft.com/en-us/library/vstudio/bb628652(v=vs.100).aspx


这篇关于客户端访问wcf中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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