WCF全球化模式帮助 [英] WCF Globalization Pattern Help

查看:93
本文介绍了WCF全球化模式帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



客户端如何使用第二个方法(在服务方法上应用属性)设置语言环境

服务:

Hi,

How can client set a locale using second appraoch(applying attribute on service method)

Service:

[Microsoft.ServiceModel.Samples.Internationalization]
public string HelloWorld()
{

}


客户:


Client:

HelloworldClient client = new HelloWorldClient();
client.HelloWorld();


从以上两行代码,客户端如何将语言环境信息发送到WCF服务....?

我了解FirstApproach ..因为它是通过消息头设置的.但是我无法将数据合同更改为消息合同..所以我需要第二种方法...

任何帮助将不胜感激.


from the above two lines of code, how the client send locale info to the WCF Service ....?

I understood FirstApproach.. because its setting through message header. But I can''t change my datacontracts to message contracts.. so I need second approach...

Any help will be appreciated.

推荐答案

google 搜索显示此CodeProject文章:

WCF中的全球化模式(WS-I18N实现) [
A google search reveals this CodeProject article:

Globalization Patterns in WCF (WS-I18N implementation)[^]



这篇关于WCF全球化模式帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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