Search code examples
wcfglobalization

WCF Globalization


I have a WCF service using netTcpBinding (the protocol should not be relevant but included it anyway).

I am having Culture issues with parsing dates.

Previously, using HTTP and System.Web, we can use the globalization element.

Unfortunately this has no effect in WCF.

I Have had trouble finding information/blogs about this.

Is there a way to set the culture in a WCF service in the configuration file?

Thanks very much

Russell


Solution

  • There is nothing intrinsic to WCF to help with this. However, there is a proposed web service standard called WSI18N which Pablo Cibraro, a pretty big name in the WCF community and a Microsoft MVP, has written a CodeProject article about along with sample code to leverage this standard within WCF.