WCF Web Service Internationalization NumberFormat and DateFormat -
i trying decide on correct way deal internationalization in wcf web service, pertaining numeric format , date format. service support multiple languages , cultures. question how should handle input , output serialization different date , number formats.
for dates, thinking expect submitted , returned utc. me seems reasonable , developer in netherlands, should able deal format.
my other concern numeric types, decimals. using xsd:decimal data type, uses "." character decimal separator. wondering if problem dutch developer use "," instead of "." decimal separator.
i not returning translated text, not concern. want make sure returning , accepting standard numeric , date format, right thing do. not international developer, having hard time putting myself in shoes.
any appreciated.
if possible, i'd make wcf service work value types (numerics & date/time) in culture agnostic manner. since xsd standard defines decimal using period character decimal separator, should responsibility of client software deserialize , apply culture specific formatting. same should apply date/time serialization except time should utc point out.
Comments
Post a Comment