6
I have a plea WCF
rotating in the IIS
where the server language/culture is all defined in English.
There is no possibility for me to change the server settings so that I could change the culture or language of the server. I would need an application-level solution.
I tried to use in the Web.config
the same configuration that is used when you want to do this for applications ASP.NET
but apparently the WCF
does not read this setting:
//Diminuído para brevidade
<configuration>
<system.web>
<globalization culture="pt-BR" uiCulture="pt-BR" />
<system.web>
<configuration>
Has anyone ever had this problem that can help me solve?
I don’t know the architecture of your system, nor am I an expert in WCF to formulate a complete answer... But shouldn’t culture handling be restricted to the application interface? If there isn’t even a way to set this up in the Communication Foundation libraries, I even understand why.
– Oralista de Sistemas
In the above case the context is the creation of a
WebService
, then there is no interface. It would be consumed by another application. In an analogy you can consider aAPI
to be consumed by another application.– Vitor Canova