Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

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

Service:
C#
[Microsoft.ServiceModel.Samples.Internationalization]
public string HelloWorld()
{

}

Client:
C#
HelloworldClient client = new HelloWorldClient();
client.HelloWorld();

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.
Posted
Updated 17-Dec-10 7:48am
v2

1 solution

A google search reveals this CodeProject article:

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


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900